Merge branch 'trunk' into PCP-1973-wc-payment-token-created-multiple-times-when-webhook-vault-payment-token-created-is-received

This commit is contained in:
Emili Castells Guasch 2023-09-07 09:56:29 +02:00
commit 090287f0f0
45 changed files with 3510 additions and 1257 deletions

View file

@ -112,8 +112,7 @@ class PaymentCaptureRefunded implements RequestHandler {
'amount' => $request['resource']['amount']['value'],
)
);
if ( is_wp_error( $refund ) ) {
assert( $refund instanceof WP_Error );
if ( $refund instanceof WP_Error ) {
$message = sprintf(
'Order %1$s could not be refunded. %2$s',
(string) $wc_order->get_id(),