#NewtReyes-stripe-js
1 messages · Page 1 of 1 (latest)
Definitely. Are you running into any errors? Or just looking for some docs to get started?
No, not really. We are thinking about how to create a payment intent and set the right application_fee_amount.
That will need to be done at the platform level and we provide the required payment intent info for the Custom Account system to use it with Stripe.js?
It's hard to say without more details. That's sort of a vague explanation.
What type of charges are you using? Destination or Separate Charges and Transfers?
So Stripe JS will be able to handle a lot of things, but the creation of the Payment Intent (which is where you specify application_fee_amount ) happens on the server-side, so no stripe.js method exists for that part as far as I'm aware
You can use stripe.js for most of the other actions that lead up to that part though.
Have you looked at this yet?
https://stripe.com/docs/payments/card-element
Yes
I was getting confused
Thing is customer will not be able to use any Server Side Stripe library, correct?
We will need to provide an API on our side that will allow them to create the payment intent with the right application_fee_amount among other fields. Then they will receive the payment intent data and use our Platform account public key to continue the process using the regular Stripe.js library
Thing is customer will not be able to use any Server Side Stripe library, correct?
I don't understand this question. You can usefetch()orXMLHttpRequestto make calls to the server from the client in order to make non-client-side actions.
Right. I mean, no Stripe server side library.
That is correct. So if you want a user to have some input on the application fee that your platform sets, you will need some custom code to communicate with your server to tell it how much to charge and whatnot