mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +08:00
remove debug code
This commit is contained in:
parent
8f39b71e7f
commit
e5494bfc8b
1 changed files with 1 additions and 15 deletions
|
@ -28,7 +28,7 @@ class SubscriptionModule implements ModuleInterface
|
|||
{
|
||||
add_action(
|
||||
'woocommerce_scheduled_subscription_payment_' . WcGateway::ID,
|
||||
function($amount, $order) use ($container) {
|
||||
static function ($amount, $order) use ($container) {
|
||||
if (! is_a($order, \WC_Order::class)) {
|
||||
return;
|
||||
}
|
||||
|
@ -39,19 +39,5 @@ class SubscriptionModule implements ModuleInterface
|
|||
2
|
||||
);
|
||||
|
||||
add_action(
|
||||
'init',
|
||||
function () {
|
||||
if (! isset($_GET['doit'])) {
|
||||
return;
|
||||
}
|
||||
$order = wc_get_order(202);
|
||||
do_action(
|
||||
'woocommerce_scheduled_subscription_payment_' . WcGateway::ID,
|
||||
0,
|
||||
$order
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue