move api urls to constants

This commit is contained in:
David Remer 2020-10-01 08:53:44 +03:00
parent 2f474cc8ae
commit 81bedf3a80
3 changed files with 19 additions and 19 deletions

View file

@ -47,10 +47,10 @@ use WpOop\TransientCache\CachePoolFactory;
return array(
'api.host' => function( $container ) : string {
return 'https://api.paypal.com';
return PAYPAL_API_URL;
},
'api.paypal-host' => function( $container ) : string {
return 'https://api.paypal.com';
return PAYPAL_API_URL;
},
'api.partner_merchant_id' => static function () : string {
return '';