#cerebraldad
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.
- cerebral-firebase-support, 5 days ago, 12 messages
- cerebraldad, 6 days ago, 18 messages
I don't grasp what you mean by one payment
These are definitely different payments (look at the PaymentIntent IDs pi_xxx)
wonder why - see that now
trying to think how that happened
ok so, what is the difference between canceled and incomplete - i know i exited the form once or twice because the qty was off
canceled means the payment method was not charged. As you mentioned the payment was most likely abandoned and the attempt was canceled
when would you get an incomplete? fill out the card number and leave the form?
Are you using Stripe Checkout?
using the firebase-stripe-extension
const checkoutsRef = collection(this.firestore, `users/${user.uid}/checkout_sessions`); const docRef = await addDoc(checkoutsRef, { price, mode: "payment", quantity: qty, success_url: 'https://app.yardsalebuddy.io/profile', cancel_url: 'https://app.yardsalebuddy.io/profile' });
im not sure what it creates - might be a link to a "checkout"
but its a link to a payment session
Okay, so the extension is creating Stripe hosted checkout pages using Checkout API
When the customer completes the payment flow on the checkout page, the payment intent moves to succeeded
Abandoning the checkout page can result in checkout page expiring which cancels the underlying payment intent
Which moves the status to canceled
so incomplete is the same as a completed payment flow but the payment "failed" or is failed another status?
trying to write a function that adds something to a persons inventory, but now sure how to track the status' since there is a payment added to the collection regardless - is there a list of statuses that i can can reference or a suggested firebase function flow that i can find that handles adding to a users inventory or document?
these trasactions are credits the user purchases
We have a doc that covers order fullfilment with checkout, that might help
https://stripe.com/docs/payments/checkout/fulfill-orders
cool
also you woulddnt happen to know how to handle success_url and cancel_url natively on a mobile device?
what do you mean by natively exactly?
well, i have deep linking setup and it doesnt seem to be redirecting to the app but the web deployment of the app - wasnt sure if there was something similar to window.location.origin for mobile
kind of off topic but something that is driving me nuts
This might help
https://developer.apple.com/ios/universal-links/
stripe doesnt recognize myapp://path as a valid url - it needs the http or https protocol
yeah that's why you'd need a universal link instead
yeah - technicall have that setup works in the browser but just not through the stripe payment flow
hmm, I am aware of the limitation about custom URL schemes but universal links should work as we redirect users to the universal link URL on your server and then your server attempts to go back in the app
yeah - 60000 checked my setup - even made a dummy app to test and stripe is not playing nice
ie the app and dummy app could link to one another
like i said not technically your problem, but i isolated it to the stripe payment flow
there is a missing piece somewhere that im not aware of
Yeah I looked but not finding much on my end on this. I'd recommend creating a support ticket via
https://support.stripe.com/?contact=true
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
thanks a lot for your help