#juiceman

1 messages · Page 1 of 1 (latest)

scarlet crescentBOT
drowsy garden
#

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

signal star
#

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,
},
});

drowsy garden
#

Yep! That is how you'd create a destination charge

#

Which is what you want considering you are using Express accounts