Created
December 20, 2022 19:54
-
-
Save jpark3000/42be46c7e11a5b76b96f603b1d9fb0e0 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| WEBHOOK EVENT | |
| { | |
| "id": "WH-290666983S543943B-5WC710453C4596920", | |
| "create_time": "2022-12-15T05:10:15.945Z", | |
| "resource_type": "capture", | |
| "event_type": "PAYMENT.CAPTURE.COMPLETED", | |
| "summary": "Payment completed for GBP 449.24 GBP", | |
| "resource": { | |
| "amount": { | |
| "value": "449.24", | |
| "currency_code": "GBP" | |
| }, | |
| "seller_protection": { | |
| "dispute_categories": [ | |
| "ITEM_NOT_RECEIVED", | |
| "UNAUTHORIZED_TRANSACTION" | |
| ], | |
| "status": "ELIGIBLE" | |
| }, | |
| "supplementary_data": { | |
| "related_ids": { | |
| "order_id": "0E62476010367481P" | |
| } | |
| }, | |
| "update_time": "2022-12-15T05:10:12Z", | |
| "create_time": "2022-12-15T05:10:12Z", | |
| "final_capture": true, | |
| "seller_receivable_breakdown": { | |
| "paypal_fee": { | |
| "value": "16.07", | |
| "currency_code": "GBP" | |
| }, | |
| "gross_amount": { | |
| "value": "449.24", | |
| "currency_code": "GBP" | |
| }, | |
| "net_amount": { | |
| "value": "433.17", | |
| "currency_code": "GBP" | |
| } | |
| }, | |
| "links": [ | |
| { | |
| "method": "GET", | |
| "rel": "self", | |
| "href": "https://api.sandbox.paypal.com/v2/payments/captures/7JU67550Y37583234" | |
| }, | |
| { | |
| "method": "POST", | |
| "rel": "refund", | |
| "href": "https://api.sandbox.paypal.com/v2/payments/captures/7JU67550Y37583234/refund" | |
| }, | |
| { | |
| "method": "GET", | |
| "rel": "up", | |
| "href": "https://api.sandbox.paypal.com/v2/checkout/orders/0E62476010367481P" | |
| } | |
| ], | |
| "id": "7JU67550Y37583234", | |
| "status": "COMPLETED" | |
| }, | |
| "status": "SUCCESS", | |
| "transmissions": [ | |
| { | |
| "webhook_url": "https://sandbox.reverb.com/paypal/webhook_event", | |
| "http_status": 200, | |
| "reason_phrase": "HTTP/1.1 200 Connection established", | |
| "response_headers": { | |
| "transfer-encoding": "chunked", | |
| "Server": "openresty", | |
| "Access-Control-Allow-Origin": "*", | |
| "X-Revision": "e1ddc9e1cbac89f037be50bc4096d1444f5a76d5", | |
| "Access-Control-Allow-Methods": "GET,PUT,POST,PATCH,DELETE,HEAD,OPTIONS", | |
| "X-Runtime": "0.027553", | |
| "Fastly-Restarts": "1", | |
| "X-Permitted-Cross-Domain-Policies": "none", | |
| "X-VCL-Version": "801", | |
| "Strict-Transport-Security": "max-age=31536000; preload", | |
| "vcl-version": "801", | |
| "X-Served-By": "cache-sna10737-LGB", | |
| "Content-Security-Policy": "default-src * 'unsafe-inline' 'unsafe-eval' data: blob:; frame-ancestors 'self' sandbox.reverb.com", | |
| "backend": "F_Core_Sandbox", | |
| "Set-Cookie": "ea=e359f1de7ea0db853b3ea864e869d5a1; path=/; max-age=86400", | |
| "X-XSS-Protection": "1; mode=block", | |
| "Content-Type": "text/html; charset=utf-8", | |
| "X-Cache": "MISS", | |
| "X-Request-Id": "9bad71c490b9bac5abeb1aefd67e3ddb78000beb", | |
| "X-Content-Type-Options": "nosniff", | |
| "Connection": "keep-alive", | |
| "X-Download-Options": "noopen", | |
| "Date": "Thu, 15 Dec 2022 05:10:25 GMT", | |
| "Access-Control-Allow-Headers": "Authorization,Content-Type,Accept,Origin,User-Agent,Cache-Control,Keep-Alive,X-Requested-With,If-Modified-Since,X-Auth-Token,X-Reverb-App,X-Reverb-Embed-Location,X-Display-Currency,X-Shipping-Region,X-CSRF-Token,Accept-Version,X-Context-Id,X-Session-Id,X-Postal-Code", | |
| "Via": "1.1 varnish", | |
| "Accept-Ranges": "bytes", | |
| "Cache-Control": "private, no-store", | |
| "Vary": "Accept-Encoding", | |
| "Expires": "Fri, 01 Jan 1990 00:00:00 GMT", | |
| "Ok": "true", | |
| "X-Cache-Hits": "0", | |
| "Content-Security-Policy-Report-Only": "default-src 'self'; child-src https://preprod.event-api.reverb.com https://*.facebook.com https://*.facebook.net https://api.reverb.com; connect-src 'self' https://static-sandbox.reverb-assets.com https://preprod.event-api.reverb.com https://sandbox.rql.reverb.com https://api.reverb.com; font-src 'self' https://static-sandbox.reverb-assets.com https://fonts.gstatic.com data:; img-src https: data: 'self'; object-src 'none'; script-src 'self' 'unsafe-inline' 'unsafe-eval' https:; style-src https://static-sandbox.reverb-assets.com https://fonts.googleapis.com 'unsafe-inline'" | |
| }, | |
| "transmission_id": "c4df9a60-7c36-11ed-b1c8-db9b9b825216", | |
| "status": "SUCCESS", | |
| "timestamp": "2022-12-15T05:10:19Z" | |
| } | |
| ], | |
| "links": [ | |
| { | |
| "href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-290666983S543943B-5WC710453C4596920", | |
| "rel": "self", | |
| "method": "GET", | |
| "encType": "application/json" | |
| }, | |
| { | |
| "href": "https://api.sandbox.paypal.com/v1/notifications/webhooks-events/WH-290666983S543943B-5WC710453C4596920/resend", | |
| "rel": "resend", | |
| "method": "POST", | |
| "encType": "application/json" | |
| } | |
| ], | |
| "event_version": "1.0", | |
| "resource_version": "2.0" | |
| } | |
| CAPTURE API RESPONSE | |
| { | |
| "id": "24F22464WC842504J", | |
| "status": "COMPLETED", | |
| "purchase_units": [ | |
| { | |
| "reference_id": "default", | |
| "shipping": { | |
| "name": { | |
| "full_name": "FooBuyer Jones" | |
| }, | |
| "address": { | |
| "address_line_1": "1 Main St", | |
| "admin_area_2": "San Jose", | |
| "admin_area_1": "CA", | |
| "postal_code": "95131", | |
| "country_code": "US" | |
| } | |
| }, | |
| "payments": { | |
| "captures": [ | |
| { | |
| "id": "7KY78659SG487110K", | |
| "status": "COMPLETED", | |
| "amount": { | |
| "currency_code": "USD", | |
| "value": "100.00" | |
| }, | |
| "final_capture": true, | |
| "seller_protection": { | |
| "status": "ELIGIBLE", | |
| "dispute_categories": [ | |
| "ITEM_NOT_RECEIVED", | |
| "UNAUTHORIZED_TRANSACTION" | |
| ] | |
| }, | |
| "seller_receivable_breakdown": { | |
| "gross_amount": { | |
| "currency_code": "USD", | |
| "value": "100.00" | |
| }, | |
| "paypal_fee": { | |
| "currency_code": "USD", | |
| "value": "3.98" | |
| }, | |
| "net_amount": { | |
| "currency_code": "USD", | |
| "value": "96.02" | |
| } | |
| }, | |
| "links": [ | |
| { | |
| "href": "https://api.sandbox.paypal.com/v2/payments/captures/7KY78659SG487110K", | |
| "rel": "self", | |
| "method": "GET" | |
| }, | |
| { | |
| "href": "https://api.sandbox.paypal.com/v2/payments/captures/7KY78659SG487110K/refund", | |
| "rel": "refund", | |
| "method": "POST" | |
| }, | |
| { | |
| "href": "https://api.sandbox.paypal.com/v2/checkout/orders/24F22464WC842504J", | |
| "rel": "up", | |
| "method": "GET" | |
| } | |
| ], | |
| "create_time": "2021-11-14T23:38:52Z", | |
| "update_time": "2021-11-14T23:38:52Z" | |
| } | |
| ] | |
| } | |
| } | |
| ], | |
| "payer": { | |
| "name": { | |
| "given_name": "FooBuyer", | |
| "surname": "Jones" | |
| }, | |
| "email_address": "[email protected]", | |
| "payer_id": "QYR5Z8XDVJNXQ", | |
| "address": { | |
| "country_code": "US" | |
| } | |
| }, | |
| "links": [ | |
| { | |
| "href": "https://api.sandbox.paypal.com/v2/checkout/orders/24F22464WC842504J", | |
| "rel": "self", | |
| "method": "GET" | |
| } | |
| ] | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment