-
Notifications
You must be signed in to change notification settings - Fork 0
/
data.ts
106 lines (106 loc) · 2.66 KB
/
data.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
const data = {
id: "02Y14448F80401454",
status: "COMPLETED",
payment_source: {
paypal: {
email_address: "sb-2xb8k27028003@personal.example.com",
account_id: "8VWWA46UKJKRS",
account_status: "VERIFIED",
name: {
given_name: "John",
surname: "Doe",
},
address: {
country_code: "KE",
},
},
},
purchase_units: [
{
reference_id: "default",
shipping: {
name: {
full_name: "John Doe",
},
address: {
address_line_1: "Free Trade Zone",
admin_area_2: "Nairobi",
admin_area_1: "CA",
postal_code: "00521",
country_code: "KE",
},
},
payments: {
captures: [
{
id: "4BT21486BL543744E",
status: "COMPLETED",
amount: {
currency_code: "USD",
value: "15.00",
},
final_capture: true,
seller_protection: {
status: "ELIGIBLE",
dispute_categories: [
"ITEM_NOT_RECEIVED",
"UNAUTHORIZED_TRANSACTION",
],
},
seller_receivable_breakdown: {
gross_amount: {
currency_code: "USD",
value: "15.00",
},
paypal_fee: {
currency_code: "USD",
value: "0.81",
},
net_amount: {
currency_code: "USD",
value: "14.19",
},
},
links: [
{
href: "https://api.sandbox.paypal.com/v2/payments/captures/4BT21486BL543744E",
rel: "self",
method: "GET",
},
{
href: "https://api.sandbox.paypal.com/v2/payments/captures/4BT21486BL543744E/refund",
rel: "refund",
method: "POST",
},
{
href: "https://api.sandbox.paypal.com/v2/checkout/orders/02Y14448F80401454",
rel: "up",
method: "GET",
},
],
create_time: "2024-03-20T17:44:56Z",
update_time: "2024-03-20T17:44:56Z",
},
],
},
},
],
payer: {
name: {
given_name: "John",
surname: "Doe",
},
email_address: "sb-2xb8k27028003@personal.example.com",
payer_id: "8VWWA46UKJKRS",
address: {
country_code: "KE",
},
},
links: [
{
href: "https://api.sandbox.paypal.com/v2/checkout/orders/02Y14448F80401454",
rel: "self",
method: "GET",
},
],
};