Samsung Pay is a mobile payment and digital wallet service by Samsung Electronics that allows payers to make payments with supported Samsung devices. Samsung Pay is a supported device payment in the Mastercard Payment Gateway.
This page describes integration details specific to Samsung Pay. It's recommended that you read the integration guidelines for device payments, before building your Samsung Pay integration.
To accept Samsung Pay payments:
You can integrate Samsung Pay into your mobile app using Direct Payment.
Samsung Pay JSON Key |
Corresponding API Request Field |
Description |
---|---|---|
tokenPAN | sourceOfFunds.provided.card.number | The device-specific primary account number. |
tokenPanExpiration | sourceOfFunds.provided.card.expiry.month sourceOfFunds.provided.card.expiry.year |
The expiration date of the tokenPAN. |
method | sourceOfFunds.provided.card.devicePayment. cryptogramFormat |
The cryptogram format. Set this to 3DSECURE. |
cryptogram | sourceOfFunds.provided.card.devicePayment. 3DSecure.onlinePaymentCryptogram |
Cryptogram in 3DSecure format. |
eci_indicator | sourceOfFunds.provided.card.devicePayment. 3DSecure.eciIndicator |
ECI indicator per 3DSecure specification. |
currency_code | order.currency | The ISO 4217 currency code for the transaction. |
amount | order.amount | The order amount. |
PAYER_TERMINAL_OFF_PREMISES
or PAYER_TERMINAL_ON_PREMISES
. If you do not provide a value, PAYER_TERMINAL_OFF_PREMISES
is used.{ "apiOperation": "AUTHORIZE", "order": { "amount": "1500", "currency": "JPY", "walletProvider": "SAMSUNG_PAY" }, "sourceOfFunds": { "provided": { "card": { "number": "5123450000000008", "expiry": { "month": "01", "year": "39" }, "devicePayment": { "cryptogramFormat": "3DSECURE", "3DSecure": { "onlinePaymentCryptogram": "AAAAAAAALJI6DbfqRzUcwAC6gAAGhgEDoLABAAhAgAABAAAAMlkUxA==", "eciIndicator": "20" } } } }, "type": "CARD" }, "device": { "ani": "12341234" }, "transaction": { "source": "INTERNET" } }
{ "authorizationResponse": { "commercialCard": "123", "commercialCardIndicator": "1", "date": "0405", "financialNetworkCode": "MCC", "posData": "1025104006600", "posEntryMode": "812", "processingCode": "003000", "responseCode": "00", "stan": "269495", "time": "050836", "transactionIdentifier": "689605807", "transactionIntegrityClass": "A1" }, "device": { "ani": "12341234" }, "gatewayEntryPoint": "WEB_SERVICES_API", "merchant": "LOVECRAFTS2I", "order": { "amount": 1500, "authenticationStatus": "AUTHENTICATION_NOT_IN_EFFECT", "certainty": "ESTIMATED", "chargeback": { "amount": 0, "currency": "JPY" }, "creationTime": "2022-04-05T05:08:35.893Z", "currency": "JPY", "custom": { "ACQ_TOKENIZATION": "true" }, "id": "8961b1ec-3966-4650-a5c8-eee261b3517c", "lastUpdatedTime": "2022-04-05T05:08:36.336Z", "merchantAmount": 1500, "merchantCategoryCode": "1234", "merchantCurrency": "JPY", "status": "AUTHORIZED", "totalAuthorizedAmount": 1500, "totalCapturedAmount": 0, "totalDisbursedAmount": 0, "totalRefundedAmount": 0, "walletProvider": "SAMSUNG_PAY" }, "response": { "acquirerCode": "00", "acquirerMessage": "Approved", "gatewayCode": "APPROVED" }, "result": "SUCCESS", "sourceOfFunds": { "provided": { "card": { "brand": "MASTERCARD", "devicePayment": { "cryptogramFormat": "3DSECURE" }, "deviceSpecificExpiry": { "month": "1", "year": "39" }, "deviceSpecificNumber": "512345xxxxxx0008", "fundingMethod": "UNKNOWN", "number": "xxxxxxxxxxxxxxxx", "scheme": "MASTERCARD", "storedOnFile": "NOT_STORED" } }, "type": "CARD" }, "timeOfLastUpdate": "2022-04-05T05:08:36.336Z", "timeOfRecord": "2022-04-05T05:08:36.014Z", "transaction": { "acquirer": { "batch": 20220405, "date": "0405", "id": "SYSTEST_ACQ_S2I", "merchantId": "123463", "transactionId": "689605807" }, "amount": 1500, "authenticationStatus": "AUTHENTICATION_NOT_IN_EFFECT", "authorizationCode": "112233", "currency": "JPY", "id": "1", "receipt": "209505269495", "source": "INTERNET", "stan": "269495", "terminal": "CBAS2I02", "type": "AUTHORIZATION" }, "version": "63" }
You can test your integration with the gateway in production using your test merchant profile and a supported DPAN or an FPAN.
If you are testing for a device or card payment, use a supported DPAN or FPAN from the following table.
Scheme |
DPAN or FPAN |
Expiry Date |
---|---|---|
Mastercard | 5123456789012346 | 01/2039 |
American Express | 340353278080900 | 01/2039 |
Visa | 4440000009900010 | 01/2039 |
Copyright © 2022 Mastercard