#diedu-ece-defer
1 messages · Page 1 of 1 (latest)
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.
- diedu89, 1 day ago, 4 messages
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>
);
}
we'd like to implement this flow https://docs.stripe.com/elements/express-checkout-element/accept-a-payment?client=react#create-pm
it doesn't mention anything about providing a client secret beforehand
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