#ucjonathan_api
1 messages ¡ Page 1 of 1 (latest)
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.
- ucjonathan_api, 21 hours ago, 55 messages
- ucjonathan_api, 1 day ago, 30 messages
đ 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/1240742428500168816
đ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hey there can you share more details or an example code snippet?
const options = {
mode: 'payment',
// paymentMethodTypes: ["amazon_pay", "card"],
amount: Math.round(window.cart.total * 100),
currency: 'usd',
// Customizable with appearance API.
appearance: {/.../}
};
if (cart.containsAutoOrderItem) {
options.setupFutureUsage = "off_session";
}
console.log("init stripe elements with options", options);
that.elements = that.stripe.elements(options);
so if that setupFutureUsage is put into the options object, then I'm seeing Link as a payment option, but not Amazon Pay.
I did find this documentation, but it doesn't really talk about the express checkout element: https://docs.stripe.com/payments/amazon-pay/set-up-future-payments
maybe this is not currently possible in an express checkout scenario.
Sign in to the Stripe Dashboard to manage business payments and operations in your account. Manage payments and refunds, respond to disputes and more.
Can you see requests for elements/sessions in your logs there?
If you can share an example request ID (one of those or really any req_123) I can take a look at some logs interally
This page is for setup intents, not setup_future_usage with a payment
https://docs.stripe.com/payments/amazon-pay/accept-a-payment
This payment doc doesn't mention setting up future usage, still looking around
yeah, I'm guessing that right now it's not possible to have Amazon Pay for subscriptions in an express checkout scenario.
what happens if mode is set to "setup" or "subscription" in this scenario?
https://support.stripe.com/questions/payment-intents-api-vs-setup-intents-api
So "setup" would probably do a setup intent, but wouldn't charge them right away.
Find help and support for Stripe. Our support site provides answers on all types of situations, including account information, charges and refunds, and subscriptions information. Get your questions answered and find international support for Stripe.
Any idea what "subscription" mode does?
That's for starting subscriptions, eg confirming the payment intent of the first invoice of a subscription
ah, subscription is where Stripe is driving the subscription rebill.
I think I'll research further how the express checkout element behaves with setup intents. For this week though I'm just happy to have the core of this all working for one time payments and I'll focus on Link for subscriptions first as right now our old Amazon integration didn't have rebills.