How do i pass quantity to checkout page?
Opened this issue · 3 comments
simpsoncarlos3 commented
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 commented
Checkout this page
https://docs.lemonsqueezy.com/api/checkouts#create-a-checkout
simpsoncarlos3 commented
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 commented
This isn't possible yet unfortunately. I'll have to see if I can squeeze it into #39.