Merge branch 'trunk' into PCP-1968-subscriptions-api-renewals

This commit is contained in:
Emili Castells Guasch 2023-09-07 12:06:27 +02:00
commit 70dc55dcc1
35 changed files with 3369 additions and 1230 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(),