#andrei_api
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/1343551539209568298
๐ 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.
- andrei_api, 5 days ago, 27 messages
๐
Can I use apple pay and google pay for recurring payments? And if yes, does it use SetupIntent under the hood?
it depends on the Subscription, if it's with trial period then yes it uses Setupintent and if not then it's PaymentIntents
How can I use apple pay/google pay with 'setup' mode with Elements (but not using Express Checkout) without paymentRequest on frontend? I don't want to handle money amount and currency on frontend.
This guide is a good start:
https://docs.stripe.com/payments/save-and-reuse?platform=web
nice! that's perfect - about subscription
and about second question, I mostly asking about button
since I need to implement logic, that's checks if button is available
I found only 2 realizations: Express Checkout and paymentRequest API
I don't want to handle money amount and currency on frontend
Shouldn't need to ifmode: 'setup'
Yep, those are the only APIs to directly embed the wallet buttons
yes, but as far as I get, when I'm using stripe.paymentRequest({ ... }); I need to pass amount?
maybe there is an analog for this api on backend that it could handle and just gave me the response of availability
Yes, but that API is deprecated. Use ECE
I don't know what this means
what does ECE use under the hood? is it possible to connect it with SetupIntent?
and does ECE usable for reccuring payments?
Yes
It can generate a saved payment method/card to be used for recurring payments, yes
No problem, glad I could help!
sorry
one more question
<section className="d-flex flex-col gap">
<ExpressCheckoutElement onConfirm={() => console.log('')} />
<FormDivider text={l.translate('Or enter payment details')} />
</section>
as far as I understand, ExpressCheckoutElement will render button, but how can I check it on frontend if its available?
You mean programatically check if there are wallets available?
ye, for current account
There's a ready event that emits a availablePaymentMethods field: https://docs.corp.stripe.com/js/element/events/on_ready
oh
onReady?: (event: stripeJs.StripeExpressCheckoutElementReadyEvent) => any;
this one, right?
Yes
perfect