#ebellotpu6
1 messages ยท Page 1 of 1 (latest)
Hi there, you can get the last 4 digits of the IBAN https://stripe.com/docs/api/payment_methods/object?lang=dotnet#payment_method_object-sepa_debit-last4
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
and the entire number?
No, only last 4
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.
Are you using PaymentElement?
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
https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails OK, you can use the fields.billingDetails to hide the fields that you don't want to show to your customers
so if I put billingDetails: 'never' everything is hidden or I have to put never foreach field in the object?
Yes, everything is hidden if you do billingDetails: 'never'
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.
No you need to use PaymentElement or iban element (https://stripe.com/docs/js/element/other_element?type=iban) to collect the iban details.
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
I have tried what you said of 'never' and I can't specified the field billing_details to 'never'
Did you get an error?
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
Hmm, it looks like the type interface doesn't match the JS API reference.
I am using stripe API
And optional dictionary billing_details is
optional dictionary
???
Can you set them to 'never' individually?
Do you see any errors?
what error? can you share more details ?
๐