Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update URL for gateway #144

Open
citcon-hao opened this issue Jun 27, 2024 · 1 comment
Open

update URL for gateway #144

citcon-hao opened this issue Jun 27, 2024 · 1 comment
Labels
question Further information is requested

Comments

@citcon-hao
Copy link

According to this document: https://global.alipay.com/docs/switch_domain_name

Screen Shot 2024-06-27 at 12 39 15

May I ask if the gateway: 'https://openapi.alipay.com/gateway.do' on line 210 in file: 'src/alipay.ts' needs to update to a new URL, or is this URL still valid for Alipay API?"

@fengmk2
Copy link
Member

fengmk2 commented Jun 27, 2024

you can change the gateway and endpoint to the global domain, e.g.:

const alipaySdk = new AlipaySdk({
  gateway: 'https://openapi-eu-global.alipayplus.com/gateway.do',
  endpoint: 'https://openapi-eu-global.alipayplus.com',
});

@fengmk2 fengmk2 added the question Further information is requested label Jun 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants