#afonso

1 messages · Page 1 of 1 (latest)

foggy cryptBOT
mystic jay
#

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?

fair mauve
#

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.

mystic jay
#

do you have an example PaymentIntent ID pi_xxx where that happens?

#

ah you are using the deferred flow oops

fair mauve
#

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

mystic jay
#

dunno, maybe you turned it off or it was on in livemode and not testmode or something

fair mauve
#

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?

mystic jay
#

well what currency are you using?

fair mauve
#

EUR

mystic jay
#

and what mode?

fair mauve
#

Payment.

mystic jay
#

ack well give me a few minutes to check something

fair mauve
#

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:

mystic jay
#

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)
});
fair mauve
#

One second.

#

I'm also in Thailand, that might have an influence.

mystic jay
#

possibly

fair mauve
#

Let me test it with vpn.

#

Well, it's still not showing.

#

I'm doing this on test mode btw.

mystic jay
fair mauve
#

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.

mystic jay
#

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

fair mauve
#

Yeah the connect platform is called Niceboard.

mystic jay
#

also how do you create the stripe object, are you passing stripeAccount or just a key

fair mauve
#

This account that I passed to you is the connected account.

#

I pass the stripeAccount and also use onBehalfOf.

mystic jay
#

ah well there you go then

#

you need to configure these things on your platform account, not the connected account

fair mauve
#

Can you double-check that it's not turned on in the platform account?

mystic jay
fair mauve
#

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?

mystic jay
#

give me a few

fair mauve
#

Ok thanks

mystic jay
#

it's disabled in the platform I think yes

fair mauve
#

Is this in both production and test?

mystic jay
#

yes

fair mauve
#

Ok thanks.

foggy cryptBOT
fair mauve
#

But for this to work I just have to go the dashboard and turn it on right?

mystic jay
#

definitely worth trying

fair mauve
#

But I don't understand what you're saying when you shared that link.

#

Is there some configuration we're doing wrong?

mystic jay
#

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

fair mauve
#

First I want to understand what's wrong currently, that the link solves.

#

But I will definitely do that.

mystic jay
#

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

fair mauve
#

Right, just read it.

#

The only thing we're missing is toggling that iDeal option right?

#

What else?

mystic jay
#

should be just that, try it and see what happens

fair mauve
#

Ok thanks, will talk with my team and do in the next 6 hours.