I have the following FEATURE REQUEST / IMPROVEMENT for \Stripe\Checkout\Session::create
Currently if you try to create a Checkout Session and forward to Stripe site for processing, it will throw an exception if any of the included line_items have a $0.00 amount.
When creating a Checkout Session (\Stripe\Checkout\Session::create), if
the TOTAL of ALL line items being added meets the minimum charge
requirement, then an amount of $0 for some line items should not throw
an exception, and it should be allowed.
EXAMPLE:
Qty 1 x Adult Ticket @ $10.00
Qty 1 x Child Ticket (age 6+) @ $5.00
Qty 1 x Child Ticket (under age 6) @ $0.00 (FREE)
Since the TOTAL of ALL line items in this case would be $15.00 USD, which is
greater than the minimum charge amount of $0.50 USD, all three of these
line items should show up on the checkout page, including the FREE item
at $0.00.
'line_items' = [
[ "name"=>"Adult Ticket", "description"=>"Full price adult ticket", "amount"=>"1000", "currency"=>"usd", "quantity"=>"1"
],
[ "name"=>"Child Ticket (age 6+)", "description"=>"Full price child ticket", "amount"=>"500", "currency"=>"usd", "quantity"=>"1"
],
[ "name"=>"Child Ticket (under age 6)", "description"=>"Free child ticket", "amount"=>"0", "currency"=>"usd",
"quantity"=>"1" ]
];
Thanks