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

How do i pass quantity to checkout page? #66

Open
simpsoncarlos3 opened this issue Dec 10, 2023 · 3 comments
Open

How do i pass quantity to checkout page? #66

simpsoncarlos3 opened this issue Dec 10, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@simpsoncarlos3
Copy link

Hello there

thanks for making this package.

I'm struggling to pass quantity here.
how do i do that?

$checkout = $request->user()->checkout($this->variant);

@MaheKarim
Copy link

@simpsoncarlos3
Copy link
Author

according to docs i need to send this
variant_quantities - A list containing quantity data objects

but the problem is how do i send it using this lmsqueezy/laravel package?

i tried this but didn't work
$request->user()->checkout($this->variant, ['variant_quantities' => [
[
'variant_id' => $this->variant,
'quantity' => $this->unit
]
]]);

@driesvints
Copy link
Collaborator

This isn't possible yet unfortunately. I'll have to see if I can squeeze it into #39.

@driesvints driesvints added the enhancement New feature or request label May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants