@NorfolkMustardHow can I get the "encrypted, tokenised credit card number" and decrypt it to get the credit card number and process the payment myself ?I am struggling to get the credit card number from the response object. I managed to get customer name, card brand, type and last 4 digits of card number. But cannot get the full card number. (see my question https://forums.developer.apple.com/thread/128712).This is what I get from the JS at the end: https://drive.google.com/file/d/1a33fsO77xGNxUEC2qKQFYbKpWK1qzo87/viewBut how can I get the credit card number out of that ?
Post
Replies
Boosts
Views
Activity
Thank you for the response.I just decrypted the payment data from inside the PaymentToken using this method: https://developer.apple.com/library/archive/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.htmlNow I have all the information like device-specific account number (applicationPrimaryAccountNumber) and card expiration date in plaintext.Can I use any of the infromation inside the PaymentToken to find the issuing bank of this card ?Referring to the apple link above:7.Use the decrypted payment data to process the payment.I have made it up to step 7, now how exctly can I process the payment ? What is the next step. I am missing a manual or some sort of detailed instruction, could not find any on the apple pay docs.By the way: I don't use any third party payment processor.Thank you and best regardsShahir
I am also in the integration process of apple pay on my website. I used the payment processing certificate (serverside) to decrypt the PaymentToken, which you get from ApplePay JS after authorization.PaymentToken: https://developer.apple.com/library/archive/documentation/PassKit/Reference/PaymentTokenJSON/PaymentTokenJSON.htmlBest regardsShahir