Skip to content

Commit

Permalink
fix(payment): enable auto country collection
Browse files Browse the repository at this point in the history
  • Loading branch information
Kikobeats committed Feb 17, 2025
1 parent 2cbcb11 commit bccbbc1
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions src/pages/payment/update.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,7 @@ const CheckoutForm = ({

return (
<form onSubmit={handleSubmit}>
<PaymentElement
options={{
fields: {
billingDetails: {
address: {
country: 'never',
postalCode: 'never'
}
}
}
}}
/>
<PaymentElement />
<Button
loading={!stripe || paymentState === PAYMENT_STATE.processing}
css={theme({ mt: 3, width: '100%' })}
Expand Down

0 comments on commit bccbbc1

Please sign in to comment.