stripe-firebase-extensions
stripe-firebase-extensions copied to clipboard
Metadata missing with line item payments
Bug report
- Extension name: firestore-stripe-payments
Describe the bug
Not sure if this is intended behavior, but metadata for checkouts with line items is not transferred to a user's payments collection docs.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
- Create a checkout session with line items and metadata
- Observe that the metadata field is an empty map
Expected behavior
I would expect that the metadata from the checkout session be copied over to the payment doc like it does with single item payments.
I have the same issue. The metadata field in payments is {}
I see that it's trying to get the metadata here: https://github.com/invertase/stripe-firebase-extensions/blob/6c5966da3bab16d4a7d55116eb458d35b6c3e0bf/firestore-stripe-web-sdk/src/payment.ts#L301
I also have this issue.
Still having this issue
const docRef = await addDoc(checkoutSessionRef, { price: yearlyPriceID, success_url: window.location.origin + '/dashboard' , cancel_url: window.location.origin + '/upgrade', allow_promotion_codes: true, trial_period_days: 7, trial_from_plan: true, metadata: { userID: user.uid, }, });
Except the metadata is empty on the strip object in the logs