skip to Main Content

Reactjs – Stripe error react-Uncaught IntegrationError: Invalid value for elements(): clientSecret should be a client secret of the form ${id}_secret_${secret}

From stripe docs, I have integrated stripe in my react typescript based project. But I am getting client secret id error. Below is my code: placeOrder.tsx: import {Elements} from '@stripe/react-stripe-js'; import {loadStripe} from '@stripe/stripe-js'; import CheckoutForm from './Checkout'; // Make…

VIEW QUESTION

Laravel Cashier Stripe address information

I have a problem with providing the customers address information to stripe. This is my checkout process for the stripe hosted checkout process: $user = $request->user(); return $user->newSubscription(config('stripe.product'), $plan) ->allowPromotionCodes() ->checkout([ 'success_url' => route('success'), 'cancel_url' => route('dashboard'), 'customer' => […

VIEW QUESTION
Back To Top
Search