Se você observar :
js
console.log({ subscription_id })
resulta nisso
js
{ subscription_id: 73258 }
mas o
js
const result = await gerencianet.defineSubscriptionPayMethod({ id: subscription_id }, {
payment: { credit_card, banking_billet }
})
dispara o erro
js
TypeError: Cannot read properties of undefined (reading 'data')