This method allows you to accept AstroPay QR payments. Customers scan a dynamically generated QR code using the AstroPay mobile app to complete the payment instantly.
Currency Support
Supports currencies available on the AstroPay platform. Refer to your merchant configuration for the specific currencies enabled on your account.
✅ Required Request Fields
Top-Level Fields
Field
Type
Description
callbackUrl
String
URL to receive transaction status updates
successRedirectUrl
String
URL to redirect the customer after successful payment
QR code image encoded as a base64 data URI (data:image/png;base64,...). Can be used directly in an <img> tag: <img src="$qrData" width="200" height="200" alt="QR Code">
qrDeepLink
String (nullable)
Deep link URL to open the AstroPay app directly on mobile devices. May be null if not provided by the payment provider.
Deep link URL to open the AstroPay app directly on mobile devices. May be null if not provided by the payment provider.