Merchant Callback Integration Guide
When a customer completes a payment consent interaction with their bank, they are redirected to the callback URL you’ve configured. This callback contains key details about the payment, such as the amount, currency, reference, and current payment status.
Payment Statuses
At the point of callback, a payment can have one of three statuses:
PENDING– the payment request is still being processed by the bank.COMPLETED– the payment has been successfully processed.FAILED– the payment could not be completed.
Callback Payload
The callback URL includes the following parameters:
Argument | Type | Description |
|---|---|---|
| UUID | Unique identifier of the payment |
| string | Payment status ( |
| number | Payment amount |
| string | Payment currency |
| string | Merchant-defined ID (if provided when initiating the payment) |
Example Callbacks
Success Case
<callback-url>?paymentId=<payment-id> &status=<PENDING|COMPLETED> &amount=<amount> ¤cy=<currency> &merchantPaymentId=<value-passed-to-CreatePayment>Failure Case
<callback-url>?paymentId=<payment-id> &status=FAILED &errorDescription=<base64-encoded-error-message> &amount=<amount> ¤cy=<currency> &merchantPaymentId=<value-passed-to-CreatePayment>
Note: Web and mobile callbacks function the same way, but use different URLs.
Mobile App Callback Implementation
After payment completion, users are redirected from the banking app back to your mobile app through a callback link.
Important: Volume supports only
httpslinks. Custom deep links likemyapp://callbackare not supported.Instead, use App Links (Android) or Universal Links (iOS), e.g.
https://myDomain.com/callback. These provide better security, UX, seamless integration, and web fallbacks.
Platform-Specific Setup Guides
Flutter
React Native
Android
iOS
Well-Known Files Configuration
Both iOS and Android require well-known configuration files to verify your app’s domain.
iOS – Apple App Site Association (AASA)
Place this file at:https://subdomain.yourdomain.com/.well-known/apple-app-site-association
{ "applinks": { "apps": [], "details": [ { "appID": "TEAMID.com.yourcompany.yourapp", "paths": ["/mobile-web", "/callback", "/*"] } ] } }
Android – Digital Asset Links
Place this file at:https://subdomain.yourdomain.com/.well-known/assetlinks.json
[ { "relation": ["delegate_permission/common.handle_all_urls"], "target": { "namespace": "android_app", "package_name": "com.yourcompany.yourapp", "sha256_cert_fingerprints": ["YOUR_APP_SHA256_FINGERPRINT"] } } ]
Testing Your Callback
Your well-known files must exist under the same subdomain used for your callback URL.
Example:
Callback URL:
https://sandbox.web.volumepay.io/mobile-webWell-known files:
https://sandbox.web.volumepay.io/.well-known/assetlinks.jsonhttps://sandbox.web.volumepay.io/.well-known/apple-app-site-association
Test Commands
Android
adb -e shell 'am start -a android.intent.action.VIEW \ -c android.intent.category.BROWSABLE \ -d "https://sandbox.web.volumepay.io/mobile-web?paymentId=...&status=FAILED&errorDescription=..."' \ io.volumepay.flutter.plantstoreiOS
xcrun simctl openurl booted "https://sandbox.web.volumepay.io/mobile-web?paymentId=...&status=FAILED&errorDescription=..."
Common Issues Checklist
Before testing, double-check these points:
Subdomains: Well-known files must be hosted on the same subdomain as the callback URL.
✅
https://sandbox.web.volumepay.io/.well-known/apple-app-site-association❌
https://volumepay.io/.well-known/apple-app-site-association
HTTPS Only: Callback URLs must always use
https.Domain Verification: Well-known files must be publicly accessible and correctly formatted.
App ID / Package Name: Ensure these match exactly in your files and app config.
Certificate Fingerprints (Android): The correct SHA256 fingerprint must be included.
DNS Propagation (iOS): Universal link changes may take up to 24 hours to take effect.