I'm trying to set up my payment method using StripeCheckout. I'm not too sure how to create the checkout session ID because of this the checkout won't render and is stuck on loading.
import StripeCheckout from 'react-native-stripe-checkout-webview';
<StripeCheckout
stripePublicKey="pk_test_51KoT8PHUiHbP1Rg8YM69Pysn..."
checkoutSessionInput={{
sessionId: CHECKOUT_SESSION_ID,
}}
onSuccess={({ checkoutSessionId }) => {
console.log(`Stripe checkout session succeeded. session id: ${checkoutSessionId}.`);
}}
onCancel={() => {
console.log(`Stripe checkout session cancelled.`);
}}
/>