Skip to main content

Revolut Merchant API client for Python

Project description

Python Revolut Merchant API Client

DISCLAIMER: This client is a WIP and still in a very beta stage. Please use at your own risk!

Installation

pip install revolut-merchant-python

Initialize the Client

To initialize the client install and import the library.

import revolut_merchant

client = revolut_merchant.Client(access_token="<YOUR_TOKEN>", environment="<production/sandbox>")

Fetch Order by ID

order_id = "e5aa96ca-7ba1-4b5a-gj5a-03273877f3dc"
client.get_order(order_id) # This will return an Order object

Create an order

order = revolut_merchant.Order(client=client, amount=1, currency="EUR", email="email@domain.com").save()
print(order.public_id) # prints the public order id

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

revolut-merchant-python-0.0.4.tar.gz (9.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

revolut_merchant_python-0.0.4-py3-none-any.whl (9.5 kB view details)

Uploaded Python 3

File details

Details for the file revolut-merchant-python-0.0.4.tar.gz.

File metadata

  • Download URL: revolut-merchant-python-0.0.4.tar.gz
  • Upload date:
  • Size: 9.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for revolut-merchant-python-0.0.4.tar.gz
Algorithm Hash digest
SHA256 655ade27ac916f1266b0f1ef05ee21931c7bfc99122f7597e7c60b95307dd607
MD5 761ca3c3bf4e7c599261669fffcc0673
BLAKE2b-256 cf6c1ef4f56aefc6af7ce7b2529ee529cbbf35088f417e1b800c327bbb5b3521

See more details on using hashes here.

File details

Details for the file revolut_merchant_python-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for revolut_merchant_python-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 897301d60f3a6be93d19d38173161b3a75a680d219f905e455d200ae5d074720
MD5 9754ee4e90a26ff9b3b425668b4f0df7
BLAKE2b-256 aa9ce07bd3aa23f9e783a8e32bbeab2b8241178883c2814ad33446d8592b2d0f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page