forked from LiveCarta/PayPal-PHP-SDK
More Webhook API Changes
- Updated API Models with Fixes - Updated Samples - Additional Functional Tests
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
{
|
||||
"description":"Resend a webhook event",
|
||||
"title":"Resend a webhook event",
|
||||
"runnable":true,
|
||||
"operationId":"event.resend",
|
||||
"user":{
|
||||
"scopes":[
|
||||
"https://uri.paypal.com/services/applications/webhooks"
|
||||
]
|
||||
},
|
||||
"credentials":{
|
||||
"oauth":{
|
||||
"path":"/v1/oauth/token",
|
||||
"clientId":"",
|
||||
"clientSecret":""
|
||||
}
|
||||
},
|
||||
"request":{
|
||||
"path":"v1/notifications/webhooks-events/8PT597110X687430LKGECATA/resend",
|
||||
"method":"GET",
|
||||
"headers":{
|
||||
"Content-Type":"application/json",
|
||||
"Authorization":"Bearer ECvJ_yBNz_UfMmCvWEbT_2ZWXdzbFFQZ-1Y5K2NGgeHn"
|
||||
}
|
||||
},
|
||||
"response":{
|
||||
"status":"202",
|
||||
"headers":{
|
||||
"Content-Type":"application/json",
|
||||
"Paypal-Debug-id":"0c444abc1d12d"
|
||||
},
|
||||
"body":{
|
||||
"id":"8PT597110X687430LKGECATA",
|
||||
"create_time":"2013-06-25T21:41:28Z",
|
||||
"resource_type":"authorization",
|
||||
"trigger_event":"PAYMENT.AUTHORIZATION.CREATED",
|
||||
"summary":"A payment authorization was created",
|
||||
"resource":{
|
||||
"id":"2DC87612EK520411B",
|
||||
"create_time":"2013-06-25T21:39:15Z",
|
||||
"update_time":"2013-06-25T21:39:17Z",
|
||||
"state":"authorized",
|
||||
"amount":{
|
||||
"total":"7.47",
|
||||
"currency":"USD",
|
||||
"details":{
|
||||
"subtotal":"7.47"
|
||||
}
|
||||
},
|
||||
"parent_payment":"PAY-36246664YD343335CKHFA4AY",
|
||||
"valid_until":"2013-07-24T21:39:15Z",
|
||||
"links":[
|
||||
{
|
||||
"href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B",
|
||||
"rel":"self",
|
||||
"method":"GET"
|
||||
},
|
||||
{
|
||||
"href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/capture",
|
||||
"rel":"capture",
|
||||
"method":"POST"
|
||||
},
|
||||
{
|
||||
"href":"https://api.paypal.com/v1/payments/authorization/2DC87612EK520411B/void",
|
||||
"rel":"void",
|
||||
"method":"POST"
|
||||
},
|
||||
{
|
||||
"href":"https://api.paypal.com/v1/payments/payment/PAY-36246664YD343335CKHFA4AY",
|
||||
"rel":"parent_payment",
|
||||
"method":"GET"
|
||||
}
|
||||
]
|
||||
},
|
||||
"links":[
|
||||
{
|
||||
"href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA",
|
||||
"rel":"self",
|
||||
"method":"GET"
|
||||
},
|
||||
{
|
||||
"href":"https://api.paypal.com/v1/notfications/webhooks-events/8PT597110X687430LKGECATA/resend",
|
||||
"rel":"resend",
|
||||
"method":"POST"
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user