#cnguyen-PI
1 messages · Page 1 of 1 (latest)
await stripe.paymentIntents.create(params);
{
payment_method: stripePaymentMethod,
payment_method_options: {
card: {
request_three_d_secure: (request_3ds) ? 'any' : 'automatic'
}
},
payment_method_types: ['card'],
amount: price, // in cents
currency: currency,
transfer_data: {
destination: stripeMerchantId,
},
metadata: additionalMeta,
customer: user.stripeId,
on_behalf_of: stripeMerchantId,
setup_future_usage: 'off_session'
};
I think that it's automatically generated when it 's a PI with trasfer_data.destination or on_behalf_of. No ? @lean dirge
Yeah that's the transfer_data, which makes it a group id