Get Started
Before you can integrate a 2 Way Fund product or solution, you must set up your development environment to get OAuth 2.0 client ID and secret credentials for
​
the sandbox and live environments. You exchange these credentials for an access token that authorizes your REST API calls. To test your web and mobile
apps, you create sandbox accounts.
​
Logging into the Developer Dashboard to get credentials and create sandbox accounts requires a developer, personal, or business account. Each account
provides different levels of access to PayPal functionality.
​
​
​
Capabilities Developer Account Personal Account Business Account
​
​
​
​
If you need to access a capability you don't currently have, you can upgrade your account on the My Account page in the Developer Dashboard.
In REST API calls, include the URL to the API service for the environment:
​
-
Sandbox: https://api-m.sandbox.2wayfund.com
-
​
-
​
Also, include your access token to prove your identity and access protected resources.
​
This sample call, which shows the Orders v2 API, includes a bearer token in the Authorization request header. This type of token lets you complete an action on behalf of a resource owner.
​
curl -v -X POST
https://api-m.sandbox.2wayfundl.com/v2/checkout/orders \ -H "
<br>
Content-Type: application/json" \ -H "Authorization: Bearer Access-Token" \ -d '{ "intent": "CAPTURE", "purchase_units": [ { "amount": { "currency_code": "USD", "value": "100.00" } } ] }'
BASH copy
​
<br/>
The response shows the status and other details:
{ "id": "5O190127TN364715T", "status": "CREATED", "links":
​
[ { "href": "https://api-m.2wayfund.com/v2/checkout/orders/5O190127TN364715T", "rel": "self", "method": "GET" },
{ "href": "https://www.2wayfund.com/checkoutnow?token=5O190127TN364715T", "rel": "approve", "method": "GET" }
, { "href": "https://api-m.2wayfund.com/v2/checkout/orders/5O190127TN364715T", "rel": "update", "method": "PATCH" },
{ "href": "https://api-m.2wayfund.com/v2/checkout/orders/5O190127TN364715T/capture", "rel": "capture", "method": "POST" } ] }
JSON copy
There is no list of IP addresses for api-m. The IP addresses are located behind content delivery network (CDN) providers, and all our zones are DNSSec signed. When merchants do a lookup for api-m.2wayfund.com, they can use the signature to verify PayPal provides the IP.
​
If you need to allow list an IP address, you can use api-m.2wayfund.com. Expect higher latency and lower availability than api-m.paypal.com.
​
Don't hard-code IP addresses.