Mangopay Connector
Prerequisites
Before you begin, you need to have a Mangopay account. If you don't have one, you can sign up for a Mangopay account here. Make sure you have a Mangopay clientID and API key, with the least amount of permissions required to access the functionality of the Mangopay Connector you plan to use.
info
Make sure to create an API key dedicated to Formance. Doing so will improve your auditability and security and will allow you to revoke access to Formance at any time if needed.
Setup
First, you need to create a config file for the MangoPay connector:
{
"name": "mangopay",
"clientID": "your_client_id",
"apiKey": "your_api_key",
"endpoint": "https://api.sandbox.mangopay.com/",
"pollingPeriod": "2m"
}
- fctl
- curl
fctl payments connectors install mangopay mangopay.json
STACK="stack_123" \
echo -X POST "https://$STACK.formance.cloud/api/payments/connectors/mangopay" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $TOKEN" \
-d @mangopay.json