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
});
const response = await client.payment.updateIntent({
fulfillmentAddress: {
address1: 'address1',
city: 'city',
postalCode: 'postalCode',
state: 'AL',
},
fulfillmentType: 'DELIVERY',
paymentIntentId: 'paymentIntentId',
});
console.log(response);