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

Error: missing required param line_items[0][currency]. #567

Open
jasan-s opened this issue Oct 9, 2023 · 0 comments · May be fixed by #575
Open

Error: missing required param line_items[0][currency]. #567

jasan-s opened this issue Oct 9, 2023 · 0 comments · May be fixed by #575
Assignees
Labels

Comments

@jasan-s
Copy link

jasan-s commented Oct 9, 2023

Bug report

  • Extension name: [e.g. firestore-stripe-payments]

Describe the bug

I wanted to setup payment for user to charge at future or setup subscription in future. I tried to create a checkout session doc like so:

			const checkoutSessionObject = {
				client: 'web',
				mode: 'setup',
				success_url: `${window.location.origin}/account/?setup_action=success`,
				cancel_url: `${window.location.origin}/account/?setup_action=cancel`,
				metadata: {
					email: user.email,
					uid: user.uid,
				},
			}

but i keep getting the following error: Error: missing required param line_items[0][currency].

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

Expected behavior

I should be able to create a session to let users add payment method. without me charging them right away.

Screenshots

If applicable, add screenshots to help explain your problem.

System information

Chrome browser Mac OS

Additional context

Add any other context about the problem here.

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