1{
2 "id": "ORDER-ID",
3 "intent": "AUTHORIZE",
4 "status": "COMPLETED",
5 "payment_source": {
6 "paypal": {
7 "email_address": "buyer@example.com",
8 "account_id": "buyer-account",
9 "account_status": "UNVERIFIED",
10 "name": {
11 "given_name": "Firstname",
12 "surname": "Lastname"
13 },
14 "address": {
15 "country_code": "US"
16 },
17 "stored_credential": {
18 "payment_initiator": "MERCHANT",
19 "usage_pattern": "RECURRING_POSTPAID",
20 "usage": "SUBSEQUENT"
21 }
22 }
23 },
24 "purchase_units": [{
25 "reference_id": "default",
26 "amount": {
27 "currency_code": "USD",
28 "value": "100.00"
29 },
30 "payee": {
31 "email_address": "merchant@example.com",
32 "merchant_id": "TEST-MERCHANT-ID"
33 },
34 "description": "HD Premium Plan",
35 "invoice_id": "test-invoice-id",
36 "soft_descriptor": "PAYPAL *TEST STORE",
37 "payments": {
38 "authorizations": [{
39 "status": "CREATED",
40 "id": "AUTHORIZATION-ID",
41 "amount": {
42 "currency_code": "USD",
43 "value": "100.00"
44 },
45 "invoice_id": "test-invoice-id",
46 "seller_protection": {
47 "status": "ELIGIBLE",
48 "dispute_categories": ["ITEM_NOT_RECEIVED", "UNAUTHORIZED_TRANSACTION"]
49 },
50 "expiration_time": "2024-11-29T15:49:26Z",
51 "links": [{
52 "href": "https://api.sandbox.paypal.com/v2/payments/authorizations/AUTHORIZATION-ID",
53 "rel": "self",
54 "method": "GET"
55 }, {
56 "href": "https://api.sandbox.paypal.com/v2/payments/authorizations/AUTHORIZATION-ID/capture",
57 "rel": "capture",
58 "method": "POST"
59 }, {
60 "href": "https://api.sandbox.paypal.com/v2/payments/authorizations/AUTHORIZATION-ID/void",
61 "rel": "void",
62 "method": "POST"
63 }, {
64 "href": "https://api.sandbox.paypal.com/v2/payments/authorizations/AUTHORIZATION-ID/reauthorize",
65 "rel": "reauthorize",
66 "method": "POST"
67 }, {
68 "href": "https://api.sandbox.paypal.com/v2/checkout/orders/ORDER-ID",
69 "rel": "up",
70 "method": "GET"
71 }],
72 "create_time": "2024-10-31T15:49:26Z",
73 "update_time": "2024-10-31T15:49:26Z"
74 }]
75 }
76 }],
77 "payer": {
78 "name": {
79 "given_name": "Firstname",
80 "surname": "Lastname"
81 },
82 "email_address": "buyer@example.com",
83 "payer_id": "test-payer-id",
84 "address": {
85 "country_code": "US"
86 }
87 },
88 "create_time": "2024-10-31T15:49:24Z",
89 "update_time": "2024-10-31T15:49:26Z",
90 "links": [{
91 "href": "https://api.sandbox.paypal.com/v2/checkout/orders/ORDER-ID",
92 "rel": "self",
93 "method": "GET"
94 }]
95}