#ashishchicmic
1 messages · Page 1 of 1 (latest)
Subscription will generate the first Invoice, which inside it has the PaymentIntent, which inside it has the same client secret
https://stripe.com/docs/billing/subscriptions/build-subscriptions?ui=elements#create-subscription here you see subscription.latest_invoice.payment_intent.client_secret
customer,
items: [
{ price },
],
default_payment_method: cardId,
collection_method: 'charge_automatically',
transfer_data: {
destination: config.STRIPE.ADMIN_CONNECT_ACCOUNT_ID,
amount_percent: referralPercentages,
},
};
if (!first) {
data.default_payment_method = cardId;
}
return await stripe.subscriptions.create(data);```
can we still do the transfer by passing ```payment_behavior=default_incomplete``` ?
Hmm how payment_behavior relates to transfer? Sorry don't really follow your thoughts