# Convert to Credit

### Overview

The Convert to Credit feature allows end users to convert dollars they've deposited or won playing contests into credit they can use within your ecosystem. The conversion process can be configured with a multiplier to incentivize opting for this conversion over other withdrawal methods.

The integration process consists of configuration data being passed in the mobile SDK as well a server to server integration to accept the Convert to Credit request payload and confirm it's status.

This method is async, allowing time to make a callback to your server if necessary for any updates needed with the newly provided amount.

Find your platforms technical documentation here

{% hint style="success" %}
Convert to Credit functionality requires successful webhook integration. See the "Server to Server" integration tab below for details
{% endhint %}

{% tabs %}
{% tab title="iOS" %}
{% content-ref url="sdks-and-apis/client-sdks/ios/1.2.5\_convert\_to\_credit" %}
[1.2.5\_convert\_to\_credit](https://docs.lucrasports.com/lucra-sdk/sdks-and-apis/client-sdks/ios/1.2.5_convert_to_credit)
{% endcontent-ref %}
{% endtab %}

{% tab title="Javascript" %}
{% content-ref url="sdks-and-apis/client-sdks/javascript-web/1.7\_convert\_to\_credit" %}
[1.7\_convert\_to\_credit](https://docs.lucrasports.com/lucra-sdk/sdks-and-apis/client-sdks/javascript-web/1.7_convert_to_credit)
{% endcontent-ref %}
{% endtab %}

{% tab title="Android" %}
{% content-ref url="sdks-and-apis/client-sdks/android/1.2.5\_convert\_to\_credit" %}
[1.2.5\_convert\_to\_credit](https://docs.lucrasports.com/lucra-sdk/sdks-and-apis/client-sdks/android/1.2.5_convert_to_credit)
{% endcontent-ref %}
{% endtab %}

{% tab title="React Native" %}
{% content-ref url="sdks-and-apis/client-sdks/react-native/1.2.5\_convert\_to\_credit" %}
[1.2.5\_convert\_to\_credit](https://docs.lucrasports.com/lucra-sdk/sdks-and-apis/client-sdks/react-native/1.2.5_convert_to_credit)
{% endcontent-ref %}
{% endtab %}

{% tab title="Server to Server" %}
{% content-ref url="sdks-and-apis/api-reference/6.0\_convert\_to\_credit\_webhooks" %}
[6.0\_convert\_to\_credit\_webhooks](https://docs.lucrasports.com/lucra-sdk/sdks-and-apis/api-reference/6.0_convert_to_credit_webhooks)
{% endcontent-ref %}
{% endtab %}
{% endtabs %}

<figure><img src="https://content.gitbook.com/content/NkRDKveSoEa2KT6qDNxu/blobs/15xcqDUwjtTWvp739LNW/image.png" alt=""><figcaption></figcaption></figure>

<div align="center"><figure><img src="https://content.gitbook.com/content/NkRDKveSoEa2KT6qDNxu/blobs/IZNcmFKBJVzkyCujH7NM/Convert-To-Credit-Presentation-iOS.png" alt=""><figcaption><p>Convert to Credit Initial Presentation</p></figcaption></figure> <figure><img src="https://content.gitbook.com/content/NkRDKveSoEa2KT6qDNxu/blobs/L1urSPxagqBIu9FeippB/Convert-To-Credit-Transfer-Review-iOS.png" alt=""><figcaption><p>Convert to Credit Transfer Confirmation</p></figcaption></figure></div>

### Server to Server Integration

Subscribing to the webhook event [C2CWithdrawal as outlined in the webhook documentation](https://docs.lucrasports.com/lucra-sdk/convert-to-credit/convert-to-credit-backend-integration) is a required part of completing the Convert to Credit integration. The webhook and response determine what gets shown to the end user including success and error messaging.

<figure><img src="https://content.gitbook.com/content/NkRDKveSoEa2KT6qDNxu/blobs/beh6b8QGmzXsMrhe3FBE/Convert-To-Credit-Confirmation-iOS.png" alt=""><figcaption><p>Convert to Credit Confirmation</p></figcaption></figure>
