mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-06 09:08:09 +08:00
Fix changed environment container
This commit is contained in:
parent
35d6c7e913
commit
8e088dc022
1 changed files with 2 additions and 2 deletions
|
@ -171,9 +171,9 @@ class PayPalSubscriptionsModule implements ServiceModule, ExtendingModule, Execu
|
|||
}
|
||||
|
||||
$order = $c->get( 'session.handler' )->order();
|
||||
$gateway->add_paypal_meta( $wc_order, $order, $c->get( 'onboarding.environment' ) );
|
||||
$gateway->add_paypal_meta( $wc_order, $order, $c->get( 'settings.environment' ) );
|
||||
|
||||
$subscriptions = wcs_get_subscriptions_for_order( $wc_order );
|
||||
$subscriptions = function_exists( 'wcs_get_subscriptions_for_order' ) ? wcs_get_subscriptions_for_order( $wc_order ): array();
|
||||
foreach ( $subscriptions as $subscription ) {
|
||||
$subscription->update_meta_data( 'ppcp_subscription', $paypal_subscription_id );
|
||||
$subscription->save();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue