Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metadata missing with line item payments #619

Open
kschmott opened this issue Apr 1, 2024 · 4 comments
Open

Metadata missing with line item payments #619

kschmott opened this issue Apr 1, 2024 · 4 comments

Comments

@kschmott
Copy link

kschmott commented Apr 1, 2024

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:

  1. Create a checkout session with line items and metadata
  2. 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.

@justAdevTV
Copy link

justAdevTV commented Apr 10, 2024

I have the same issue. The metadata field in payments is {}

I see that it's trying to get the metadata here:

@bcanedo4
Copy link

I also have this issue.

@dylan0356
Copy link

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

@max-anders
Copy link

max-anders commented Dec 8, 2024

Same thing, it's a problem if I can't differentiate between the different subscription types in my backend. Can anyone advise me on how to do this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants