PaystackHQ / paystack-ios

Paystack SDK for iOS. Accept Payments on iOS
http://paystack.com
MIT License
26 stars 31 forks source link

Error "access code has expired" on new access code #30

Closed lingzhai closed 4 years ago

lingzhai commented 4 years ago

Problem/Motivation

I am using latest paystack-ios example with API to generate new access code and test charge with test credit card. But it is always throwing below error on click of "Charge Card". I am using PSTCKPaymentCardTextField in the paystack-ios example.

Error returned "access code has expired"

define PSTCKExpiredAccessCodeErrorMessage NSLocalizedString(@"There was a problem completing your request", @"Error when access code has no valid transaction")

Let me know if you have any suggestions.

Screen Shot 2019-12-28 at 11 23 47 AM

Proposed resolution

(Description of the proposed solution, the rationale behind it, and workarounds for people who cannot use the patch.)

Repeatable

Always

(If it is a bug, you are reporting lease specify:)

Steps to repeat: (Describe how the issue can be repeated by someone who is to work on it)

  1. using latest paystack-ios example, error on click of "Charge Card"

Expected Results:

Charge to succeed

Actual Results:

Error: There was a problem completing your request.