Skip to content

Commit 2cbcb11

Browse files
authored
chore(payment): removed unusued (#1768)
* chore(payment): removed unused * chore: add changelog
1 parent c3d4df4 commit 2cbcb11

File tree

2 files changed

+5
-11
lines changed

2 files changed

+5
-11
lines changed

data/changelog.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
- date: January 2025
2+
notes:
3+
- '[Microlink API](/docs/api/getting-started/overview): When [proxy](/docs/api/parameters/proxy) is provided it takes preference.'
4+
15
- date: December 2024
26
notes:
37
- '[Microlink OSS](/oss): Released [splashy v6](https://splashy.microlink.io/).'

src/pages/payment/update.js

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,6 @@ const getCaption = (paymentState, error) => {
9292
}
9393

9494
const CheckoutForm = ({
95-
fingerprint,
9695
id,
9796
paymentState,
9897
setPaymentState,
@@ -111,15 +110,7 @@ const CheckoutForm = ({
111110
clientSecret: token,
112111
elements,
113112
confirmParams: {
114-
return_url: redirectUrl('callback', id),
115-
payment_method_data: {
116-
billing_details: {
117-
address: {
118-
country: fingerprint.country,
119-
postal_code: 'never'
120-
}
121-
}
122-
}
113+
return_url: redirectUrl('callback', id)
123114
}
124115
})
125116
if (error) throw error
@@ -253,7 +244,6 @@ const PaymentUpdatePage = () => {
253244
}}
254245
>
255246
<CheckoutForm
256-
fingerprint={fingerprint}
257247
id={query.id}
258248
paymentState={paymentState}
259249
setPaymentState={setPaymentState}

0 commit comments

Comments
 (0)