Trouble setting up a subscription with Laravel 5.8 / Cashier / Stripe

前端 未结 6 1798
暖寄归人
暖寄归人 2020-12-30 16:38

I followed this tutorial step by step: https://appdividend.com/2018/12/05/laravel-stripe-payment-gateway-integration-tutorial-with-example/

However, when I go to tes

6条回答
  •  被撕碎了的回忆
    2020-12-30 16:49

    Just in case, any one wants to know how i fixed this error for this particular tutorial :

    1) I downgraded cashier version

    composer remove laravel/cashier
    

    and then

    composer require "laravel/cashier":"~9.0"
    

    2) Then I started getting another error:

    no plan exists with the name (Basic/Professional)
    

    To fix this i created a new recurring product instead of one time product in stripe and updated plans table with this new plan entry

    3) Then I again got another error:

    no plan id exits
    

    To fix this i updated my plans tables strip_plan column entry with the plan id i got from step 2

    It's working for this particular tutorial, not sure about other versions

提交回复
热议问题