ngx-stripe icon indicating copy to clipboard operation
ngx-stripe copied to clipboard

[BUG] Unable to display name, phone & email is payment form using the billingDetails in defaultValues

Open ahmadallw opened this issue 1 year ago • 1 comments

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'

image

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

ahmadallw avatar Feb 13 '24 14:02 ahmadallw