frames-ios
frames-ios copied to clipboard
apple pay token got card_expired error
Describe the bug When requesting a payment using the token generated for apple pay, I keep getting card_expired error.
API response: { "request_id": "", "error_type": "processing_error", "error_codes": [ "card_expired" ] }
To Reproduce Steps to reproduce the behavior:
-
Go to xcode and build in a connected iphone
-
Click on 'apple pay'
-
Get the token (tok_xxxx)
-
Use the token in step 3 to request a payment in sbox with this payload: { "source": { "type": "token", "token": "tok_xxxx" }, "amount": 100, "currency": "GBP", "payment_type": "Regular", "reference": "test applepay", "description": "test", "capture": true, "processing_channel_id": "pc_xxxx" }
-
Receive API response "422 Unprocessable Entity" containing the reported card_expired error
Expected behavior Step 5 should return a payment authorized response