Convert to Credit (C2C) Support — iOS

Convert to Credit (C2C) Support — iOS

Convert to Credit allows users to convert withdrawable Lucra funds into your app’s internal currency or credits. This feature increases retention by keeping value inside your ecosystem rather than leaving through withdrawals.


🎯 Overview

When a user goes to Withdraw Funds, Lucra presents:

  • Traditional withdrawal methods (ACH, Venmo, PayPal, etc.)

  • Convert to Credit as an additional option — only if you provide a C2C provider

Your app supplies:

  • Conversion rules

  • Display strings

  • Reward metadata

  • Optional styling

Lucra handles:

  • UI

  • User confirmation

  • Flow transitions

  • Webhook delivery to your backend

You must apply the credit on your backend.


🧩 ConvertToCreditProvider

Implement the protocol:

Lucra calls this every time:

  • The Withdraw screen opens

  • The withdrawal amount changes


📌 Registering the Provider

Without this registration:

👉 Convert to Credit will not appear in the Lucra UI.


🛠 Implementing the Provider

Example:

The function is async, so you can fetch rules from your backend.


🔄 Backend Requirements (Critical)

  • Backend Integration (https://docs.lucrasports.com/lucra-sdk/convert-to-credit/convert-to-credit-backend-integration)

Last updated