Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PayFortSDK: Transaction Decline Issue only when using Apple Pay with AMEX Card #22

Open
sharjeelahmed opened this issue Jan 1, 2024 · 0 comments

Comments

@sharjeelahmed
Copy link

sharjeelahmed commented Jan 1, 2024

Issue Description

I'm currently facing a challenge when attempting to use Apple Pay with an AMEX card through the PayFortSDK Sanbox.

Expected Behavior

I anticipated that the Apple Pay transaction with the AMEX card would go through successfully, similar to transactions with other card types such as Mastercard and Visa.

Actual Behavior

Unfortunately, the transaction with the test AMEX card using Apple Pay is consistently declined, accompanied by the error message: Transaction Decline.

On the flip side, Apple Pay transactions with cards other than AMEX, such as Mastercard or Visa through successful responses from PayFort.

Additional Information

Details of the AMEX card are not working with Apple Pay through PayFortSDK.

AMEX Card Details (Not Working):

  • Card Number: 3717 377570 42005
  • Expiration Date: 02/2024
  • CID: 1111

Mastercard and Visa Card Details (Working):

  • Card Number: 5204 2452 5046 0049

  • Expiration Date: 12/2024

  • CVC: 111

  • Card Number: 4761 1200 1000 0492

  • Expiration Date: 12/2025

  • CVV: 738

Steps to Reproduce

  1. Initialize the Apple Pay transaction.
  2. Select your test AMEX card added to the wallet.
  3. After obtaining the Apple payloads from Apple Pay, call the PayFortSDK function callPayFortForApplePay.
  4. Provide the relevant details to the function callPayFortForApplePay.
  5. Attempt to complete the payment process with an AMEX card.
 func startApplePayment(payment: PKPayment, completionHandler: @escaping (_ success: Bool?, _ cancelled: Bool?, _ failure: (Bool, String?)?) -> Void) {
        print(request ?? ["":""])
        payFort.callPayFortForApplePay(withRequest: request as! [String : String], applePayPayment: payment, currentViewController: self,
                                       success: { (requestDic, responeDic) in
            debugPrint(requestDic)
            debugPrint(responeDic)
            
            completionHandler(true, nil, nil)
        },
                                       
                                       faild: { (requestDic, responeDic, message) in
            debugPrint(requestDic)
            debugPrint(responeDic)
            debugPrint(message)
            completionHandler(nil, nil, (true, message))
        })
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant