Skip to content

Commit bccbbc1

Browse files
committed
fix(payment): enable auto country collection
1 parent 2cbcb11 commit bccbbc1

File tree

1 file changed

+1
-12
lines changed

1 file changed

+1
-12
lines changed

src/pages/payment/update.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -123,18 +123,7 @@ const CheckoutForm = ({
123123

124124
return (
125125
<form onSubmit={handleSubmit}>
126-
<PaymentElement
127-
options={{
128-
fields: {
129-
billingDetails: {
130-
address: {
131-
country: 'never',
132-
postalCode: 'never'
133-
}
134-
}
135-
}
136-
}}
137-
/>
126+
<PaymentElement />
138127
<Button
139128
loading={!stripe || paymentState === PAYMENT_STATE.processing}
140129
css={theme({ mt: 3, width: '100%' })}

0 commit comments

Comments
 (0)