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

Webhook controller functionality for customer.subscription.deleted fails #505

Closed
ghost opened this issue Apr 9, 2018 · 1 comment
Closed

Comments

@ghost
Copy link

ghost commented Apr 9, 2018

From my testing, it appears that this will fail:

    /**
     * Handle a Stripe webhook call.
     *
     * @param  \Illuminate\Http\Request  $request
     * @return \Symfony\Component\HttpFoundation\Response
     */
    public function handleWebhook(Request $request)
    {
        ...
        $this->eventExistsOnStripe("customer.subscription.deleted");
    }

It may be related to recent major updates to Stripe's platform (Billing product). Perhaps updating the underlying stripe-php package will help?

@ghost ghost mentioned this issue Apr 16, 2018
@ghost
Copy link
Author

ghost commented Apr 21, 2018

This can be fixed by ensuring that you have this in your testing environment's env file:

CASHIER_ENV=testing

@ghost ghost closed this as completed Apr 21, 2018
This issue was closed.
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

0 participants