paypal/paypal-ios

PayPal sheet hangs on load and delegate doesnt post events

Closed this issue · 1 comments

PayPal SDK Version

1.0.0

Environment

Sandbox

Xcode Version

15.0

OS Version & Device

iPhone 14 Pro - iOS 17.0 (Simulator)

Integration type

CocoaPods

Development Processor

Apple Silicon (M-series chips)

Describe the bug

When I present the payment sheet, it loads but the proceed button just keeps loading and never loads, as seen below. In the console I get various warnings & errors, I'm not sure if they are related to my issue, see below:

CleanShot 2023-11-17 at 20 35 05@2x

I also noticed that I don't get any notifications from the delegate.

Any idea if I'm doing something wrong?

To reproduce

  1. Create a native checkout request
  2. Present the sheet
  3. Observe that the payment sheet keeps "loading"

Expected behavior

The payment sheet should finish loading and I should get notifications from the delegate.

Screenshots

CleanShot 2023-11-17 at 20 34 12@2x

Interestingly enough, if I do not provide a client ID to the paypal SDK, but rather an access token gathered via the OAuth API, It works fine but presents a web browser sheet in which I need to log into my paypal (which makes sense), so I'm not sure why it didn't even ask me to log in using the client ID.