#asifarub_code

1 messages ¡ Page 1 of 1 (latest)

foggy fogBOT
#

👋 Welcome to your new thread!

⏲️ We'll be here soon! Typically we respond in a few minutes, but sometimes we might take a bit longer if the server is busy or if you have a particularly tricky question.

⏱️ We close idle threads, which makes them read-only. Once a thread is closed it won't be reopened, but you can always start a new thread if you have another question.

🔗 This thread will always be available, even after it's closed. You can find it again using Discord's search, or you can save this link: https://discord.com/channels/841573134531821608/1349488244923961460

📝 Have more to share? Add more details, code, screenshots, videos, etc. below.

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.

coral glade
#

Hi there

rare quest
#

hello

#

I am trying to add confirmation token as payment method to the user.

#

to summarize
we are trying to use expressCheckout and subscription using stripe. We are not collecting any user data and not allowing credit card either. We are only acceptiong google pay/apple pay. Issue that I have from previous thread is, we cannot create customer before collecting payment. Once we collect the payment, I can create a user and need to attach the payment to it so that the recurring payment works

#

@coral glade

coral glade
#

Looking now

#

You're intending to use Stripe Subscriptions, is that right? I think the main problem is that you can't pass the Confirmation Token to a Subscription; you would have to pass the Confirmation Token to a SetupIntent and provide the Customer to the SetupIntent. You could then create a Subscription using the PaymentMethod you get from the SetupIntent

rare quest
#

flow is
user pays using Frontend(expressCheckout -> createConfirmationToken) -> Backend(create customer ->create Subscription) ->frontend( confirmPayment)

#

is that correct?

coral glade
#

more like
Frontend = [ expressCheckout > create Confirmation Token ]
Backend = [ create Customer > create/confirm SetupIntent > create Subscription ]

#

You would just then use the PaymentMethod from the SetupIntent to create a Subscription afterward

rare quest
#

this is what i have been following

#

confirmation token goes in payment method for setupIntent?

coral glade
rare quest
#

ok great

#

after subscription create, do i have to call confirmPaymnet from frontend using subscription client secret?

coral glade
#

Nope, but you do need to make sure to tell Stripe that you're creating the Subscription off-session and that the customer isn't present in your checkout

rare quest
#

ok

rare quest
#

another question for expresscheckout subscription

#

for apple pay configuration there is a field called

recurringPaymentStartDate and recurringPaymentEndDate

#

will the start date be current date or the next billing cycle?

#

and is there any way to set end date infinite?

coral glade