ngx-stripe
ngx-stripe copied to clipboard
[BUG] Unable to display name, phone & email is payment form using the billingDetails in defaultValues
Describe the bug We are trying to display name, phone & email is the payment form (pre filled data) - where the options object is set to
options: any = {
defaultValues: {
billingDetails: {
name: 'Name',
email: '[email protected]',
phone: '000000000',
address: {
country: 'DE',
},
},
},
fields: {
billingDetails: {
address: {
country: 'auto',
},
name: 'auto',
email: 'auto',
phone: 'auto',
},
},
}
the available options for billingDetails in fields object are 'auto' | 'never' when setting fields to auto fields still not showing in the payment form
When setting fields to auto they should show on the payment form or maybe it should add new option as 'always'
we are using the following version for "ngx-stripe": "^17.0.1", "@stripe/stripe-js": "^3.0.0",
check the following docs https://stripe.com/docs/payments/link/add-link-elements-integration?link-integration-type=before-payment&client=html#web-collect-payment-details