Closed enricobono closed 1 year ago
I noticed this does not happen if I comment the line:
Cashier::calculateTaxes();
in the AppServiceProvider::boot()
method.
Spark Stripe does not support Stripe Tax unfortunately so you cannot use that. Setup mode is correct when handling adding payment methods.
Cashier Stripe Version
14.12.8
Laravel Version
10.26.2
PHP Version
8.2.8
Database Driver & Version
No response
Description
I'm using Laravel Spark (Spark Stripe, v4.2.3). I have a customer with an active subscription since months. Now his card expired, so he's trying to add a new card. When the user presses the "Add Payment Method" button, Laravel shows the following error message:
On the logs I can see:
From Stripe I can see my app is trying to perform a POST call to this endpoint:
POST /v1/checkout/sessions
with the following body:and Stripe returns the following response:
The POST call is using
mode=setup
and"automatic_tax": {"enabled": "true"}
, and it seems we can not. Maybe Cashier should passmode=subscription
? (Cfr: https://stripe.com/docs/api/checkout/sessions/create?lang=php)Steps To Reproduce
GIVEN a customer card expired WHEN the user presses the "Add Payment Method" button THEN Laravel displays the following error message:
AND the log has the following message: