Skip to content
⌘K
InboxAsk a human

Merchant Callback Integration Guide

Updated by Lukas Dumskis

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

paymentId

UUID

Unique identifier of the payment

status

string

Payment status (PENDING, COMPLETED, FAILED)

amount

number

Payment amount

currency

string

Payment currency

merchantPaymentId

string

Merchant-defined ID (if provided when initiating the payment)

Example Callbacks

  • Success Case

    <callback-url>?paymentId=<payment-id> &status=<PENDING|COMPLETED> &amount=<amount> &currency=<currency> &merchantPaymentId=<value-passed-to-CreatePayment>
  • Failure Case

    <callback-url>?paymentId=<payment-id> &status=FAILED &errorDescription=<base64-encoded-error-message> &amount=<amount> &currency=<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 https links. Custom deep links like myapp://callback are 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


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", "/*"] } ] } }

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-web

  • Well-known files:

    • https://sandbox.web.volumepay.io/.well-known/assetlinks.json

    • https://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.plantstore
  • iOS

    xcrun simctl openurl booted "https://sandbox.web.volumepay.io/mobile-web?paymentId=...&status=FAILED&errorDescription=..."

Common Issues Checklist

Before testing, double-check these points:

  1. 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

  2. HTTPS Only: Callback URLs must always use https.

  3. Domain Verification: Well-known files must be publicly accessible and correctly formatted.

  4. App ID / Package Name: Ensure these match exactly in your files and app config.

  5. Certificate Fingerprints (Android): The correct SHA256 fingerprint must be included.

  6. DNS Propagation (iOS): Universal link changes may take up to 24 hours to take effect.