Populate an Order Review Page

Last updated: Sept 24th, 3:42pm

For PayPal Plus for Brazil, see the Brazilian integration guide.

You have the option of including an order review page in your checkout flow so that a buyer can review details of the purchase before executing the payment.

The buyer can not change the order details, but they can edit the shipping address if it is submitted in the execute payment call. You can also add shipping and handling charges.

Example

This example request shows how to look up a payment to populate an order review page:

Request

    1curl -v -X GET https://api-m.sandbox.paypal.com/v1/payments/payment/<Payment-Id>
    2 -H 'Content-Type: application/json' \
    3 -H 'Authorization: Bearer <Access-Token>'

    Response

      1{
      2 "id": "PAY-79281421TB351034WKP2JXZA",
      3 "create_time": "2014-08-20T13:00:20Z",
      4 "update_time": "2014-08-20T13:00:20Z",
      5 "state": "created",
      6 "intent": "sale",
      7 "payer": {
      8 "payment_method": "paypal",
      9 "status": "UNVERIFIED",
      10 "payer_info": {
      11 "email": "privatkunde@paypal.de",
      12 "first_name": "Max",
      13 "last_name": "Santos",
      14 "payer_id": "QTTRJRG478D9W",
      15 "shipping_address": {
      16 "line1": "Greg?rio Rolim de Oliveira, 42",
      17 "city": "Votorantim",
      18 "postal_code": "18117-134",
      19 "country_code": "BR",
      20 "recipient_name": "Max Santos"
      21 }
      22 }
      23 },
      24 "transactions": [
      25 {
      26 "amount": {
      27 "total": 25.00,
      28 "currency": "BRL",
      29 "details": {
      30 "subtotal": 25.00
      31 }
      32 },
      33 "item_list": {
      34 "items": [
      35 {
      36 "name": "Rugby Ball, Size 5",
      37 "price": 25,
      38 "currency": "BRL",
      39 "quantity": 1
      40 }
      41 ],
      42 "shipping_address": {
      43 "recipient_name": "Max Santos",
      44 "line1": "Greg?rio Rolim de Oliveira, 42",
      45 "city": " Votorantim ",
      46 "postal_code": "18117-134",
      47 "country_code": "BR"
      48 }
      49 }
      50 }
      51 ],
      52 "links": [
      53 {
      54 "href": "https://api-m.sandbox.paypal.com/v1/payments/payment/PAY-79281421TB351034WKP2JXZA",
      55 "rel": "self",
      56 "method": "GET"
      57 },
      58 {
      59 "href": "https://api-m.sandbox.paypal.com/v1/payments//cgi-bin/webscr?cmd=_express-checkout&token=EC-2BA876161J833444B",
      60 "rel": "approval_url",
      61 "method": "REDIRECT"
      62 },
      63 {
      64 "href": "https://api-m.sandbox.paypal.com/v1/payments/payment/PAY-79281421TB351034WKP2JXZA/execute",
      65 "rel": "execute",
      66 "method": "POST"
      67 }
      68 ]
      69}

      Next

      Test your integration and execute the payment.

      We use cookies to improve your experience on our site. May we use marketing cookies to show you personalized ads? Manage all cookies