mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-07 19:54:15 +08:00
rename WcGateway to PayPalGateway
This commit is contained in:
parent
781760a82c
commit
03d2ed9897
14 changed files with 52 additions and 52 deletions
|
@ -6,7 +6,7 @@ namespace Inpsyde\PayPalCommerce\Subscription;
|
|||
|
||||
use Dhii\Container\ServiceProvider;
|
||||
use Dhii\Modular\Module\ModuleInterface;
|
||||
use Inpsyde\PayPalCommerce\WcGateway\Gateway\WcGateway;
|
||||
use Inpsyde\PayPalCommerce\WcGateway\Gateway\PayPalGateway;
|
||||
use Interop\Container\ServiceProviderInterface;
|
||||
use Psr\Container\ContainerInterface;
|
||||
|
||||
|
@ -27,7 +27,7 @@ class SubscriptionModule implements ModuleInterface
|
|||
public function run(ContainerInterface $container)
|
||||
{
|
||||
add_action(
|
||||
'woocommerce_scheduled_subscription_payment_' . WcGateway::ID,
|
||||
'woocommerce_scheduled_subscription_payment_' . PayPalGateway::ID,
|
||||
static function ($amount, $order) use ($container) {
|
||||
if (! is_a($order, \WC_Order::class)) {
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue