#afonso
1 messages · Page 1 of 1 (latest)
hi! do you have more context, what type of Stripe integration are you using, what does the code look like and do you have an example PaymentIntent ID pi_xxx?
This is a snippet:
const currency = this.currency.toLowerCase();
const elements = stripe.elements({
amount: normalizeCurrency(this.price, currency),
mode: this.isSubscription ? 'subscription' : 'payment',
currency: this.currency.toLowerCase(),
paymentMethodCreation: 'manual'
});
elements.create('payment', {
terms: {
auBecsDebit: 'never',
bancontact: 'never',
card: 'never',
ideal: 'never',
sepaDebit: 'never',
sofort: 'never',
usBankAccount: 'never'
},
fields: {
billingDetails: {
address: {
line1: 'never',
city: 'never',
state: 'never',
postalCode: 'never',
country: 'never'
}
}
}
}).mount("#payment-element");
this.stripe.elements = elements;
},```
Basically I'm using the new flow where I render the payment element after getting the intent.
Google Pay and Apple Pay is working correctly, but iDEAL doesn't show up.
do you have an example PaymentIntent ID pi_xxx where that happens?
ah you are using the deferred flow oops
you have to pass the types you're going to support into https://stripe.com/docs/js/elements_object/create_without_intent#stripe_elements_no_intent-options-paymentMethodTypes , like ["card", "ideal"]
"A list of payment method types to render. You can omit this attribute to manage your payment methods from the Stripe Dashboard."
If it's enabled on the dashboard, shouldn't it be showing?
Ok I set ideal in the types and now it's showing.
But don't understand why it was off in the first place.
dunno, maybe you turned it off or it was on in livemode and not testmode or something
No, I mean
If I ommit the option, it doesn't show
But it should show because it's on in the stripe dashboard right?
well what currency are you using?
EUR
and what mode?
Payment.
ack well give me a few minutes to check something
If I add this paymentMethodTypes: ['card', 'ideal'], to the code it starts showing, why doesn't it show without it?
Oh wait actually I see this on settings:
so it's working for me like this so my guess is you don't have it turned on in the right mode or on the right account or something like that
const elements = stripe.elements({
amount: 1500,
mode: 'payment',
currency: "eur",
paymentMethodCreation: 'manual'
});
paymentElement = elements.create('payment', {
terms: {
auBecsDebit: 'never',
bancontact: 'never',
card: 'never',
ideal: 'never',
sepaDebit: 'never',
sofort: 'never',
usBankAccount: 'never'
},
fields: {
billingDetails: {
address: {
line1: 'never',
city: 'never',
state: 'never',
postalCode: 'never',
country: 'never'
}
}
}
})
paymentElement.mount("#payment-element");
paymentElement.on('change', (event) => {
console.log(event)
});
what's your account ID acct_xxxx ? https://stripe.com/docs/dashboard/basics#find-account-id
possibly
Let me test it with vpn.
Well, it's still not showing.
I'm doing this on test mode btw.
what's your account ID acct_xxxx ? https://stripe.com/docs/dashboard/basics#find-account-id
Not sure if this is simportant, but on test mode > payments > elligible, this is showing, but I'm not able to verify on test mode.
One sec.
acct_1MHcV3EOaB4V1nuw
Test mode.
I'm only using the account for testing stuff.
so a lot of your integration is via a Connect platform called Niceboard
I wonder if you're using the right API key.
why does the publishable key that you're using look like? if you're using the key of that account, it should be like pk_test_AQ****************************5dHD
maybe instead you're using the key of that platform account , or a different account entirely
Yeah the connect platform is called Niceboard.
also how do you create the stripe object, are you passing stripeAccount or just a key
This account that I passed to you is the connected account.
I pass the stripeAccount and also use onBehalfOf.
ah well there you go then
you need to configure these things on your platform account, not the connected account
Can you double-check that it's not turned on in the platform account?
you go to https://dashboard.stripe.com/test/settings/connect/payment_methods and use the second section
Yeah thing is I don't have access, I'm working as a dev for the company.
Can you just double-check that there's where the problem comes from?
give me a few
Ok thanks
it's disabled in the platform I think yes
Is this in both production and test?
yes
Ok thanks.
anyway since you're using Connect you want to work with https://stripe.com/docs/connect/automatic-payment-methods?connect-payment-integration-type=checkout&connect-charge-type=direct&connect-account-type=standard#enable-payment-methods-connected-accounts
But for this to work I just have to go the dashboard and turn it on right?
definitely worth trying
But I don't understand what you're saying when you shared that link.
Is there some configuration we're doing wrong?
yes
did you read the link? I mean this is hard if you don't have access to the dashboard of the platform, so I suggest working with your client/colleauges on that
First I want to understand what's wrong currently, that the link solves.
But I will definitely do that.
ultimately because you are using Connect, the platform can control what payment methods show up by default, and that's configured through settings they have on their dashboard
again, read the link
Right, just read it.
The only thing we're missing is toggling that iDeal option right?
What else?
should be just that, try it and see what happens
Ok thanks, will talk with my team and do in the next 6 hours.