pjs32 Posted October 22, 2019 Share Posted October 22, 2019 Hi, We are finding clients not being able to update their card details - it shows Payment method failed to create successfully. Please try again. The logs show UserID => 1333 message => An unexpected error - No Stripe Payment Method found from token token => is their a fix? 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 22, 2019 WHMCS Support Manager Share Posted October 22, 2019 Hi @pjs32, Please view the Pay Method on the client's Summary tab, can you share the format of the token that is stored? 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted October 22, 2019 Author Share Posted October 22, 2019 There is no token stored ( ie. the client deleted the card details via his client area and when they try to enter new ones - they are unable to) 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 22, 2019 Share Posted October 22, 2019 @pjs32 are you using a custom client area theme at all? Does this issue occur on the "Six & Standard Cart" themes? 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted October 23, 2019 Author Share Posted October 23, 2019 13 hours ago, WHMCS ChrisD said: @pjs32 are you using a custom client area theme at all? Does this issue occur on the "Six & Standard Cart" themes? We are using a custom theme - but we have tested on six and the problem remains. logs show UserID => 1979 message => An unexpected error - No Stripe Payment Method found from token token => 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted October 24, 2019 Share Posted October 24, 2019 Does the user have any Pay methods on their profiles? 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted October 24, 2019 Author Share Posted October 24, 2019 8 hours ago, WHMCS ChrisD said: Does the user have any Pay methods on their profiles? No - they have no other payment methods. If they pay an invoice manually with their credit card, then the card is added ok - but when they go to delete the card, they get an error: [WHMCS Application] ERROR: Error: Call to undefined function WHMCS\Payment\PayMethod\run_hook() in /home/user/public_html/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/MigrationProcessor.php:0 Stack trace: #0 /home/user/public_html/vendor/whmcs/whmcs-foundation/lib/User/Client.php(0): WHMCS\Payment\PayMethod\MigrationProcessor->migrateForClient(Object(WHMCS\User\Client)) #1 /home/user/public_html/vendor/whmcs/whmcs-foundation/lib/Auth.php(0): WHMCS\User\Client->migratePaymentDetailsIfRequired() #2 /home/user/public_html/vendor/whmcs/whmcs-foundation/lib/Utility/Bootstrap/Application.php(0): WHMCS\Auth::persistClientSession() #3 /home/user/public_html/init.php(0): WHMCS\Utility\Bootstrap\Application::persistSession() #4 /home/user/public_html/index.php(0): unknown() #5 {main} {"exception":"[object] (Error(code: 0): Call to undefined function WHMCS\\Payment\\PayMethod\\run_hook() at /home/user/public_html/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/MigrationProcessor.php:0)"} [] 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Support Manager WHMCS John Posted October 24, 2019 WHMCS Support Manager Share Posted October 24, 2019 Regarding that Call to an undefined function error, this is discussed in the following thread: 0 Quote Link to comment Share on other sites More sharing options...
PhilipUK Posted February 25, 2020 Share Posted February 25, 2020 @pjs32 DId you ever manage to find a fix for this? I have the same issue and WHMCS support were unable to resolve it. 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted February 26, 2020 Share Posted February 26, 2020 19 hours ago, PhilipUK said: @pjs32 DId you ever manage to find a fix for this? I have the same issue and WHMCS support were unable to resolve it. This has been answered here 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted March 16, 2020 Author Share Posted March 16, 2020 On 2/26/2020 at 6:59 AM, pRieStaKos said: This has been answered here That doesn't fix the issue. We are still seeing this issue with version 7.9.2 0 Quote Link to comment Share on other sites More sharing options...
Nick A Posted March 18, 2020 Share Posted March 18, 2020 Same here. 7.9.2 0 Quote Link to comment Share on other sites More sharing options...
PhilipUK Posted March 18, 2020 Share Posted March 18, 2020 In our case it turned out to be a security header issue due to the way Stripe handles connections to avoid data hitting your server. If you have some additional security headers set, I'd suggest looking there for a solution. 0 Quote Link to comment Share on other sites More sharing options...
pjs32 Posted March 18, 2020 Author Share Posted March 18, 2020 2 hours ago, PhilipUK said: In our case it turned out to be a security header issue due to the way Stripe handles connections to avoid data hitting your server. If you have some additional security headers set, I'd suggest looking there for a solution. Thanks Phillip - do you know what header/s that was causing the issue? 0 Quote Link to comment Share on other sites More sharing options...
BlackhawkMSP Posted April 5, 2020 Share Posted April 5, 2020 On 3/18/2020 at 10:40 AM, pjs32 said: Thanks Phillip - do you know what header/s that was causing the issue? Been having this problem for months. Whmcs support can't find it. Stripe says nothing is hitting their servers. This is super lame. 0 Quote Link to comment Share on other sites More sharing options...
Gerardo Miranda Posted June 15, 2020 Share Posted June 15, 2020 Hello everyone Im facing the same usse somebody know how or what i have to do to fix the issue? Thank you in advanced for your help 0 Quote Link to comment Share on other sites More sharing options...
rainerstudios Posted November 13, 2020 Share Posted November 13, 2020 Was this ever fixed? Still facing the same issues with 8 release. It is really frustrating 0 Quote Link to comment Share on other sites More sharing options...
wired420 Posted November 20, 2020 Share Posted November 20, 2020 Just ran into this problem myself. After finding nothing but a bunch of confused people discussing it online from a google search, I researched the issue myself and found a solution. TL;DR In my case my Content-Security-Policy header was a little too strict. Needed to add https://js.stripe.com to the script policy, and https://api.stripe.com to the script and frame policies. 0 Quote Link to comment Share on other sites More sharing options...
Joseph T Posted November 28, 2020 Share Posted November 28, 2020 On 11/21/2020 at 1:24 AM, wired420 said: Just ran into this problem myself. After finding nothing but a bunch of confused people discussing it online from a google search, I researched the issue myself and found a solution. TL;DR In my case my Content-Security-Policy header was a little too strict. Needed to add https://js.stripe.com to the script policy, and https://api.stripe.com to the script and frame policies. Hi, how do you fix this? Where to you put https://js.stripe.com? 0 Quote Link to comment Share on other sites More sharing options...
wired420 Posted December 1, 2020 Share Posted December 1, 2020 (edited) On 11/28/2020 at 10:03 AM, Joseph T said: Hi, how do you fix this? Where to you put https://js.stripe.com? That would depend on one or many things. What web hosting software do you use? What web server? What kind of configuration setup do you use for that web server? That's not really a question someone else can answer. Probably better off asking google how to add a Content Security Policy header for your setup. Edited December 1, 2020 by wired420 0 Quote Link to comment Share on other sites More sharing options...
JimJ Posted December 21, 2020 Share Posted December 21, 2020 Did you ever get a fix for this guys? I have just updated to 8 for Stripe SCA etc and i get the same error client and admin side adding a card or making a payment with Stripe: An unexpected error - No Stripe Payment Method found from token Appreciate any help. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 22, 2020 Share Posted December 22, 2020 if it's applicable to your situation, the docs say... Quote An unexpected error - No Stripe Payment Method found from token This error indicates that some of the required data is not being transmitted to Stripe. This is usually due to outdated order form templates. Test this using the Twenty-One or Six system themes and the Standard Cart order form template. Contact our Support team if the issue persists. 0 Quote Link to comment Share on other sites More sharing options...
JimJ Posted December 22, 2020 Share Posted December 22, 2020 Thanks but i am testing with those templates and have not changed them. Issue still persists. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted December 22, 2020 Share Posted December 22, 2020 27 minutes ago, JimJ said: Thanks but i am testing with those templates and have not changed them. Issue still persists. then I think you should follow the last line - contacting Support direct... posting here won't do that (unless you pretend this is just an 8.1 issue and post in the beta forums) - even then, there's no guarantees). 0 Quote Link to comment Share on other sites More sharing options...
JimJ Posted January 1, 2021 Share Posted January 1, 2021 Support were quick and helpful. If anyone else gets this issue check your modules. I had an outdated module (Tawk.to) causing a javascript conflict with Stripe. 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.