REST Example: Process a mada Sale with Merchant Decryption

Apple Pay supports mada Pay mobile app transactions with
Visa Platform Connect
only and only for these payment cards issued in the Kingdom of Saudi Arabia:
  • mada
  • Mastercard co-badged with mada
  • Visa co-badged with mada
To process an Apple Pay sale on the mada Pay mobile app—whether for a mada card or for a mada co-badged Mastercard or Visa card—specify the mada card type (value
060
) in the
paymentInformation.tokenizedCard.type
REST API field.
For more information, see Co-Badged Cards in the
Payments Developer Guide
for
Visa Platform Connect
.
mada Sale Request
{ "clientReferenceInformation": { "code": "TC_1231223" }, "processingInformation": { "commerceIndicator": "mada", "paymentSolution": "001", "capture": true }, "paymentInformation": { "tokenizedCard": { "number": "5X696819161XX419", "expirationMonth": "12", "expirationYear": "2031", "cryptogram": "AceY+igABPs3jdwNaDg3MAACAAA=", "transactionType": "1", "type": "060" } }, "orderInformation": { "amountDetails": { "totalAmount": "10", "currency": "SAR" }, "billTo": { "firstName": "John", "lastName": "Doe", "address1": "Al Dariyah Dist", "locality": "Riyadh", "administrativeArea": "01", "postalCode": "22028", "country": "SA", "email": "test@cybs.com" } } }
Response to a Successful Request
{ "_links": { "void": { "method": "POST", "href": "/pts/v2/payments/7359627932726161403954/voids" }, "self": { "method": "GET", "href": "/pts/v2/payments/7359627932726161403954" } }, "clientReferenceInformation": { "code": "TC_1231223" }, "id": "7359627932726161403954", "orderInformation": { "amountDetails": { "totalAmount": "10.00", "authorizedAmount": "10.00", "currency": "SAR" } }, "paymentAccountInformation": { "card": { "type": "060" } }, "paymentInformation": { "tokenizedCard": { "expirationYear": "2031", "prefix": "411111", "expirationMonth": "12", "suffix": "1111", "type": "060" }, "card": { "type": "060" } }, "processingInformation": { "paymentSolution": "001" }, "processorInformation": { "systemTraceAuditNumber": "417802", "approvalCode": "831000", "merchantAdvice": { "code": "01", "codeRaw": "M001" }, "responseDetails": "ABC", "networkTransactionId": "016153570198200", "retrievalReferenceNumber": "500303417802", "consumerAuthenticationResponse": { "code": "2", "codeRaw": "2" }, "transactionId": "016153570198200", "responseCode": "00", "avs": { "code": "Y", "codeRaw": "Y" } }, "reconciliationId": "7359627932726161403954", "status": "AUTHORIZED", "submitTimeUtc": "2025-01-04T03:53:13Z" }