Is there a webhook that triggers when fund is released?

Cindy3Smith3
Contributor
Contributor

I'm trying the Payment Review on the Sandbox environment. I notice that the fund is put on hold if Payment Review is turned on.

I tried the order capture and got the capture response status "COMPLETED" and the "PAYMENT" status is "PENDING".  I received the "CHECKOUT.ORDER.APPROVED" but not "PAYMENT.CAPTURE.COMPLETED" even the fund is released.

 

My questions are:

1. any webhook events will be sent out if the fund got released?  Any sample for reference?

2. According to the document, one of the possible values of order status is "PAYER_ACTION_REQUIRED". If I use Smart button and the intent is=capture, will I get this status back? If yes, how I can trigger this scenario for testing?

 

It is very crucial to our rollout. Can somebody help?

 

 

{
"id":"0US42723YL431363G",
"status":"COMPLETED",
"purchase_units":[
{
"reference_id":"1759",
"payments":{
"captures":[
{
"id":"4ET09041KN433813P",
"status":"PENDING",
"status_details":{
"reason":"PENDING_REVIEW"
},
"amount":{
"currency_code":"USD",
"value":"5.00"
},
"final_capture":true,
"seller_protection":{
"status":"NOT_ELIGIBLE"
},
"invoice_id":"1759",
"custom_id":"218",
"links":[
{
"href":"https://api.sandbox.paypal.com/v2/payments/captures/4ET09041KN43",
"rel":"self",
"method":"GET"
},
{
"href":"https://api.sandbox.paypal.com/v2/payments/captures/4ET09041KN4/refund",
"rel":"refund",
"method":"POST"
},
{
"href":"https://api.sandbox.paypal.com/v2/checkout/orders/0US42723",
"rel":"up",
"method":"GET"
}
],
"create_time":"2021-12-22T19:38:21Z",
"update_time":"2021-12-22T19:38:21Z"
}
]
}
}
],
"payer":{
"name":{
"given_name":"John",
"surname":"Doe"
},
"email_address":"abc",
"payer_id":"ABC",
"address":{
"country_code":"US"
}
},
"links":[
{
"href":"https://api.sandbox.paypal.com/v2/checkout/orders/0US42723YL43",
"rel":"self",
"method":"GET"
}
]
}

Login to Me Too
0 REPLIES 0

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.