paypal / paypal-ios

One merchant integration point for all of PayPal's services
Apache License 2.0
59 stars 27 forks source link

After update to 0.0.10, 'PayPal/CardPayments' sdk can give me "INTERNAL_SERVER_ERROR: An internal server error has occurred." on Live environment #185

Closed kuldeep827 closed 1 year ago

kuldeep827 commented 1 year ago

PayPal SDK Version

0.0.10

Environment

Live

Xcode Version

14.2

OS Version & Device

No response

Integration type

Cocoapods

Development Processor

M1 Chip

Describe the bug

After update to 0.0.10, 'PayPal/CardPayments' sdk can give me "INTERNAL_SERVER_ERROR: An internal server error has occurred." on Live environment

This sdk working fine on sandbox environment. but give internal server error on live environment.

This is my code

        let card = Card(
            number: CardNumber,
            expirationMonth: ExpirationMonth,
            expirationYear: ExpirationYear,
            securityCode: SecurityCode,
            cardholderName: Name
        )

        let cardRequest = CardRequest(
            orderID: self.orderId,
            card: card,
            sca: .scaAlways 
        )
        let config = CoreConfig(clientID: Client_Id, environment: .live)
        let cardClient = CardClient(config: config)
        cardClient.delegate = self
        cardClient.approveOrder(request: cardRequest)

To reproduce

..

Expected behavior

..

Screenshots

No response

scannillo commented 1 year ago

If you wipe your device/simulator, delete and then re-install your app this issue should resolve. We adjusted some cache settings in that version.

Please let us know if this fixes your issue.

kuldeep827 commented 1 year ago

If you wipe your device/simulator, delete and then re-install your app this issue should resolve. We adjusted some cache settings in that version.

Please let us know if this fixes your issue.

Not working, facing same issue.

KunJeongPark commented 1 year ago

Hello, I just wanted to collect some information from you. 1) Do you have PayPal clientID setup for live environment? 2) If yes, using that clientID, did you generate an access token to create an order on your server side? The approveOrder function requires matching credential for order creation on the server side and clientID used to instantiate the cardClient.

kuldeep827 commented 1 year ago

Hello, I just wanted to collect some information from you.

  1. Do you have PayPal clientID setup for live environment?
  2. If yes, using that clientID, did you generate an access token to create an order on your server side? The approveOrder function requires matching credential for order creation on the server side and clientID used to instantiate the cardClient.

Hello Ma'am Thank you for quick response

  1. Yes, we have setup 'clientID' for both environment (sandbox and live).
  2. yes, we generate access token to create an order on your server side.

The approveOrder function requires matching credential for order creation on the server side and clientID used to instantiate the cardClient. -----> But this working fine on sandbox why?

we facing issue both library Android and iOS (live env only).

before release 0.0.9, working fine on release 0.0.8 with access Token.

KunJeongPark commented 1 year ago

Thank you for the information. I just wanted to check those off. So one more clarification, before 0.0.10 release, you had no problems with access token in live environment? We will investigate this further. Thank you.

kuldeep827 commented 1 year ago

Thank you for the information. I just wanted to check those off. So one more clarification, before 0.0.10 release, you had no problems with access token in live environment? We will investigate this further. Thank you.

before 0.0.10 release, i have no problems with access token in live environment. working fine in both libraries Android and iOS

KunJeongPark commented 1 year ago

Thank you. We are investigating this issue.

scannillo commented 1 year ago

👋 Hi @kuldeep827 - we are not able to replicate this issue. Can you confirm that you're using a valid clientID? It sounds like your sandbox integration is working fine, so I am guessing you're missing some setup in your prod/live account.

scannillo commented 1 year ago

Closing due to inactivity.