when I am going to update Laravel 5.8 to 7 and update dependencies like cashier, Laravel/spark-Aurelius . it's complete update but after registration with subcription it's shows an error No such PaymentMethod: 'tok_1IPAGM4unAps2Hiagy7H655b' .

this comes back with an paymentMethod: tak_

but i get an exception like below

https://i.stack.imgur.com/tLhPe.png

1

There are 1 best solutions below

3
karbi On

tok_1IPAGM4unAps2Hiagy7H655b is a Token, not a Payment Method. If Laravel Cashier is expecting a Payment Method, you'll need to change your code to either: