We implemented a custom integration few months ago which depends on creating and mounting a Payment Element as the following:
elements = stripe.elements({
mode: 'setup',
paymentMethodTypes: ['card'],
setupFutureUsage: 'off_session'
});
const paymentElement = elements.create('payment', {business: {name: 'ABC Co.'}, terms: {card: 'never'}});
paymentElement.mount('#stripe-payment-element');
This code used to show “Card” (credit card) as the only available payment method on the web page form, however few days ago it started to show “Bank” also (as shown in the following picture) without making any changes to the code.
My questions:
- What caused this change in Payment Element’s behavior?
- How can I force “Card” to be the only available payment method?
Thanks!