Apple Pay Merchant Validation
  • 08 Jan 2022
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

Apple Pay Merchant Validation

  • Dark
    Light
  • PDF

Article summary

Request message

Input request parameterDescription
Merchant Authentication TokenY2ExNzE2NDBlZjEyNmZhZjRmMmRmY2Iy
MerchantID STSPayOneM
ValidationURLhttps://apple-pay-gateway.apple.com/paymentservices/paymentSession
MessageID15
Parameters Order
MerchantID, MessageID, ValidationURL
Note: The parameters are ordered alphabetically in the secure hash.
The input to the Secure Hash generation routine 
Y2ExNzE2NDBlZjEyNmZhZjRmMmRmY2IySTSPayOneM15https://apple-paygateway.apple.com/paymentservices/paymentSession
Output
680e49ce5bf1065f241f7acf115786b64cd020f79c096e8049dc02d98403e168

Response message

Input response parameterDescription
Merchant Authentication TokenY2ExNzE2NDBlZjEyNmZhZjRmMmRmY2Iy
Response.MerchantIDSTSPayOneM
Response.MessageID15
Response.ApplePayMerchantValidation

{epochTimestamp":1603183173524,"expiresAt":1603186

773524,"merchantSessionIdentifier": "SSHC4D465F256

914C9FA7C21FF94EF9BDB6_916523AAED1343F5BC5815

E12BEE9250AFFDC1 A17C46B0DE5A943F0F94927C24

","nonce":"61ad2ea1","merchantIdentifier":

"033E623C661B AB9C4A9E17C5FE0B56728A849CFC

D71929664B56DF3581DFDAD3","domainName":

"demo.st spayone.com","displayName":

"SmartRoute","signature":"308006092a864886

f70d010702a080 3080020101310f300d060960864

80165030402010500308006092a864886f70d01070

10000a0 80308203e63082038ba003020102020868

60f699d9cca70f300a06082a8648ce3d040302307a

3 12e302c06035504030c254170706c65204170706

c69636174696f6e20496e746567726174696f6e204

341202d20473331263024060355040b0c1d4170706

c652043657274696669636174696f 6e2041757468

6f7269747931133011060355040a0c0a4170706c65

20496e632e310b30090603 55040613025553301e1

70d3136303630333138313634305a170d323130363

03231383136343 05a306231283026064e7bba08f

d7617ce88cb76bb6670bec8e82984ff5445a381f73

081f430460 6082b06010505070143657274696669

636174696f6e20417574686f726974793113301106

035 5040a0c0a4170706c6520496e632e310b30090

6035504061302555302086860f699d9cca70f30 0d

06096086480165030402010500a08195301806092a

864886f70d010903310b06092a864886 f70d01070

1301c06092a864886f70d010905310f170d3230313

032303038333933335a302a060 92a864886f70d01

0934311d301b300d06096086480165030402010500

a10a06082a8648ce3d0 40302302f06092a864886f

70d01090431220420518ad0c43ed2df237f252c9c7

816fcfec8155367 5aba279ff186822a039b0e7b30

0a06082a8648ce3d0403020446304402202e7dcaff

1c0581000e 25c6fbc0bace852a39cdcba239a331d

84400b443b624e602206fdaecf0592296e2fe55d24

495a2 4b5688edadb65eb3f65a2067c56614095d71

000000000000","operationalAnalyticsIdentif

ier":" SmartRoute:033E623C661BAB9C4A9E17C5

FE0B56728A849CFCD71929664B56DF3581DFDAD3 "

}

Parameters Order
Response. ApplePayMerchantValidation, Response.MerchantID, Response.MessageID
Note: The parameters are ordered alphabetically in the secure hash.
The input to the Secure Hash generation routine 
Y2ExNzE2NDBlZjEyNmZhZjRmMmRmY2Iy{epochTimestamp":1603183173524,"expiresAt":16 03186773524,"merchantSessionIdentifier":"SSHC4D465F256914C9FA7C21FF94EF9BDB6_916 523AAED1343F5BC5815E12BEE9250AFFDC1A17C46B0DE5A943F0F94927C24","nonce":"61a d2ea1","merchantIdentifier":"033E623C661BAB9C4A9E17C5FE0B56728A849CFCD71929664 B56DF3581DFDAD3","domainName":"demo.stspayone.com","displayName":"SmartRoute", "signature":"308006092a864886f70d010702a0803080020101310f300d06096086480165030 402010500308006092a864886f70d0107010000a080308203e63082038ba0030201020208686 0f699d9cca70f300a06082a8648ce3d040302307a312e302c06035504030c254170706c652041 70706c69636174696f6e20496e746567726174696f6e204341202d2047333126302406035504 0b0c1d4170706c652043657274696669636174696f6e20417574686f72697479311330110603 55040a0c0a4170706c6520496e632e310b3009060355040613025553301e170d313630363033 3138313634305a170d3231303630323138313634305a306231283026064e7bba08fd7617ce88
cb76bb6670bec8e82984ff5445a381f73081f4304606082b06010505070143657274696669636 174696f6e20417574686f7269747931133011060355040a0c0a4170706c6520496e632e310b30 0906035504061302555302086860f699d9cca70f300d06096086480165030402010500a081953 01806092a864886f70d010903310b06092a864886f70d010701301c06092a864886f70d010905 310f170d3230313032303038333933335a302a06092a864886f70d010934311d301b300d0609 6086480165030402010500a10a06082a8648ce3d040302302f06092a864886f70d0109043122 0420518ad0c43ed2df237f252c9c7816fcfec81553675aba279ff186822a039b0e7b300a06082a 8648ce3d0403020446304402202e7dcaff1c0581000e25c6fbc0bace852a39cdcba239a331d844 00b443b624e602206fdaecf0592296e2fe55d24495a24b5688edadb65eb3f65a2067c56614095 d71000000000000","operationalAnalyticsIdentifier":"SmartRoute:033E623C661BAB9C4A9E 17C5FE0B56728A849CFCD71929664B56DF3581DFDAD3"} STSPayOneM14
Output
9487eb19fedcd9e038826988602781c5cb9c535be25f47dd3d7589644041669b

What's Next