#diedu-ece-defer

1 messages · Page 1 of 1 (latest)

spring rivetBOT
#

Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.

gritty pivot
#

this is a piece of code to reproduce it

import { Elements, ExpressCheckoutElement } from "@stripe/react-stripe-js";
import { loadStripe } from "@stripe/stripe-js";

const stripePromise = loadStripe('key');

export default function Home() {
return (
<Elements stripe={stripePromise}>
<ExpressCheckoutElement onConfirm={(e) => console.log(e)} />
</Elements>
);
}

pseudo plank
#

diedu-ece-defer

#

@gritty pivot what exact end to end doc are you following?

gritty pivot
#

it doesn't mention anything about providing a client secret beforehand

pseudo plank
#

that step has a clear call out about initialization you missed

#
    mode: 'payment',
    amount: 1099,
    currency: 'usd',
    // Customizable with appearance API.
    appearance: {/*...*/},
  };```
#

like you have to do this to configure the currency/amount you want to charge

spring rivetBOT