#juiceman
1 messages · Page 1 of 1 (latest)
Yeah that works. You could always store it before you even visit the account link though. Like in your code between the line that creates the account and the line that creates the account link, you could write account.id to your database
so to generate a charge against that account. all i would do is this?
const paymentIntent = await stripe.paymentIntents.create({
amount: 1000,
currency: 'usd',
transfer_data: {
destination: account.id,
},
});