#peepeepoopoo_code

1 messages ยท Page 1 of 1 (latest)

vague marlinBOT
#

๐Ÿ‘‹ 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/1354455334445387876

๐Ÿ“ Have more to share? Add more details, code, screenshots, videos, etc. below.

spiral spadeBOT
dawn gust
#

Hi there ๐Ÿ‘‹ can you share the code you used to try to initialize the Express Checkout Element for Subscriptions? Do you have a publicly accessible test site where I can see the behavior you saw when trying that? We're there any errors thrown to the browser console?

#

It's still rendering when I swap mode to subscription on my test site, so my suspicion is that you have different payment method types enabled for Subscriptions than you do for one-time payments.

You can check whether your account uses a Payment Method Configuration for your Stripe Billing payment method types, and which one if so, on this page in your dashboard:
https://dashboard.stripe.com/test/settings/billing/invoice
I'd suggest checking which payment method types are enabled for the PMC mentioned there, and update them if you don't see all the desired wallets turned on.

vague marlinBOT
wind lake
#

Hey Toby, thanks for reaching out! Oh sorry it looks like the code got cut out.

Here is subscriptions:

        const elements = stripe.elements({
            mode: 'payment',
          //  mode: 'subscription', DOES NOT WORK despite documentation saying it does?
            amount: amount * 100, // Convert to smallest currency unit
            currency: currency,
            appearance,
        });
        const expressCheckoutElement = elements.create('expressCheckout', expressCheckoutOptions);
        expressCheckoutElement.mount(mountElementId);

I have everything enabled in stripe dahsbaord (Screenshot 1). Unfortunately I only have my local app running . This is what the console log is outputting with 'subscription'(Screenshot 2)

dawn gust
#

Are you sure you're looking at the right Payment Method Configuration in the dashboard? When you switch the mode to subscription for Payment Element integrations, you start using the PMC that is set for your Stripe Billing integrations rather than your default PMC.

wind lake
#

Oh what is it called? these are my payment ocnfigurations:
I am using the "Billing payments" PMC

dawn gust
#

Billing Payments is usually the one that gets used by default for Billing integrations, but that's adjustable on the settings page I linked to previously.

#

But if you're looking at the right PMC, and all your wallets are enabled, and they're rendered as expected when mode is payment, then I'm not sure what the difference between the flows that would keep wallets from showing for Subscriptions would be offhand.

#

Any chance you have a test site we can look at?

wind lake
#

I can set one up @dawn gust ! Is it okay if I do it later,? I have to go soon ๐Ÿ™‚ Ill ping you!

hallow escarp
#

Hi there

#

Toby had to step out

#

We close threads after some period of inactivity, but you can always open a new one and we'll take a look for you if it's closed

wind lake
#

Hello! Ah no worries, I got abit more time, I cna deploy it now ๐Ÿ˜„

#

Wow its very weird, so it works live....but it does not work locally. I guess we resolved it hahah!

#

Do you know why thats the future case though, just for future reference. Im using the same exact code and I tried incognito too locally

hallow escarp
#

You're using https?

wind lake
#

Yes!

hallow escarp
#

Those wallets need https and domain registration

#

yeah and it's weird that it worked in payment mode...

wind lake
#

Oh I see, so it technicaly cant work locally?

hallow escarp
#

You'd have to use ngrok or something similar