#Hitesh

1 messages · Page 1 of 1 (latest)

wooden lilyBOT
nocturne magnet
#

Hi there, I don't quite understand, can you elaborate?

devout sinew
#

Need to add credit card charges with checkout session then how can we add this credit card charges

nocturne magnet
#

Are you asking how to reuse the payment method used in a checkout session?

devout sinew
#

no

#

how to charge credit card charges to customer with stripe checkout session

#

like how can we pass this credit card charges amount when we create payment link

nocturne magnet
#

Let me clarify, so you want to preset the payment_method when creating a checkout session?

devout sinew
#

yes

nocturne magnet
#

No there's no param to set a payment_method during a checkout session creation.

However, if you set a customer, In payment mode, the customer’s most recent card payment method will be used to prefill the email, name, card details, and billing address on the Checkout page. In subscription mode, the customer’s default payment method will be used if it’s a card, and otherwise the most recent card will be used.

wooden lilyBOT
devout sinew
#

i am trying to add credit card charges in the Stripe Checkout Session create method.

#

can you please tell me how can i add that charges

ancient crow
devout sinew
#

yes

#

Is there anyway way to collect credit card charge it (without failling) with checkout session create payment url

ancient crow
#

sorry but again that's super unclear. Checkout supports credit card payments, yes, of course

#

did you try something specifically and run into a problem or error?

devout sinew
#

no you are not getting me correctly

#

As we transfer the platform fee to the connected account same way can we add credit card charges also and transfer to connected account ?
with checkout session

#

As we transfer the platform fee to the connected account same way can we need to add credit card charges also and transfer to connected account ?
with checkout session

ancient crow
#

you can use Destination Charges with Checkout yes, it all works with Connect

devout sinew
#

yes but first need to add credit card charges .how can i add that 2% charges with checkout session

ancient crow
#

ok when you say "credit card charges" what you actually meant was "the Stripe credit card processing fee, which I want to pass to my customer to pay"

devout sinew
#

yes

ancient crow
devout sinew
#

but the Stripe credit card processing fee must be transfer to coonected account

ancient crow
#

well the way it works is you charge the customer $X amount. You control how much the connected account(using payment_intent_data[transfer_data] ) as any amount up to an including $X. You can calculate the right amounts for the proportions or split that you want and pass them to the API, you mostly control all of this.

devout sinew
#

can it be possible to transfer Stripe credit card processing fee to connected account and not the platform fee

ancient crow
#

I don't know what you mean really. The "platform fee" (do you mean the 'application fee' from the Connect docs?) is not 'transferred to a connected account', it's an amount of the payment that you keep. Like instead of the connected account getting $100, they get $96 and you get $4 as a fee.

devout sinew
#

can it be possible to transfer Stripe credit card processing fee to connected account and not the 'application fee'

ancient crow
#

sorry but you are very difficult to understand

ancient crow
devout sinew
#

Want to charge customer with Stripe credit card processing fee and application fee with stripe checkout session . But need to tansfre Stripe credit card processing fee to the connected account and keep application fee

ancient crow
#

I suggest trying some things and writing some code and if you have specific questions about some code, let us know.

devout sinew
#

ok

#

I have two thing's

1)Stripe credit card processing fee =10
2)application fee=4

here need to transfer Stripe credit card processing fee to the connected account and keep the aplication fee

payment_intent_data: {
application_fee_amount: Number(platformFees),
transfer_data: {
amount: 10,
destination: ${findCommonSettings.stripeConnectAccountId},
},
},

so here need to pass 10 to the connected account and keep 4

#

then how can i set this in payment_intent_data

ancient crow
#

seems that code already does that I think

#

when you ran that code, does it seem to do what you want?

devout sinew
#

no i want to add Stripe credit card processing fee and transfer that a,ount to aonnected account

ancient crow
#

I know, you keep saying that

#

did you try running that code you posted above, and seeing what it did and what you see in your Stripe dashboard? that's the best thing to do.

devout sinew
#

it's not as per expectation

#

beacuse in the code you can see that Stripe credit card processing fee is not added

ancient crow
#

then you need to show me exactly what you did see(like a screenshot of the dashboard, and the PaymentIntent ID pi_xxxx) and clearly explain exactly what you wanted to see instead.