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
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:
card[token](see https://stripe.com/docs/api/payment_methods/create#create_payment_method-card)createPaymentMethodfunction instead ofcreateToken. You can see the differences between the two here: https://stripe.com/docs/payments/payment-intents/migration-synchronous#elements-step-1