mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-08-31 06:52:50 +08:00
connect the referral endpoints always to the connect.woocommerce instance
This commit is contained in:
parent
28863a2b4e
commit
d7cd055a28
1 changed files with 9 additions and 4 deletions
|
@ -178,17 +178,22 @@ return array(
|
|||
);
|
||||
},
|
||||
'api.endpoint.partner-referrals-sandbox' => static function ( $container ) : PartnerReferrals {
|
||||
|
||||
// ToDo: Real connect sandbox URL.
|
||||
$host_url = 'http://connect-woo.wpcust.com';
|
||||
return new PartnerReferrals(
|
||||
$container->get( 'api.sandbox-host' ),
|
||||
$container->get( 'api.bearer' ),
|
||||
$host_url,
|
||||
new ConnectBearer(),
|
||||
$container->get( 'api.repository.partner-referrals-data' ),
|
||||
$container->get( 'woocommerce.logger.woocommerce' )
|
||||
);
|
||||
},
|
||||
'api.endpoint.partner-referrals-production' => static function ( $container ) : PartnerReferrals {
|
||||
// ToDo: Real connect production URL.
|
||||
$host_url = 'http://connect-woo.wpcust.com';
|
||||
return new PartnerReferrals(
|
||||
$container->get( 'api.production-host' ),
|
||||
$container->get( 'api.bearer' ),
|
||||
$host_url,
|
||||
new ConnectBearer(),
|
||||
$container->get( 'api.repository.partner-referrals-data' ),
|
||||
$container->get( 'woocommerce.logger.woocommerce' )
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue