Verify Redirect Response
Last updated
Was this helpful?
Was this helpful?
from hyperswitch_prism import PaymentClient
payment_client = PaymentClient(
connector='stripe',
api_key='YOUR_API_KEY',
environment='SANDBOX'
)request = {
"merchant_order_id": "order_001",
"request_details": {
"headers": {"Content-Type": "application/x-www-form-urlencoded"},
"query_params": {
"payment_intent": "pi_3Oxxx...",
"payment_intent_client_secret": "pi_3Oxxx..._secret_xxx"
},
"body": ""
}
}
response = await payment_client.verify_redirect_response(request){
"merchant_order_id": "order_001",
"source_verified": True,
"connector_transaction_id": "pi_3Oxxx...",
"status": "AUTHORIZED",
"response_amount": {
"minor_amount": 1000,
"currency": "USD"
},
"status_code": 200
}