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

前端 未结 6 1775
暖寄归人
暖寄归人 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:47

    Downgrade your Cashier version to 9.x.

    On Cashier 10.x's create() method accepts a paymentMethod as the first parameter.

    On Cashier 9.x's create() method accepts a stripeToken as the first parameter.

    OR

    Upgrade your frontend JS to work with the Payment Intents API. But this will be a problem if you're planning to work with the new Stripe Checkout (as shown here - https://github.com/laravel/cashier/issues/637)

    My suggestion is to downgrade the Cashier version until it fully supports.

提交回复
热议问题