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.3.tar.gz (8.9 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.3-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: revolut-merchant-python-0.0.3.tar.gz
  • Upload date:
  • Size: 8.9 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.3.tar.gz
Algorithm Hash digest
SHA256 5e3992cc7ca7e7b3a4efa9d7a75fd451d3513a889fc7a80d3c53170f2b3f489d
MD5 bf2a6b021b593b5ec94bc926f3155996
BLAKE2b-256 94171751b53b1103a6ee0f7cd0350558b6506c2542c99a859928f9c322220ddf

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for revolut_merchant_python-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 df9fc7aec7ae4dec13c4f6bf8e1f3b60e90e40f1192f5805b6caaaf6dea41b6e
MD5 f06c67c53693fe2878b0ae512ed4d547
BLAKE2b-256 d38c95ead590ab4d9705269ebd7e5b50c4447c95161400c57262639e7975ab16

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