mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
Refactor payment token checker
This commit is contained in:
parent
b5f74f1207
commit
e9ddd3d788
4 changed files with 84 additions and 44 deletions
|
@ -175,12 +175,12 @@ trait ProcessPaymentTrait {
|
|||
if ( $this->order_processor->process( $wc_order ) ) {
|
||||
if ( $this->subscription_helper->has_subscription( $order_id ) ) {
|
||||
as_schedule_single_action(
|
||||
time() + (1 * MINUTE_IN_SECONDS),
|
||||
time() + ( 1 * MINUTE_IN_SECONDS ),
|
||||
'woocommerce_paypal_payments_check_saved_payment',
|
||||
array(
|
||||
'order_id' => $order_id,
|
||||
'order_id' => $order_id,
|
||||
'customer_id' => $wc_order->get_customer_id(),
|
||||
)
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue