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

Call to undefined method Stripe\UsageRecord::create() #1127

Closed
rxng opened this issue May 21, 2021 · 1 comment
Closed

Call to undefined method Stripe\UsageRecord::create() #1127

rxng opened this issue May 21, 2021 · 1 comment

Comments

@rxng
Copy link

rxng commented May 21, 2021

I am calling this via \Stripe\UsageRecord::create

and it had always worked before (haven't tested for some time).

Now it just returns Call to undefined method Stripe\UsageRecord::create()

I can't find any information on why this suddenly stops working?

@richardm-stripe
Copy link
Contributor

richardm-stripe commented May 21, 2021

Hello @rxng,

\Stripe\UsageRecord::create() was removed in Sep 2019 with the release of stripe-php 7.0.0.

You can use \Stripe\SubscriptionItem::createUsageRecord instead. See the migration guide

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

No branches or pull requests

3 participants