Skip to content

Commit ba0a249

Browse files
committed
fix: remove billing address
1 parent 47e7c84 commit ba0a249

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

apps/frontend/src/components/billing/embedded.billing.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -139,21 +139,24 @@ const StripeInputs: FC<{
139139
const [ready, setReady] = useState(false);
140140
return (
141141
<>
142+
{/*<div>*/}
143+
{/* <h4 className="mb-[32px] text-[24px] font-[700]">*/}
144+
{/* {checkout.type === 'loading'*/}
145+
{/* ? ''*/}
146+
{/* : t('billing_billing_address', 'Billing Address')}*/}
147+
{/* </h4>*/}
148+
{/* <BillingAddressElement />*/}
149+
{/*</div>*/}
142150
<div>
143151
<h4 className="mb-[32px] text-[24px] font-[700]">
144-
{checkout.type === 'loading'
145-
? ''
146-
: t('billing_billing_address', 'Billing Address')}
147-
</h4>
148-
<BillingAddressElement />
149-
</div>
150-
<div>
151-
<h4 className="mt-[40px] mb-[32px] text-[24px] font-[700]">
152152
{checkout.type === 'loading' ? '' : t('billing_payment', 'Payment')}
153153
</h4>
154154
<PaymentElement
155155
id="payment-element"
156-
options={{ layout: 'tabs' }}
156+
options={{
157+
fields: { billingDetails: { address: 'if_required' } },
158+
layout: 'tabs',
159+
}}
157160
onReady={() => setReady(true)}
158161
/>
159162
{ready && <PriceBreakdown />}

0 commit comments

Comments
 (0)