-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.js
151 lines (151 loc) · 4.73 KB
/
application.js
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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
{
"transaction_details"= [
{
"transaction_info": {
"paypal_account_id": "6STWC2LSUYYYE",
"transaction_id": "5TY05013RG002845M",
"transaction_event_code": "T0006",
"transaction_initiation_date": "2014-07-11T04:03:52+0000",
"transaction_updated_date": "2014-07-11T04:03:52+0000",
"transaction_amount": {
"currency_code": "USD",
"value": "465.00"
},
"fee_amount": {
"currency_code": "USD",
"value": "-13.79"
},
"insurance_amount": {
"currency_code": "USD",
"value": "15.00"
},
"shipping_amount": {
"currency_code": "USD",
"value": "30.00"
},
"shipping_discount_amount": {
"currency_code": "USD",
"value": "10.00"
},
"transaction_status": "S",
"transaction_subject": "Bill for your purchase",
"transaction_note": "Check out the latest sales",
"invoice_id": "Invoice-005",
"custom_field": "Thank you for your business",
"protection_eligibility": "01"
},
"payer_info": {
"account_id": "6STWC2LSUYYYE",
"email_address": "[email protected]",
"address_status": "Y",
"payer_status": "Y",
"payer_name": {
"given_name": "test",
"surname": "consumer",
"alternate_full_name": "test consumer"
},
"country_code": "US"
},
"shipping_info": {
"name": "Sowmith",
"address": {
"line1": "Eco Space, bellandur",
"line2": "OuterRingRoad",
"city": "Bangalore",
"country_code": "IN",
"postal_code": "560103"
}
},
"cart_info": {
"item_details": [
{
"item_code": "ItemCode-1",
"item_name": "Item1 - radio",
"item_description": "Radio",
"item_quantity": "2",
"item_unit_price": {
"currency_code": "USD",
"value": "50.00"
},
"item_amount": {
"currency_code": "USD",
"value": "100.00"
},
"tax_amounts": [
{
"tax_amount": {
"currency_code": "USD",
"value": "20.00"
}
}
],
"total_item_amount": {
"currency_code": "USD",
"value": "120.00"
},
"invoice_number": "Invoice-005"
},
{
"item_code": "ItemCode-2",
"item_name": "Item2 - Headset",
"item_description": "Headset",
"item_quantity": "3",
"item_unit_price": {
"currency_code": "USD",
"value": "100.00"
},
"item_amount": {
"currency_code": "USD",
"value": "300.00"
},
"tax_amounts": [
{
"tax_amount": {
"currency_code": "USD",
"value": "60.00"
}
}
],
"total_item_amount": {
"currency_code": "USD",
"value": "360.00"
},
"invoice_number": "Invoice-005"
},
{
"item_name": "3",
"item_quantity": "1",
"item_unit_price": {
"currency_code": "USD",
"value": "-50.00"
},
"item_amount": {
"currency_code": "USD",
"value": "-50.00"
},
"total_item_amount": {
"currency_code": "USD",
"value": "-50.00"
},
"invoice_number": "Invoice-005"
}
]
},
"store_info": {},
"auction_info": {},
"incentive_info": {}
}
],
"account_number" = "XZXSPECPDZHZU",
"last_refreshed_datetime"= "2017-01-02T06:59:59+0000",
"page"= 1,
"total_items"= 1,
"total_pages"= 1,
"links"= [
{
"href": "https://api-m.sandbox.paypal.com/v1/reporting/transactions?start_date=2014-07-01T00:00:00-0700&end_date=2014-07-30T23:59:59-0700&transaction_id=5TY05013RG002845M&fields=all&page_size=100&page=1",
"rel": "self",
"method": "GET"
}
]
}