feat(PayPal Node): Add auth test, fix typo and update API URL (#3084)

* Implements PayPal Auth API Test

* Deletes unit tests

* 🚨 Fixed lint issues

* Added changes from PR#2568

* Moved methods to above execute

Co-authored-by: paolo-rechia <paolo@e-bot7.com>
This commit is contained in:
Jonathan Bennetts
2022-04-08 10:49:07 +01:00
committed by GitHub
parent 9ef339e525
commit c7a037e9fe
3 changed files with 63 additions and 3 deletions

View File

@@ -38,8 +38,8 @@ export async function payPalApiRequest(this: IHookFunctions | IExecuteFunctions
function getEnvironment(env: string): string {
// @ts-ignore
return {
'sanbox': 'https://api.sandbox.paypal.com',
'live': 'https://api.paypal.com',
'sanbox': 'https://api-m.sandbox.paypal.com',
'live': 'https://api-m.paypal.com',
}[env];
}