Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent Sync From Deleting Existing Metadata #1565

Merged
merged 1 commit into from
Sep 8, 2023

Conversation

toddstoker
Copy link
Contributor

When your Billable does not overload stripeMetadata() and a billable is synced, any existing metadata on the Stripe customer is lost.

The default behavior should be to preserve the existing metadata -- an empty array will accomplish this.

Deleting existing Stripe customer metadata is potentially devastating if you're using Stripe as a store for data that isn't persisted to your billable model.

When your Billable does not overload stripeMetaData() and a billable is synced, any existing metadata on the Stripe customer is lost. 

The default behavior should be to preserve the existing metadata -- an empty array will accomplish this.
@driesvints driesvints merged commit 4d597b5 into laravel:14.x Sep 8, 2023
@driesvints
Copy link
Member

Thanks @toddstoker. That's a good spot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants