Simple Revolut Merchant API Wrapper written in Python 3. This API Wrapper will make it easier to interact with the Merchant API, provided by Revolut. It's highly recommended to read through Revoluts Merchant API docs, as this API wrapper uses the same names for almost everything.
python -m pip install revolut.py
This installation may or may not work all the time. If it doesn't, use the pip installation as a fallback.
python -m pip install git+https://github.com/j4asper/revolut.py
To use the Revolut Merchant API, you will need a Revolut Merchant account, to do thi,s you can follow Revoluts own guide here.
When you have got the Merchant Account, you can now see the API keys needed to interact with the API. Follow this guide to locate them.
It's highly recommended to use Revoluts Sandbox environment when testing your implementation of the API. To use the sandbox environment, you need to make a new account on the sandbox version of the revolut site, which can be found here. When you have done that, get your API keys, and then you should be good to go.
The testing cards can be found here, they will come in handy when testing different payment outcomes.
The goal of this API wrapper is to cover Revoluts Merchant API Implementation Checklist.
Customer management:
Order management:
- Create and pay for order
- Capture order later
- Cancel order (without capture later)
- Cancel uncaptured order
- Manage billing and delivery information
Refunds:
- Refund order
- Manage partial refund
- Manage multiple partial refunds
- Refund order fully by partial refunds
Webhooks: