Skip to content

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

Open
@jasan-s

Description

@jasan-s

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions