#mtoledo2_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/1296569572459155507
๐ Have more to share? Add more details, code, screenshots, videos, etc. below.
Hi there ๐ how are you initializing Elements? Are you using the client secret from an intent, or are you initializing before an intent is created?
initializing before an intent is created
but the elements is initialized with the publishable key so I'd assume that would pull my payment method configuration
Gotcha. Are you passing a Payment Method Configuration to payment_method_configuration when doing so:
https://docs.stripe.com/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodCreation
or letting it pull the default from your account?
If the latter, do you have a test site that you can share that I could take a closer look at?
pulling the default from my account
let me get a test site
Does that work for you?
Let me take a look
it's in test mode
which is where the payment method shows up but not in livemode
oh feel free to hit the pay with credit card link
Yup. I'm not seeing Link, at least not offhand. I'm seeing card, cash app, and ACH debits (us bank account). Taking a closer look.
Yep Ideally none of those show up
here's an example of a livemode https://checkout.withflex.com/pay/c/fcs_01jae31pen793f1020e2451zmh
where the items don't show up
Are you sure you're using the key you mean to? I'm asking because the publishable key belongs to a different account than the pmc_ object you shared.
(I'm still looking to make sure I'm not mixing things up)
Yep, this is pmc_1NaqWnDMNOMDEQIUPCAXTNPL
So you were right sent the wrong one but it's a copy of this one
oh actually see those enabled noow
hmm
One more question (maybe not the last one though ๐ ) what mode do you use when initializing elements?
subscription
Ah, we're looking at the wrong PMC then.
is that the difference?
Yup, in the dashboard, where you see Default in a dropdown, selecting Billing Payments from there.
https://dashboard.stripe.com/test/settings/payment_methods
Or head over to this page and change the PMC that is used for Subscriptions/Invoices in the Default payment methods section:
https://dashboard.stripe.com/test/settings/billing/invoice
oh that makes a ton of sense