import Benny from '@bennyapi/sdk';const client = new Benny({ subdomain: 'My-Subdomain', apiKey: process.env['BENNY_API_KEY'], // This is the default and can be omitted});await client.payment.deleteIntent({ paymentIntentId: 'paymentIntentId' });
Enables deletion of a pending payment intent. Payment intents in a terminal state cannot be deleted.
DELETE
/
v1
/
payment
/
intent
JavaScript
Copy
Ask AI
import Benny from '@bennyapi/sdk';const client = new Benny({ subdomain: 'My-Subdomain', apiKey: process.env['BENNY_API_KEY'], // This is the default and can be omitted});await client.payment.deleteIntent({ paymentIntentId: 'paymentIntentId' });