#asifarub_code
1 messages ¡ Page 1 of 1 (latest)
đ 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.
- asifarub_docs, 1 day ago, 46 messages
Hi there
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
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
flow is
user pays using Frontend(expressCheckout -> createConfirmationToken) -> Backend(create customer ->create Subscription) ->frontend( confirmPayment)
is that correct?
more like
Frontend = [ expressCheckout > create Confirmation Token ]
Backend = [ create Customer > create/confirm SetupIntent > create Subscription ]
We don't have a guide that lays this out super cleanly, but this is the closest thing > https://docs.stripe.com/elements/express-checkout-element/accept-a-payment#create-ct
You would just then use the PaymentMethod from the SetupIntent to create a Subscription afterward
this is what i have been following
confirmation token goes in payment method for setupIntent?
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
No, there is a confirmation_token parameter; it can only be used when confirming - ie passing confirm: true - https://docs.stripe.com/api/setup_intents/confirm#confirm_setup_intent-confirmation_token
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
ok great
after subscription create, do i have to call confirmPaymnet from frontend using subscription client secret?
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
ok
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?
Stripe just passes these values through; they're defined in the Apple Pay documentation: https://developer.apple.com/documentation/apple_pay_on_the_web/applepayrecurringpaymentrequest