Update the payment selection page

In situations when a payment selection causes changes to the displayed fields in your payment flow, you may want to PATCH the payment and then reload the payment selection page for situations. This example shows how to issue a patch request. If the call is successful, a status of 204 No Content returns.

curl -v -X PATCH https://api.sandbox.paypal.com/v1/payments/payment/Payment-Id
-H 'Content-Type: application/json' \
-H 'Authorization: Bearer {accessToken}' \
-d '{
    "op": "replace",
    "path": "/transactions/0/amount",
    "value": {
      "total": "25.00",
      "currency": " BRL ",
      "details": {
        "subtotal": "20.00",
        "shipping": "5.00"
    "op": "add",
    "path": "/transactions/0/item_list/shipping_address",
    "value": {
      "recipient_name": "Max Santos",
      "line1": "Greg?rio Rolim de Oliveira, 42",
      "city": "Votorantim",
      "postal_code": "18117-134",
      "country_code": "BR"



Have feedback?

Let us know.