For developers seeking to integrate seamless payment solutions, the Payoneer API provides a robust pathway. This article delves into what Payoneer is, what developers look for in the Payoneer API, how to obtain API keys, and a step-by-step guide to making API requests using EchoAPI, including importing cURL code onto EchoAPI.
What is Payoneer?
Payoneer is a leading global payment platform that provides businesses and professionals with solutions to send and receive cross-border payments. Founded in 2005, Payoneer supports millions of users worldwide and partners with major companies such as Amazon, Upwork, Airbnb, and more. With Payoneer, users can hold funds in multiple currencies, transfer money to local bank accounts, and manage their financial transactions more efficiently.
is a great platform for testing and making API requests. Here’s a step-by-step guide to using EchoAPI to make your first Payoneer API request:
1.Sign Up or Log In: Register for an EchoAPI account on the EchoAPI website or log in if you already have an account.
2.Create a New Project: Within your dashboard, create a new project to organize your API requests.
3.Set Up Environment Variables: Add your Payoneer API keys (Client ID and Client Secret) as environment variables in EchoAPI to manage them securely.
4.Draft Your Request: Use the request builder in EchoAPI to draft your API call. Select the appropriate method (GET, POST, etc.), and input the endpoint URL and necessary headers (including your authentication headers).
5.Send Request: Click ‘Send’ to execute the API request. EchoAPI will display the response for you to verify if the request was successful.
Importing cURL Code Into EchoAPI
If you have hand-coded your API requests using cURL, you can import this code into EchoAPI easily for testing and further modifications. Here’s how:
1.Get Your cURL Command: Write your cURL command or acquire it from your existing codebase.
curl -v -X POST "https://api.sandbox.payoneer.com/v1/payments/payment" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
-d '{
"intent": "sale",
"payer": {
"payment_method": "payoneer"
},
"transactions": [{
"amount": {
"total": "10.00",
"currency": "USD"
},
"description": "Payment for order."
}],
"redirect_urls": {
"return": "http://example.com/your_redirect_url",
"cancel": "http://example.com/your_cancel_url"
}
}'
2.Open EchoAPI: Log in and navigate to the project where you want to import the cURL command.
4.Convert and Save: EchoAPI will convert your cURL command into a structured request. Save this request in your project for future use or modification.
SOCIAL SHARE CARD GENERATOR