Li

Delete

Are you sure you want to delete this?

PaypalModel


Date
20211030
Target
C_016
Title
After you configure a listener.. WHAT MEANS? [HOw to use the webhooks simulator] [The PayPal REST APIs can use webhooks for event notification.]
Contents
SAMPLE curl -v -X POST https://api-m.sandbox.paypal.com/v1/notifications/webhooks \ -H "Content-Type: application/json" \ -H "Authorization: Bearer A21AAKzA17dknWxrzAG4LLXB7LdURQx2LiYXeBOlvd1bXViyaESQmYRmmm_jjv9C7zRQmBTRFHFsGF87Vhq9MGRr9YPf9OqGA" \ -d '{ "url": "https://www.tanz.co.kr/PaymentMethod/paypal", "event_types": [ { "name": "PAYMENT.AUTHORIZATION.CREATED" }, { "name": "PAYMENT.AUTHORIZATION.VOIDED" } ] }' 00 903 100 705 100 198 896 251 --:--:-- --:--:-- --:--:-- 1147{"id":"3XJ1309575982815H","url":"https://www.tanz.co.kr/PaymentMethod/paypal","event_types":[{"name":"PAYMENT.AUTHORIZATION.CREATED","description":"A payment authorization is created, approved, executed, or a future payment authorization is created."},{"name":"PAYMENT.AUTHORIZATION.VOIDED","description":"A payment authorization is voided."}],"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/3XJ1309575982815H","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/3XJ1309575982815H","rel":"update","method":"PATCH"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/3XJ1309575982815H","rel":"delete","method":"DELETE"}]} * Connection #0 to host api-m.sandbox.paypal.com left intact curl -v -X GET https://api-m.sandbox.paypal.com/v1/notifications/webhooks \ -H "Content-Type: application/json" \ -H "Authorization: Bearer A21AAKzA17dknWxrzAG4LLXB7LdURQx2LiYXeBOlvd1bXViyaESQmYRmmm_jjv9C7zRQmBTRFHFsGF87Vhq9MGRr9YPf9OqGA" 100 1336 100 1336 0 0 2424 0 --:--:-- --:--:-- --:--:-- 2424{"webhooks":[{"id":"3XJ1309575982815H","url":"https://www.tanz.co.kr/PaymentMethod/paypal","event_types":[{"name":"PAYMENT.AUTHORIZATION.CREATED","description":"A payment authorization is created, approved, executed, or a future payment authorization is created.","status":"ENABLED"},{"name":"PAYMENT.AUTHORIZATION.VOIDED","description":"A payment authorization is voided.","status":"ENABLED"}],"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/3XJ1309575982815H","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/3XJ1309575982815H","rel":"update","method":"PATCH"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/3XJ1309575982815H","rel":"delete","method":"DELETE"}]},{"id":"06886315AP805045Y","url":"https://www.tanz.co.kr/PaymentMethod/paypal/paypalPay.aspx","event_types":[{"name":"CHECKOUT.ORDER.APPROVED","description":"An order has been approved by buyer.","status":"ENABLED"}],"links":[{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/06886315AP805045Y","rel":"self","method":"GET"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/06886315AP805045Y","rel":"update","method":"PATCH"},{"href":"https://api.sandbox.paypal.com/v1/notifications/webhooks/06886315AP805045Y","rel":"delete","method":"DELETE"}]}]} * Connection #0 to host api-m.sandbox.paypal.com left intact