forked from james-stevens/pyrar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
74a19b7
commit b380dce
Showing
6 changed files
with
184 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,146 @@ | ||
{ | ||
"id": "WH-77R17956UE4571227-3W352776K41340038", | ||
"event_version": "1.0", | ||
"create_time": "2023-02-23T15:22:32.624Z", | ||
"resource_type": "checkout-order", | ||
"resource_version": "2.0", | ||
"event_type": "CHECKOUT.ORDER.APPROVED", | ||
"summary": "An order has been approved by buyer", | ||
"resource": { | ||
"update_time": "2023-02-23T15:22:31Z", | ||
"create_time": "2023-02-23T15:22:05Z", | ||
"purchase_units": [ | ||
{ | ||
"reference_id": "default", | ||
"amount": { | ||
"currency_code": "USD", | ||
"value": "40.00", | ||
"breakdown": { | ||
"item_total": { | ||
"currency_code": "USD", | ||
"value": "40.00" | ||
} | ||
} | ||
}, | ||
"payee": { | ||
"email_address": "[email protected]", | ||
"merchant_id": "8ABGNSC8Q2SY2" | ||
}, | ||
"description": "NameShake Registrar: Domain Names", | ||
"custom_id": "28D2:ktTrcM3xiIgdx3pgNZxfqeKWIeRQyB", | ||
"items": [ | ||
{ | ||
"name": "dom/create tam.chug for 1 yr", | ||
"unit_amount": { | ||
"currency_code": "USD", | ||
"value": "40.00" | ||
}, | ||
"quantity": "1" | ||
} | ||
], | ||
"shipping": { | ||
"name": { | ||
"full_name": "John Doe" | ||
}, | ||
"address": { | ||
"address_line_1": "Whittaker House", | ||
"address_line_2": "2 Whittaker Avenue", | ||
"admin_area_2": "Richmond", | ||
"admin_area_1": "Surrey", | ||
"postal_code": "TW9 1EH", | ||
"country_code": "GB" | ||
} | ||
}, | ||
"payments": { | ||
"captures": [ | ||
{ | ||
"id": "7WL50287YT2658145", | ||
"status": "COMPLETED", | ||
"amount": { | ||
"currency_code": "USD", | ||
"value": "40.00" | ||
}, | ||
"final_capture": true, | ||
"seller_protection": { | ||
"status": "ELIGIBLE", | ||
"dispute_categories": [ | ||
"ITEM_NOT_RECEIVED", | ||
"UNAUTHORIZED_TRANSACTION" | ||
] | ||
}, | ||
"seller_receivable_breakdown": { | ||
"gross_amount": { | ||
"currency_code": "USD", | ||
"value": "40.00" | ||
}, | ||
"paypal_fee": { | ||
"currency_code": "USD", | ||
"value": "1.66" | ||
}, | ||
"net_amount": { | ||
"currency_code": "USD", | ||
"value": "38.34" | ||
} | ||
}, | ||
"links": [ | ||
{ | ||
"href": "https://api.sandbox.paypal.com/v2/payments/captures/7WL50287YT2658145", | ||
"rel": "self", | ||
"method": "GET" | ||
}, | ||
{ | ||
"href": "https://api.sandbox.paypal.com/v2/payments/captures/7WL50287YT2658145/refund", | ||
"rel": "refund", | ||
"method": "POST" | ||
}, | ||
{ | ||
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/9B7760128D630694X", | ||
"rel": "up", | ||
"method": "GET" | ||
} | ||
], | ||
"create_time": "2023-02-23T15:22:31Z", | ||
"update_time": "2023-02-23T15:22:31Z" | ||
} | ||
] | ||
} | ||
} | ||
], | ||
"links": [ | ||
{ | ||
"href": "https://api.sandbox.paypal.com/v2/checkout/orders/9B7760128D630694X", | ||
"rel": "self", | ||
"method": "GET" | ||
} | ||
], | ||
"id": "9B7760128D630694X", | ||
"payment_source": { | ||
"paypal": {} | ||
}, | ||
"intent": "CAPTURE", | ||
"payer": { | ||
"name": { | ||
"given_name": "John", | ||
"surname": "Doe" | ||
}, | ||
"email_address": "[email protected]", | ||
"payer_id": "SA3XU4N2ALCEA", | ||
"address": { | ||
"country_code": "GB" | ||
} | ||
}, | ||
"status": "COMPLETED" | ||
}, | ||
"links": [ | ||
{ | ||
"href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-77R17956UE4571227-3W352776K41340038", | ||
"rel": "self", | ||
"method": "GET" | ||
}, | ||
{ | ||
"href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-77R17956UE4571227-3W352776K41340038/resend", | ||
"rel": "resend", | ||
"method": "POST" | ||
} | ||
] | ||
} |