#geek-connectonboarding-prefill
1 messages · Page 1 of 1 (latest)
At a high level you'd make a request to your own server from your frontend and the response would include the client secret
yes I understood that, but don't know which endpoint
It's an endpoint on your own server tha tyou have to create - so it's entirely up to you
yes I understood, but for react element, we have to provide the client secret, how to generate it from my backend using golang ?
import {Elements} from '@stripe/react-stripe-js';
import {loadStripe} from '@stripe/stripe-js';
// Make sure to call `loadStripe` outside of a component’s render to avoid
// recreating the `Stripe` object on every render.
const stripePromise = loadStripe('pk_test_51NIfFGI8c3Wzsivnb4qKWx0qc6six888YyTQOVJ1fzL42pHdLwrpgv3yYDjKZoL2i1eZ99GNrxjfdtKvrOP8kpZM00bhQ7xw1c');
export default function App() {
const options = {
// passing the client secret obtained from the server
clientSecret: '{{CLIENT_SECRET}}',
};
return (
<Elements stripe={stripePromise} options={options}>
<CheckoutForm />
</Elements>
);
};```
is there any documentation about it, do I have to setup a paymentIntent, or something like that ?
Yeah we have a full doc on how to do all of this here https://stripe.com/docs/payments/accept-a-payment?platform=web&ui=elements#web-create-intent
ok alright and how to save a bank account, to a connected custom type account, so I can make a transfer to them,
how to save it using my frontend, and not you're web-hosting solution, so this is seemless
This is the doc you'll want for that: https://stripe.com/docs/connect/payouts-bank-accounts?bank-account-collection-method=manual-entry&bank-account-collection-integration=direct-api
alright thanks, I'm going to read it, is it the same methodd, for card
it was written sorry
👍
is there a way to specify which informations your web-hosting onboarding part will require ?
What do you mean by that? Can you be more specific?
👋 sorry for the delay, Discord is quite busy, taking over
What you can do here is pre-fill most of this in the API with information you control. So when you create the Account in the API, make sure to provide that information so that we don't ask for it during onboarding
geek-connectonboarding-prefill
For example you can set the Industry by setting the mcc and the Website by setting url inside business_profile: https://stripe.com/docs/api/accounts/create#create_account-business_profile
ok no problem I'm going to invistigate it