frames-ios icon indicating copy to clipboard operation
frames-ios copied to clipboard

apple pay token got card_expired error

Open Yannie-Chen opened this issue 3 months ago • 0 comments

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:

  1. Go to xcode and build in a connected iphone

  2. Click on 'apple pay'

  3. Get the token (tok_xxxx)

  4. 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" }

  5. Receive API response "422 Unprocessable Entity" containing the reported card_expired error

Expected behavior Step 5 should return a payment authorized response

Yannie-Chen avatar Apr 08 '24 10:04 Yannie-Chen