Error status PAYER_ACTION_REQUIRED on order capture
FabZip77
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Posted on
Aug-22-2024
08:55 AM
On this Capture
{
"intent": "CAPTURE",
"purchase_units": [
{
"reference_id": "vjzpnCV6E8R2G98IT2XV",
"description": "Cart Ref.: vjzpnCV6E8R2G98IT2XV",
"items": [
{
"name": "Rivivi i luoghi del commissario Montalbano",
"quantity": "1",
"description": "3, Tour del commissario Montalbano",
"sku": "990-1856",
"category": "DIGITAL_GOODS",
"unit_amount": {
"currency_code": "EUR",
"value": "285.00"
}
}
],
"amount": {
"currency_code": "EUR",
"value": "285.00",
"breakdown": {
"item_total": {
"currency_code": "EUR",
"value": "285.00"
}
}
}
}
],
"payment_source": {
"paypal": {
"experience_context": {
"shipping_preference": "NO_SHIPPING",
"landing_page": "NO_PREFERENCE",
"user_action": "PAY_NOW",
"payment_method_preference": "IMMEDIATE_PAYMENT_REQUIRED",
"locale": "it-IT",
"return_url": "https://www.sicilying.com/it/bookofferta/booking?step=5",
"cancel_url": "https://www.sicilying.com/it/bookofferta/booking",
"payment_method_selected": "PAYPAL"
},
"email_address": "xxx@xxx",
"name": {
"given_name": "Name",
"surname": "Surname"
},
"phone": {
"phone_type": "MOBILE",
"phone_number": {
"national_number": "11996...(censored)"
}
}
}
}
}
I got this error
{
"id": "35M64482FS100214S",
"status": "PAYER_ACTION_REQUIRED",
"payment_source": {
"paypal": {
"email_address": "xxx@xxx",
"name": {
"given_name": "Name",
"surname": "Surname"
},
"phone_type": "MOBILE",
"phone_number": {
"national_number": "119960...(censored)"
}
}
},
"payer": {
"name": {
"given_name": "Name",
"surname": "Surname"
},
"email_address": "xxx@xxx",
"phone": {
"phone_type": "MOBILE",
"phone_number": {
"national_number": "11996...(censored)"
}
}
},
"links": [
{
"href": "https://api.paypal.com/v2/checkout/orders/35M64482FS100214S",
"rel": "self",
"method": "GET"
},
{
"href": "https://www.paypal.com/checkoutnow?token=35M64482FS100214S",
"rel": "payer-action",
"method": "GET"
}
]
}
I read other users who had this error because "shipping_preference": "NO_SHIPPING" was missing,
but in my case it is there. What could be the problem?
1 REPLY 1
Here-to-help
Contributor
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Aug-27-2024
12:37 AM
Hi, It means that the buyer hasn't approved the order yet. You can only capture the order once it's approved.

Haven't Found your Answer?
It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.
Related Content
- CHECKOUT.ORDER.APPROVED webhook event not triggered if payment_source is passed in in REST APIs
- Compliance violation. flag based on the account origin ? in Sandbox Environment
- Sandbox isnt working in REST APIs
- Some negative testing value only reply 403 Forbidden in Sandbox Environment
- Subscription did not get auto renewed in sandbox mode but it was created successfully in Sandbox Environment