lmsqueezy/laravel

How do i pass quantity to checkout page?

Opened this issue · 3 comments

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);

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
]
]]);

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