Merge branch 'master' of github.com:inpsyde/woocommerce-paypal-commerce-gateway into PCP-32-layout-options-per-context

This commit is contained in:
David Remer 2020-08-17 11:29:44 +03:00
commit 9cc5215d95
3 changed files with 141 additions and 1 deletions

View file

@ -9,6 +9,7 @@ use Inpsyde\PayPalCommerce\ApiClient\Entity\ApplicationContext;
use Inpsyde\PayPalCommerce\Onboarding\State;
use Inpsyde\PayPalCommerce\WcGateway\Admin\OrderTablePaymentStatusColumn;
use Inpsyde\PayPalCommerce\WcGateway\Admin\PaymentStatusOrderDetail;
use Inpsyde\PayPalCommerce\WcGateway\Checkout\CheckoutPayPalAddressPreset;
use Inpsyde\PayPalCommerce\WcGateway\Checkout\DisableGateways;
use Inpsyde\PayPalCommerce\WcGateway\Gateway\WcGateway;
use Inpsyde\PayPalCommerce\WcGateway\Notice\AuthorizeOrderActionNotice;
@ -949,4 +950,11 @@ return [
],
];
},
'wcgateway.checkout.address-preset' => static function(ContainerInterface $container): CheckoutPayPalAddressPreset {
return new CheckoutPayPalAddressPreset(
$container->get('session.handler')
);
},
];