mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 13:44:42 +08:00
Handle get order exception
This commit is contained in:
parent
6ebe8d3171
commit
634ac41139
1 changed files with 1 additions and 2 deletions
|
@ -121,9 +121,8 @@ class PaymentTokenChecker {
|
||||||
|
|
||||||
$this->logger->error( "Payment for subscription parent order #{$order_id} was not saved on PayPal." );
|
$this->logger->error( "Payment for subscription parent order #{$order_id} was not saved on PayPal." );
|
||||||
|
|
||||||
$order = $this->get_order( $wc_order );
|
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
$order = $this->get_order( $wc_order );
|
||||||
$this->void_authorizations( $order );
|
$this->void_authorizations( $order );
|
||||||
} catch ( RuntimeException $exception ) {
|
} catch ( RuntimeException $exception ) {
|
||||||
$this->logger->warning( $exception->getMessage() );
|
$this->logger->warning( $exception->getMessage() );
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue