#cerebraldad

1 messages · Page 1 of 1 (latest)

torpid irisBOT
#

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.

dry summit
#

I don't grasp what you mean by one payment

These are definitely different payments (look at the PaymentIntent IDs pi_xxx)

woven ether
#

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

dry summit
#

canceled means the payment method was not charged. As you mentioned the payment was most likely abandoned and the attempt was canceled

woven ether
#

when would you get an incomplete? fill out the card number and leave the form?

dry summit
#

Are you using Stripe Checkout?

woven ether
#

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

dry summit
#

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

woven ether
#

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

dry summit
woven ether
#

cool

#

also you woulddnt happen to know how to handle success_url and cancel_url natively on a mobile device?

dry summit
#

what do you mean by natively exactly?

woven ether
#

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

dry summit
woven ether
#

stripe doesnt recognize myapp://path as a valid url - it needs the http or https protocol

dry summit
#

yeah that's why you'd need a universal link instead

woven ether
#

yeah - technicall have that setup works in the browser but just not through the stripe payment flow

dry summit
#

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

woven ether
#

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

dry summit
#

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

woven ether
#

thanks a lot for your help