Python SDK
🎯 What is Prism?
❌ Without Prism
✅ With Prism
Installation
pip install hyperswitch_prismQuick Start
from hyperswitch_prism import PaymentClient
payment_client = PaymentClient(
connector='stripe',
api_key='YOUR_API_KEY',
environment='SANDBOX'
)
# Authorize a payment
response = await payment_client.authorize({
"merchant_transaction_id": "txn_order_001",
"amount": {
"minor_amount": 1000,
"currency": "USD"
},
"payment_method": {
"card": {
"card_number": {"value": "4242424242424242"},
"card_exp_month": {"value": "12"},
"card_exp_year": {"value": "2027"},
"card_cvc": {"value": "123"},
"card_holder_name": {"value": "John Doe"}
}
},
"auth_type": "NO_THREE_DS"
})
print(response["status"]) # AUTHORIZEDServices
Service
Description
Configuration
Option
Type
Required
Description
Error Handling
Support
Last updated
Was this helpful?

