#ebellotpu6

1 messages ยท Page 1 of 1 (latest)

clever fableBOT
foggy palm
kind ferry
#

and the entire number?

foggy palm
#

No, only last 4

kind ferry
#

and can I hide inputs of the form, for example in sepa_debit, I do not want to show the address, email and inputs like this, I only want to show the iban input.

foggy palm
#

Are you using PaymentElement?

kind ferry
#

yes

#

i am using paymentelement with card and sepa_debit as payment_methods

#

but all the user data like email, address, country I have collected in a previous form, so I don't want to show again in the paymentElement

foggy palm
kind ferry
#

so if I put billingDetails: 'never' everything is hidden or I have to put never foreach field in the object?

foggy palm
#

Yes, everything is hidden if you do billingDetails: 'never'

kind ferry
#

And finally, is there a way to create my custom form and send a call to Stripe? With this approach, I could get the value of iban.

foggy palm
kind ferry
#

I have tried what you said of 'never' and I can't specified the field billing_details to 'never'

foggy palm
#

Did you get an error?

kind ferry
#

billing_details?: PaymentMethodCreateParams.BillingDetails;

#

export namespace PaymentMethodCreateParams {
export interface BillingDetails {
/**
* Billing address.
*/
address?: BillingDetails.Address;

/**
 * Email address.
 */
email?: string;

/**
 * Full name.
 */
name?: string;

/**
 * Billing phone number (including extension).
 */
phone?: string;

}

#

this is the type accepted by billing_details

foggy palm
#

Hmm, it looks like the type interface doesn't match the JS API reference.

kind ferry
#

I am using stripe API

#

And optional dictionary billing_details is
optional dictionary

#

???

foggy palm
#

Can you set them to 'never' individually?

kind ferry
#

yes, I will try

#

not working

foggy palm
#

Do you see any errors?

kind ferry
#

any error, but the fields are still shown

#

I have achieved it

regal kraken
#

what error? can you share more details ?

kind ferry
#

๐Ÿ‘