PAYER_ACTION_REQUIRED returned for Capture intent when calling v2 checkout orders
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I am attempting to create order with this request:
{"purchase_units":[{"reference_id":"default","description":"","custom_id":"2425409","invoice_id":"3288309","soft_descriptor":"","items":[{"name":"1 oz Canadian Silver Maple Leaf Coin BU (Random Year)","quantity":"10","description":"","sku":"1090","url":"","category":"PHYSICAL_GOODS","image_url":"https://www.images-apmex.com/images/Catalog Images/Products/1090_slab.jpg","unit_amount":{"value":"30.15","currency_code":"USD"},"tax":{"value":"0.00","currency_code":"USD"},"upc":{"type":"UPC-A","code":"11111111111111111"}}],"amount":{"currency_code":"USD","value":"301.50","breakdown":{"item_total":{"value":"301.50","currency_code":"USD"},"shipping":{"value":"0.00","currency_code":"USD"},"handling":{"value":"0.00","currency_code":"USD"},"tax_total":{"value":"0.00","currency_code":"USD"},"insurance":{"value":"0.00","currency_code":"USD"},"shipping_discount":{"value":"0.00","currency_code":"USD"},"discount":{"value":"0.00","currency_code":"USD"}}},"shipping":{"type":"SHIPPING","address":{"address_line_1":"6451 PHEASANT VALLEY RD","address_line_2":"","admin_area_2":"DAYTON","admin_area_1":"OH","postal_code":"45424-7103","country_code":"US"}},"supplementary_data":{"card":{"level_2":{"invoice_id":"3288309","tax_total":{"value":"0","currency_code":"USD"}},"level_3":{"ships_from_postal_code":"73102","line_items":[null],"shipping_amount":{"value":"0","currency_code":"USD"},"duty_amount":{"value":"0","currency_code":"USD"},"discount_amount":{"value":"0","currency_code":"USD"},"shipping_address":{"address_line_1":"6451 PHEASANT VALLEY RD","address_line_2":"","admin_area_2":"DAYTON","admin_area_1":"OH","postal_code":"45424-7103","country_code":"US"}}}}}],"intent":"CAPTURE","payment_source":{"paypal":{"experince_context":null,"email_address":"xxxxxxxxxx","name":{"given_name":"Dayton","surname":"Ohio"},"phone":{"phone_type":"HOME","phone_number":{"national_number":"1111111111"}},"address":{"address_line_1":"6451 PHEASANT VALLEY RD","address_line_2":"","admin_area_2":"DAYTON","admin_area_1":"OH","postal_code":"45424-7103","country_code":"US"}}}}
The call to PayPal returns the status Payer_Action_Required
https://api.sandbox.paypal.com/v2/checkout/orders/69U97603G9106131C","rel":"self","method":"GET"},{"href":"https://www.sandbox.paypal.com/checkoutnow?token=69U97603G9106131C","rel":"payer-action","method":"GET"}]}
and returns with a create_order_error
What is causing the Payer_Action_Required response?
- Labels:
-
Add or withdraw money
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi @lcody1,
Thank you for posting to the PayPal Merchant Community.
The buyer needs to approve the order after it is created and before it is captured by redirecting the buyer to the “payer-action” href that is returned in the API response as defined on our developer page about the Orders V2 REST API [https://developer.paypal.com/docs/api/orders/v2/#orders_create].
Please let us know if you have any additional questions or need any further assistance.
Sincerely,
John
MTS
PayPal
If you found this post helpful, please give it a kudos or accept it as a solution so it can help others with a similar question.
Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.