Learn how to upgrade your Spark Stripe application.
2023-10-16
.
If you use the Stripe SDK directly, make sure to properly test your integration after updating.
cashier:webhook
command from your production environment to create a new webhook that matches Cashier’s Stripe API version. Of course, you should ensure the webhook’s URL corresponds to the URL where your application expects to receive webhook requests. By default, your application will receive Spark Stripe webhooks at /spark/webhook
:
STRIPE_WEBHOOK_SECRET
environment variable.STRIPE_WEBHOOK_SECRET
environment variable in production with the secret from the new webhook.receipts
table contains historical data that may be valuable for reference, it is no longer used and can be safely removed.
spark.php
config:
receipt_data
key in your application’s config/spark.php
configuration file to invoice_data
:
vendor:publish
Artisan command, you should rename the receipt.blade.php
template to invoice.blade.php
in your application’s resources/views/vendor/spark/mail
directory.
Lastly, create a migration to rename the user
table’s receipt_emails
column to invoice_emails
: