Apple Pay
Available: Apple Pay
Apple Pay is Apple’s alternative payment method allowing Apple users to pay with their devices.
1. How does it work?
Apple Pay uses device-specific tokenised credit or debit card credentials (DPAN) in place of a Payment Account Number (PAN). When a customer confirms the payment using Face ID, Touch ID or passcode, the tokenised card data is returned to your app or website. This token can then be passed on to your Payment Service Provider (PSP) to process as you would a typical online credit or debit card payment.
Any transaction type you support today for regular debit and credit cards can be performed with Apple Pay, including refunds. Apple Pay works on Apple devices running iOS, watchOS and iPadOS both in-app and in Safari, and on macOS devices in Safari.
2. Apple Pay integration
You can integrate with Apple Pay either from in-app or from the web transaction. You need to implement Apple APIs to verify that Apple Pay can be offered as a payment method:
Integrate with the PassKit SDK to offer Apple Pay from in-app, as described in PassKit.
Integrate with Apple Pay JS to offer Apple Pay from a web transaction, as described in Apple pay js.
After integrating with Apple Pay, you will be able to request an encrypted payload from Apple. Apple in turn will create a payment.token
.Please base64_encoded string of the token
data. You should pass this object to the YabandPay gateway in the payment_token_object
field for decryption and processing.
3. Registration with Apple
Before starting, you need to make sure you complete the following steps on your Apple account:
Register for an Apple developer account. You need to enroll as an Apple Pay developer, and go through the Apple certification process as described here.
If you are integrating Apple Pay on the web (using Safari) make sure your server supports Apple's additional security requirements described here.
Get a CSR file from YabandPay.
Upload the signed CSR to YabandPay.
Add an Apple Pay button to your app or website. Use the appropriate PassKit or JavaScript APIs to render the button in your app or website so the button will always be up-to-date and localised.
More details can be found in: https://developer.apple.com/design/human-interface-guidelines/apple-pay/overview/introduction/.
API URL:https://mapi.yabandpay.com/Payments
Method:POST
POST data type:Json
Parameter | Type | Description | Required |
---|---|---|---|
user | String | the UID of cashier account | Required |
sign | String | signature | Required |
method | String | v3.ApplePay | Required |
time | Long | timestamp | Required |
- Parameter
Parameter | Type | Description | Required |
---|---|---|---|
pay_method | String | online | Required |
sub_pay_method | String | Apple Pay | Required |
operation | String | 1.Sales 2.Authorisation; | Required |
order_id | String | order id from Merchant | Required |
amount | String | format in cents: € 24.99 should be 24.99, the min amount is EUR 1.00 | Required |
currency | String | ISO 4217, For example EUR, CHF | Required |
description | String | order description | Required |
demo | String | custom field | Optional |
payment_token_object | String | The "payment_token_object" string obtained from Apple Pay | Required |
timeout | String | value 0 means 1440 minutes | Required |
notify_url | String | asynchronous notification url | Required |
request_id | String | The request ID must be unique. It is recommended to use a combination of at least 24 digits and letters. | Required |
Obtain payment_token_object:
Example of token returned by Apple Pay:
{
"paymentData": {
"data": "JgVJ+d85AEsahr6QiIxtAHuVpf6JUf2P3I7kUVg9lb94h1HBQfHOMfyE/mb+bi9s6cQyucUcqLDnVhIN5AgfXKn83JWGXwG8NHxcvaaHDKvmKqj5ZFkJMif2mVpDHpcTuyrOFJqkwfxYqmEnOqjTTqnlShH9RjrVnM9EWgYtj/u83ZMwg1tk7hn28wzv+nbGmvvFbBH8GfGf5JSBi/D6TPvM7iNGdskbJz5mx7nr8LyoqASoYbDgNN8TIe3TiAf65gc6TRjLVuCIj901qNVqx2jpp0RH4oVOks9CQsIrxXu0oRI4y1dp+znfwQiON8FaSQNT7RfQazeME/en6ZwcKqMDc1UC5M7sU8vb3aOj+fLp6p/LIx4x+wP8scNqOl6IGD9VWD0u+Bk3om7avCw=",
"signature": "MIAGCSqGSIb3DQEHAqCAMIACAQExDTALBglghkgBZQMEAgEwgAYJKoZIhvcNAQcBAACggDCCA+MwggOIoAMCAQICCBZjTIsOMFcXMAoGCCqGSM49BAMCMHoxLjAsBgNVBAMMJUFwcGxlIEFwcGxpY2F0aW9uIEludGVncmF0aW9uIENBIC0gRzMxJjAkBgNVBAsMHUFwcGxlIENlcnRpZmljYXRpb24gQXV0aG9yaXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUzAeFw0yNDA0MjkxNzQ3MjdaFw0yOTA0MjgxNzQ3MjZaMF8xJTAjBgNVBAMMHGVjYy1zbXAtYnJva2VyLXNpZ25fVUM0LVBST0QxFDASBgNVBAsMC2lPUyBTeXN0ZW1zMRMwEQYDVQQKD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aXR5MRMwEQYDVQQKDApBcHBsZSBJbmMuMQswCQYDVQQGEwJVUwIIFmNMiw4wVxcwCwYJYIZIAWUDBAIBoIGTMBgGCSqGSIb3DQEJAzELBgkqhkiG9w0BBwEwHAYJKoZIhvcNAQkFMQ8XDTI0MTExMjEwMTE1MVowKAYJKoZIhvcNAQk0MRswGTALBglghkgBZQMEAgGhCgYIKoZIzj0EAwIwLwYJKoZIhvcNAQkEMSIEIC6S59D0H8IzMEY5afcfKLRnpdF2g6bHtKI0k4DqKHtEMAoGCCqGSM49BAMCBEcwRQIgYsOb672YTo4kH+Yr+RigxI4qgOx8uvwek/QBPrnDC78CIQCPim6W873cihdXsM0VERsqiXV3hDQhf3dDAO8XJzhVDAAAAAAAAA==",
"header": {
"publicKeyHash": "JOpIKu0h7dq0POFHtuK0DTbp6ILuiRghRcwfPsbn4DA=",
"ephemeralPublicKey": "MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAEiarI1HHCBwLD0mfZMFf5HkTKPR4SKtM6xz1xiO57+JjwB0bR3qjhBOU7pkQQACGZgndR1nlVbVqp/N5ZrvKF9g==",
"transactionId": "9bd4b1969b482866b5786e0971efa1d42f25ab4f9b3124b894ea2be312753b7f"
},
"version": "EC_v1"
},
"paymentMethod": {
"displayName": "Maestro 4199",
"network": "Maestro",
"type": "debit"
},
"transactionIdentifier": "9bd4b1969b482866b5786e0971efa1d42f25ab4f9b3124b894ea2be312753b7f"
}
The payment_token_object field is the base64_encoded string of the token data obtained after connecting to Apple Pay.
Signature:
Lexicographical sequence and URL key-value format new string
"amount=0.1¤cy=EUR&description=test&method=v3.ApplePay¬ify_url=https://www.yabandpay.com/notify&operation=1&order_id=1721987969&pay_method=online&payment_token_object=eyJwYXltZW50RGF0YSI6eyJkYXRhIjoic1RmRWRpeHcrWVBKY0RWY0prUEt1S1BSeVBBdnJXYTd1WllhOUJGMW1vVTh2YVNWUllZdmVFVzBjT2I4ZkNJL0thcGtsNkJnUE92cE1WUzNtR1d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3WUpLb1pJaHZjTkFRa0VNU0lFSU9LL0xTaFYxdWJNMDl1ZUNqSmVmYVlqNFgxWG1XNUtGU3BBZXVMc2pPcVlNQW9HQ0NxR1NNNDlCQU1DQkVjd1JRSWdLalZWYlJtS3NvakJYNEt6M1IybUVxcUJoWGJxUVg2U044RjR2WkwxUHZnQ0lRQ0FlK1hBbHdnL1lqQkwyRUpybzdkUWg0NW5nNlNjQVI5Ym9SUi9haU85eFFBQUFBQUFBQT09IiwiaGVhZGVyIjp7InB1YmxpY0tleUhhc2giOiJnNHBucDhiY251QmtLcTZmME5ZRHVSOXB2YldHVjZZelVwd1c4SnZyZ2tRPSIsImVwaGVtZXJhbFB1YmxpY0tleSI6Ik1Ga3dFd1lIS29aSXpqMENBUVlJS29aSXpqMERBUWNEUWdBRTZzakwrOEVYdzZWOXc1anViTSsybHlLeUJIQ2NoWmw3ekdGQUs5T3FFTnZQc3BRRk8vbXc5RFU3d2R5aVVhWi8wTk1zZW16eDU0NWNLWWtRc0ZBbk93PT0iLCJ0cmFuc2FjdGlvbklkIjoiYWJmMzA2M2QxNGI0YzM1MzFkZTliODc0YTUxZTJmOWJmMTA0MDRmZGIwNmVkYjFlNTRkM2NhZThlZDlkMGFjZCJ9LCJ2ZXJzaW9uIjoiRUNfdjEifSwicGF5bWVudE1ldGhvZCI6eyJkaXNwbGF5TmFtZSI6IlZpc2EgNTU1OCIsIm5ldHdvcmsiOiJWaXNhIiwidHlwZSI6ImRlYml0In0sInRyYW5zYWN0aW9uSWRlbnRpZmllciI6ImFiZjMwNjNkMTRiNGMzNTMxZGU5Yjg3NGE1MWUyZjliZjEwNDA0ZmRiMDZlZGIxZTU0ZDNjYWU4ZWQ5ZDBhY2QifQ&request_id=5g71qqe2v3twvm1sr71e74al5h7q4pbq&sub_pay_method=Apple Pay&time=1721987969&timeout=0&user=016683"
Use stringA and secret_key to get stringSign
Get Signature:
"12867d824b141542b6d78f705e3c206ebd7354bd9e50429ad22e84fbcfda621b"
Example Request (operation=1 Sales):
{
"user": "016683",
"sign": "12867d824b141542b6d78f705e3c206ebd7354bd9e50429ad22e84fbcfda621b",
"method": "v3.ApplePay",
"time": 1721987969,
"data": {
"description": "test",
"timeout": "0",
"pay_method": "online",
"sub_pay_method": "Apple Pay",
"order_id": 1721987969,
"amount": "0.1",
"currency": "EUR",
"operation": "1",
"notify_url": "https://www.yabandpay.com/notify",
"payment_token_object": "eyJwYXltZW50RGF0YSI6eyJkYXRhIjoic1RmRWRpeHcrWVBKY0RWY0prUEt1S1BSeVBBdnJXYTd1WllhOUJGMW1vVTh2YVNWUllZdmVFVzBjT2I4ZkNJL0thcGtsNkJnUE92cE1WUzNtR1dCdkhxMEZzTDB1UTVmM25YWjZuWVZ2T1BzNmRVSVlnWW95b09DRlUzSElZMGszV1dqYVV3ZE5Tb0VUeVlCZlZueDJVQ2JBRUdwcExYLzRrRzdpdzFJcFB1RGdESDdSMjZ3RjNCaThYUmNjSzc2cHc5Wm9MY3BVdnhHbTJPWmhkVnJwOFJ4dTJQOGhEaFZObEFYTGNFbjgrQWtBM2JkamdvSTVNb1NJeWNCM0htUHRBeHZnZE1HV3p1NUJtMUhoS1FMaEpPb05pSjM1alVzV1BvRzJnSURkTlRIWnhHUG03aE41akhpRURjSENYS1RFY0hENEVCeDlNazVsVndHYUdhWUFsYW9SUTlZdWVWczRWcVJVUlZGTForUVhjbWJ1aXVoT3g2WDRvSzJRRGxGU3BqYnVBMHdkZ1IrYTZFWWFXbDBZVVRTcXRDMmQ3VmNzSkJrUkJ3PSIsInNpZ25hdHVyZSI6Ik1JQUdDU3FHU0liM0RRRUhBcUNBTUlBQ0FRRXhEVEFMQmdsZ2hrZ0JaUU1FQWdFd2dBWUpLb1pJaHZjTkFRY0JBQUNnZ0RDQ0ErTXdnZ09Jb0FNQ0FRSUNDQlpqVElzT01GY1hNQW9HQ0NxR1NNNDlCQU1DTUhveExqQXNCZ05WQkFNTUpVRndjR3hsSUVGd2NHeHBZMkYwYVc5dUlFbHVkR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hvZCI6eyJkaXNwbGF5TmFtZSI6IlZpc2EgNTU1OCIsIm5ldHdvcmsiOiJWaXNhIiwidHlwZSI6ImRlYml0In0sInRyYW5zYWN0aW9uSWRlbnRpZmllciI6ImFiZjMwNjNkMTRiNGMzNTMxZGU5Yjg3NGE1MWUyZjliZjEwNDA0ZmRiMDZlZGIxZTU0ZDNjYWU4ZWQ5ZDBhY2QifQ",
"request_id": "5g71qqe2v3twvm1sr71e74al5h7q4pbq"
}
}
Example Response:
{
"status": true,
"code": "200",
"data": {
"order_id": "1721987969",
"trade_id": "8c9908cf-0df7-7e22-1724-0080246bb918",
"amount": "0.10",
"currency": "EUR",
"settlement_amount": "0.10",
"settlement_currency": "EUR",
"exchange_rate": "1",
"sub_pay_method": "Apple Pay",
"state": "paid",
},
"message": "",
"response_id": "202407261759298674663100"
}
More Information:
Return results:
On a successful API call, the response will be
"status": true
.On a failed API call, the response will be
"status": false
.
You need to redirect to the returned url
. After the user enters their card information and completes the payment at this url
, they will be redirected back to the redirect_url
.
We strongly recommend using both Order Query and Asynchronous Notification simultaneously to synchronize and update payment status, ensuring real-time accuracy of payment information.
If the order status state
is paid
, the payment is successful. If the order status state
is authorized
, the authorisation is successful.
Result/Error codes:
Status | Code | Message |
---|---|---|
true | 200 | |
fales | -1000 | Internal error |
fales | -403 | The signature Error |
fales | -2001 | The user not exist |
fales | -3001 | Required field is missing |
fales | -4118 | Incorrect request ID |