mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 10:55:00 +08:00
get correct custom id for order detection in refund handler
This commit is contained in:
parent
1db589644a
commit
d31f9bf2f9
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class PaymentCaptureRefunded implements RequestHandler
|
|||
public function handleRequest(\WP_REST_Request $request): \WP_REST_Response
|
||||
{
|
||||
$response = ['success' => false];
|
||||
$orderId = isset($request['custom_id']) ? (int) $request['custom_id'] : 0;
|
||||
$orderId = isset($request['resource']['custom_id']) ? (int) $request['resource']['custom_id'] : 0;
|
||||
if (! $orderId) {
|
||||
$message = sprintf(
|
||||
// translators: %s is the PayPal webhook Id.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue