-2

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

Tech User
  • 1
  • 3

1 Answers1

1

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:

karbi
  • 1,770
  • 5
  • 8
  • sir actually when I'm degrade the version of Laravel 7 to 5.8 it's works totally fine without any error – Tech User Mar 01 '21 at 10:09
  • Yes, and with that upgrade there were likely some breaking changes that requires you to change your integration. See https://github.com/laravel/cashier-stripe/blob/master/UPGRADE.md#cards-and-payment-methods – karbi Mar 01 '21 at 17:20
  • yes sir I update the changes as you tell me but having same error. – Tech User Mar 01 '21 at 18:46