feat(payment-stripe): merge custom metadata along with session_id on payment initiation (#13801)
* Merge custom metadata along with session_id on payment initiation * update changeset
This commit is contained in:
5
.changeset/cool-brooms-travel.md
Normal file
5
.changeset/cool-brooms-travel.md
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
---
|
||||||
|
"@medusajs/payment-stripe": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
feat(payment-stripe): merge custom metadata along with session_id on payment initiation
|
||||||
@@ -248,7 +248,7 @@ abstract class StripeBase extends AbstractPaymentProvider<StripeOptions> {
|
|||||||
const intentRequest: Stripe.PaymentIntentCreateParams = {
|
const intentRequest: Stripe.PaymentIntentCreateParams = {
|
||||||
amount: getSmallestUnit(amount, currency_code),
|
amount: getSmallestUnit(amount, currency_code),
|
||||||
currency: currency_code,
|
currency: currency_code,
|
||||||
metadata: { session_id: data?.session_id as string },
|
metadata: { ...(data?.metadata ?? {}), session_id: data?.session_id as string },
|
||||||
...additionalParameters,
|
...additionalParameters,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user