Prerequisites Server-Side Setup
Before integrating the mobile clients, ensure your backend is configured to communicate with the payabl. gateway. The SDK requires a session initialized by your server. Please refer to our dedicated Setup Your Server documentation for more details.
Server-Side Requirements
- Session Creation: Your backend must call the
mobile/initAPI to generate asession_idandephemeral_key. - Callback URLs: For Instant Bank Transfers, you must define redirect URLs in the initialization request (even if they are marked as optional elsewhere):
url_success: Redirect after a successful payment.url_failed: Redirect after a failed or cancelled payment.url_return: Generic Redirect url.notification_url: Server-to-server webhook for final confirmation.app_schema: Required custom URL scheme for deep linking (e.g., "payabl", "yourapp"). If not specified, you may receive an error from the backend. This value should match the URL Scheme defined in your Xcode Info.plist configuration.
Apart from notification_url, all other URLs can be custom schemes or App Links.
Examples:
- Custom link:
payabl://payment-confirmation - App Link*: https://payabl.com/payment-callback/success.php
{
...
"url_failed": "payabl://payment-callback/failed",
"url_success": "payabl://payment-callback/success",
"notification_url": "https://your-server.com/api/webhook",
"url_return": "https://payabl.com/payment-callback/redirect_response.php"
...
}To use App Link, please contact [email protected] for further instructions.
Updated 19 days ago
