Revoke
Last updated
Was this helpful?
Was this helpful?
from hyperswitch_prism import RecurringPaymentClient
recurring_client = RecurringPaymentClient(
connector='stripe',
api_key='YOUR_API_KEY',
environment='SANDBOX'
)request = {
"mandate_id": "mandate_xxx",
"reason": "customer_canceled"
}
response = await recurring_client.revoke(request){
"mandate_id": "mandate_xxx",
"status": "REVOKED",
"revoked_at": "2024-01-15T10:30:00Z",
"status_code": 200
}