Skip to main content

Tripay Python SDK (UnOfficial)

Docs

Enum Mode

class ModeEnum(str, Enum):  
    sandbox = "https://tripay.co.id/api-sandbox/"  
	  prod = "https://tripay.co.id/api/"

Authentication

async def payment():
    t = Tripay(api_key, private_key, mode)

Closed Transaction

Create Transaction

async def payment():
	    t = Tripay(api_key, private_key, mode)		
		return await t.ClosedTransaction.create(merchant_code, payload, order_items)

Detail Transaction

    async def payment():
	    t = Tripay(api_key, private_key, mode)		
			
			return await t.ClosedTransaction.detail(payload)

example payload:

{ "reference": "T0001000000000000006" }

Open Transaction

Open Transaction isn't support Sanbox Mode

Create Transaction

async def payment():
	    t = Tripay(api_key, private_key, mode)	
			return await t.OpenTransaction.create(payload, order_items)

Example order items:

[  { 'sku': 'PRODUK1', 'name': 'Nama Produk 1', 'price': 500000, 'quantity': 1, 'product_url': 'https://tokokamu.com/product/nama-produk-1', 'image_url': 'https://tokokamu.com/product/nama-produk-1.jpg' }, { 'sku': 'PRODUK2', 'name': 'Nama Produk 2', 'price': 500000, 'quantity': 1, 'product_url': 'https://tokokamu.com/product/nama-produk-2', 'image_url': 'https://tokokamu.com/product/nama-produk-2.jpg' } ]

Detail

async def payment():
	    t = Tripay(api_key, private_key, mode)	
			return await t.OpenTransaction.detail(uuid)

Listing Payment

async def payment():
	    t = Tripay(api_key, private_key, mode)
	    return await t.OpenTransaction.listing_payment(uuid)

Release files for tripay-sdk 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for tripay-sdk 0.1.0
File Size Uploaded
tripay_sdk-0.1.0.tar.gz 6.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for tripay-sdk 0.1.0
File Interpreter ABI Platform
tripay_sdk-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 16.1 kB

Release files / tripay_sdk-0.1.0.tar.gz

Download URL tripay_sdk-0.1.0.tar.gz
Size 6.4 kB
Tags Source
SHA-256 checksum
How to use checksums
abc8b33f3ef9fad5e5282fa33e5ebf2364a6c3f6009ebdc4646112bf1d905dfc
BLAKE2b-256 checksum
How to use checksums
a2920008d773caa18fadb6acd59c58591a82d7e37b2456d9fef9632617d8dcbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release files / tripay_sdk-0.1.0-py3-none-any.whl

Download URL tripay_sdk-0.1.0-py3-none-any.whl
Size 9.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
46a6fbff0c7589862efe458f665d6bb322a725d4478a2fd6fdb207eaf57cdef8
BLAKE2b-256 checksum
How to use checksums
1bd4bd9bd93212f6891675e64b2e1e1abd14fb53c7b4646aa8d246e45896b24c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.0 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page