#ucjonathan_api

1 messages ¡ Page 1 of 1 (latest)

high brambleBOT
gleaming hollowBOT
#

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.

high brambleBOT
#

👋 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.

marsh meadow
#

Hey there can you share more details or an example code snippet?

vale willow
#

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.

#

maybe this is not currently possible in an express checkout scenario.

marsh meadow
#

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

marsh meadow
vale willow
#

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?

#

Any idea what "subscription" mode does?

marsh meadow
#

That's for starting subscriptions, eg confirming the payment intent of the first invoice of a subscription

vale willow
#

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.