Revoke
Last updated
Was this helpful?
Was this helpful?
const { RecurringPaymentClient } = require('hyperswitch-prism');
const recurringClient = new RecurringPaymentClient({
connector: 'stripe',
apiKey: 'YOUR_API_KEY',
environment: 'SANDBOX'
});const request = {
mandateId: "mandate_xxx",
reason: "customer_canceled"
};
const response = await recurringClient.revoke(request);{
mandateId: "mandate_xxx",
status: "REVOKED",
revokedAt: "2024-01-15T10:30:00Z",
statusCode: 200
}