The API domain should be api-m.(sandbox.)paypal.com instead of api.(sandbox.)paypal.com
Open
Beginner friendly
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 194
- Forks
- 114
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 1
Description
As of I know, PayPal recommend to use api-m.(sandbox.)paypal.com instead of api.(sandbox.)paypal.com.
It is because api-m. is CDN managed.
Related code:
https://github.com/paypal/agent-toolkit/blob/main/typescript/src/shared/client.ts#L50-L51
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by inspecting typescript/src/shared/client.ts at lines 50-51, where the API domain is defined. Check how both production and sandbox endpoints are formed, then confirm the resulting domains use the recommended api-m hostnames in both cases.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- api
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 62/100