Error status PAYER_ACTION_REQUIRED on order capture

FabZip77
Contributor
Contributor

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?

Login to Me Too
1 REPLY 1

Here-to-help
Contributor
Contributor

Hi, It means that the buyer hasn't approved the order yet.  You can only capture the order once it's approved. 

Login to Me Too

Haven't Found your Answer?

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