Reply
Highlighted
Member
Posts: 1
Registered: ‎09-30-2020

authorize-net how to use the form token (react JS)

o I would like to implement a payment system using authorize.net I tried their sandbox which is fairly easy to use. code below

  <div >
            <FormContainer
                style={{backgroundColor: "red"}}
                environment="sandbox"
                onError={onErrorHandler}
                onSuccess={onSuccessHandler}
                amount={amount}
                component={FormComponent}
                clientKey={clientKey}
               apiLoginId={apiLoginId}
            />

        </div>

However a production sounds more difficult to implement. I was able to implement the API call to get a form token, but then I have no idea how to use it in order to display the form or put the amount to charge.

anyone can help understand how to use the form token to display a form on the browser?

thanks