#geek-connectonboarding-prefill

1 messages · Page 1 of 1 (latest)

hollow pelicanBOT
hidden linden
#

At a high level you'd make a request to your own server from your frontend and the response would include the client secret

west abyss
#

yes I understood that, but don't know which endpoint

hidden linden
#

It's an endpoint on your own server tha tyou have to create - so it's entirely up to you

west abyss
#

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 ?

hidden linden
west abyss
#

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

west abyss
#

alright thanks, I'm going to read it, is it the same methodd, for card

#

it was written sorry

hidden linden
#

👍

west abyss
#

is there a way to specify which informations your web-hosting onboarding part will require ?

hidden linden
#

What do you mean by that? Can you be more specific?

west abyss
#

I don't want the onboarding to collect this cause my customer are individual:

hollow pelicanBOT
atomic crater
#

👋 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

west abyss
#

ok no problem I'm going to invistigate it