Received both the Error and the Complete delegate events simultaneously
Closed this issue · 8 comments
PayPal SDK Version
1.3.2
Environment
Sandbox
Xcode Version
Xcode 15.3
OS Version & Device
iPhone 13 iOs 17.4.1
Integration type
Swfit Package Manager
Development Processor
Apple Silicon (M-series chips)
Describe the bug
In the Demo APP, when selecting the Native checkout mode and replacing the Client ID with my own account's ID (without modifying the Order ID), I observed the following:
-
I consistently encountered this screen when I replaced the order ID with my own. A 'Review Order' button is at the bottom but not a 'Complete Order' button. When I clicked it, the popup just disappeared.
To reproduce
My client id: AYxfFTQHBFPxhM7zzo2oJSImcDVfL-kn5zv6vbQBeW5MBQxNgYECVkpVmLUvFWsjRt8c_Oxa2-OPkFr_
Expected behavior
If an error callback is received, the flow should be stopped and not proceed with the payment.
Screenshots
No response
Is this SDK in a stable release or beta/preview version?
Thank you for your interest in our SDK.
The demo app uses hard coded clientID and sandbox merchant credentials in our test merchant server.
If you hard code another clientID, the demo app will not work properly.
@KunJeongPark Thanks. Regarding the issue described in the fourth scenario above, when I used my Client ID and Order ID, the 'Review Order' is on the screen instead of the 'Complete Order'. Please help me understand what might be the problem in this case.
I'm not sure but it is not a flow that is supported by the demo app, modifying the demo app to include a different client ID.
The same thing happened when I integrated the SDK separately in my app. It also shows the 'Review order'
It is the same with your own app, you need server side integration. ClientID is only for use in the SDK.
It looks like you are using PayPalCheckoutSDK which is wrapped in our PayPalNativeCheckout module and that SDK along with the PayPalNativeCheckout module is being deprecated. We are only addressing existing merchants' critical security bugs for that module. We are directing our merchants to use PayPalWebPayments.
I have not been able to reproduce this issue. I suspect that this is an issue with permissions of order created.
Order ID passed to our SDK must be created by same merchant credentials as clientID passed into our SDK.
If you continue to run into this issue, you can create another ticket with correlation-ID