paypal / paypal/agent-toolkit

The API domain should be api-m.(sandbox.)paypal.com instead of api.(sandbox.)paypal.com

Open Beginner friendly
#43 0 comments 0 reactions 0 assignees View on GitHub

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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.