Implement AXO order processing

Implement AXO settings
This commit is contained in:
Pedro Silva 2024-04-10 15:51:19 +01:00
parent fe03215799
commit c71c56973a
No known key found for this signature in database
GPG key ID: E2EE20C0669D24B3
20 changed files with 546 additions and 136 deletions

View file

@ -34,15 +34,6 @@ return array(
// If AXO is configured and onboarded.
'axo.available' => static function ( ContainerInterface $container ): bool {
// TODO
// if ( apply_filters( 'woocommerce_paypal_payments_googlepay_validate_product_status', true ) ) {
// $status = $container->get( 'googlepay.helpers.apm-product-status' );
// assert( $status instanceof ApmProductStatus );
// /**
// * If merchant isn't onboarded via /v1/customer/partner-referrals this returns false as the API call fails.
// */
// return apply_filters( 'woocommerce_paypal_payments_googlepay_product_status', $status->is_active() );
// }
return true;
},
@ -74,6 +65,7 @@ return array(
return new AxoGateway(
$container->get( 'wcgateway.settings' ),
$container->get( 'wcgateway.url' ),
$container->get( 'wcgateway.order-processor' ),
$container->get( 'axo.card_icons' ),
$container->get( 'api.endpoint.order' ),
$container->get( 'api.factory.purchase-unit' ),