Venmo

The Lucra iOS SDK offers Venmo as a payment option. This guide covers implementation steps.

Venmo Requirements:

  • The user must have the Venmo app installed on their phone. - For testing purposes, an iOS Simulator will use Safari.

  • The following steps must be implemented in the project that is implementing the LucraSDK.

Step 1: Register a new URL Type

In your application's Info.plist, add a URL type to be configured as follows: • In your URL Types, register a URL Scheme with your application's Bundle ID - The Editor and URL Identifier are for your tracking purposes only and are not relevant to the setup.

In this example, we support multiple Bundle IDs and dynamically change the ID as needed based on our builds. This step allows us to make sure Venmo can open our application on once a transaction is approved.

Step 2: Register Query Schemes

In your application's Info.plist, add a query url scheme to be configured as follows: • In your Queried URL Schemes, register the following two strings. - "venmo" - "com.venmo.touch.v2"

We want to make sure our application can open Venmo.

Step 3: Register Callback

In your Application's `.onOpenURL` method, call the LucraClient handlePayPalVenmoCallback with the provided URL.

Usage

When configured correctly, Venmo will appear as an option for both deposits and withdrawals.

• Deposit When the user chooses Venmo as a deposit method, this will prompt the Lucra SDK to open Venmo for the requested transaction, this experience will bring the user outside of the application to finalize the request. Once completed, they will be prompted to return to the deposit screen to finish the transaction.

• Withdrawal When the user chooses to withdrawal using Venmo, this will be handled within the application as opening the Venmo app is not required for this step. However, they must have previously made a deposit using Venmo before being allowed to use Venmo as a withdrawal option.

Last updated