#mhiggie
1 messages · Page 1 of 1 (latest)
hi
so i am using a custom checkout form within a MERN stack project.
In production I can process a payment but my return url is returning my api in the url and not my frontend.
kinda curious if im doing this wrong here.
const { error } = await stripe.confirmPayment({ elements, confirmParams: { // Make sure to change this to your payment completion page return_url: ${apiUrl}/payment-complete, }, });
apiUrl is a variable that points to either my deployed frontend OR localhost depending on whether im working from actual production url or not.
so returnUrl is https://exampleurl.com/payment-complete
but instead i get...
👋 Hopping in here - just want to make sure I understand, the issue here is that the {$apiUrl} you're getting doesn't matche what you expect? Or are you confused about where all the extra parts like payment_intent=pi_3LtzwSCIa15tYhSs063tzUib&payment_intent_client_secret=pi_3LtzwSCIa15tYhSs063tzUib_secret_MVhAd2lQolYqbAMVc1pYhO8HY&redirect_status=succeeded are coming from?
oh wait this is resolved, sry about that