Hi Alex,
I’ve noticed here on codecourse you manage subscription invoices using quaderno, I believe it is useful for tax purposes. Any plan to make a video and add it to your subscription course on how implement quaderno with stripe and Laravel cashier?
Many thanks Vincenzo
Hey Vincenzo. Yes, you're right, it's for VAT purposes.
To be honest I don't do much at all, ha. Quaderno automatically hooks into Stripe's webhooks to receive each payment and calculates everything.
The only thing I do is send across the IP address of the user (required for evidence purposes) in the payload and enable tax_id_collection
when setting up the subscription, like this:
$payload = [
'success_url' => 'ROUTE_HERE',
'cancel_url' => 'ROUTE_HERE',
[
'metadata' => [
'ip_address' => $request->ip(),
],
'tax_id_collection' => [
'enabled' => true,
],
]
];
Other than that, Quaderno handles the rest once Stripe is linked.
Let me know if you need any more info though!