Checkout flow - Javascript and REST satus PAYER_ACTION_REQUIRED

Mitch2023
Contributor
Contributor

I'm trying to use a combination of the Javascript SDK from the client browser and the REST API from my server to process a payment. Here's the flow:

1. Javascript on the client browser uses paypal.Buttons (intent=authorize) to create an order

2. Pop up window displays

3. User approves payment

4. Javascript in the onApprove() function captures the orderID and passes it to the server

5. Server uses the REST API to authorize (POST to /v2/checkout/orders/orderid/authorize)

 

The authorize call returns status of PAYER_ACTION_REQUIRED.

Why? The user has already approved the payment. Why is further action required?

I am missing something about how the flow is supposed to work.

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.