#CalebR-paymentelement

1 messages · Page 1 of 1 (latest)

outer cloud
#

Sorry for the wait! Looking now...

twin bolt
#

Hmm, the US Bank Account option still asks for the name even with that config option set

#

With this setup:

const paymentMethod = elements.create("payment", {
  style: this.options.style,
  business: {
    name: accountName,
  },
  fields: {
    name: 'never',
  },
});

I still get a name field:

outer cloud
#

Ah! Completely forgot that you mentioned you were in the US bank account beta - it's possible that may be a bug on their end, but I also see in the code you sent over you need a slight change:

const paymentMethod = elements.create("payment", {
  style: this.options.style,
  business: {
    name: accountName,
  },
  fields: {
    billingDetails: {
      name: 'never',
    }
  },
});
#

^^ try that

twin bolt
#

Ah, that fixed it! Thanks