#kimvincible_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/1276497919423287357
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi, let me help you with this.
It depends how you're integrated on the backend exactly, but you might or might not need to make any change.
I would suggest starting from scratch and reusing whatever can be reused. This way it will be less confusing: https://docs.stripe.com/payments/accept-a-payment?platform=android
ah got it. Sorry if it is taking a whole for me to write how we integrated exactly
yeah, that's my plan actually
So to give more context how we integrated:
- Our add card page returns a card with paymentMethodCreateParams
- Within our payment flow, we do the following steps
- call backend API SetupStripeRecurringCardPaymentRequest to get clientsecret and a recurringPaymentID
- we use the client secret along with paymentMethodCreateParams to call Stripe.confirmSetupIntent
- This should return a SetupIntent object that has a paymentMethodID inside
- We use both recurringPaymentID and paymentMethodID to call our backend again (completeStripeRecurringCardPayment)
- Then we just call one last API enableAutoPurchase which enables our feature itself
so i guess maybe what i am asking is if we can jsut get paymentMethodCreateParams somehow from the new payment flow?
Are you building a Subscriptions integration?
not sure what are the terminologies but it is recurring. backend controls the recurring part
you don't pay immediately i guess
backend controls the recurring part
Are you using Stripe Billing? Or you have your own billing engine?
ah that one i need to double check. but i think we do
sorry if unsure. most of the backend stuff are abstracted on our end so i had to double check things
When you build a Stripe integration it's important to be aware of what's happening both on server and the client.
If you're using Stripe Billing, you can follow this guide: https://docs.stripe.com/billing/subscriptions/build-subscriptions?platform=android
i see. It seems we are using our own billing engine. None of the stuff in Stripe Billing is used.
So you're using SetupIntents to collect a PaymentMethod?
yeah
Then you can follow this guide: https://docs.stripe.com/payments/save-and-reuse?platform=android&mobile-ui=payment-element
ok got it. thank you
Happy to help.