mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
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:
committed by
GitHub
parent
9ef339e525
commit
c7a037e9fe
@@ -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];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user