mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-01 07:02:48 +08:00
Merge branch 'trunk' into PCP-1968-subscriptions-api-renewals
This commit is contained in:
commit
70dc55dcc1
35 changed files with 3369 additions and 1230 deletions
|
@ -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(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue