Apple pay token

How to prevent Apple Pay tokens from being used a second time? After getting PKPaymentToken in my app. I am passing the payment information to my web server and from my web server am sending to the payment platform. It works well.

For testing, I send again this token to the payment platform. It works but it should be avoided.

Your payment platform can reject this token by looking at the timestamp embedded into the signature of the token and comparing it against the transaction timestamp. If it's outside a specific window then the payment provider can reject the token. See more on this here.

Matt Eaton
DTS Engineering, CoreOS
meaton3@apple.com
Apple pay token
 
 
Q