Jump to content
Burti

Card number is required'

Recommended Posts

exception 'RuntimeException' with message 'Card number is required' in /home/xxxx/public_html/vendor/whmcs/whmcs-foundation/lib/Payment/PayMethod/Traits/CreditCardDetailsTrait.php:0
Stack trace:
#0 /home/snpx31olat/public_html/includes/ccfunctions.php(0): WHMCS\Payment\PayMethod\Adapter\CreditCard->validateRequiredValuesPreSave()
#1 /home/snpx31olat/public_html/creditcard.php(0): updateCCDetails(6108, '', '4506 xxxx xxxx ...', 'xxx', 'xxxxx', '', '', '', '', 'ziraat_BurtiNET', NULL, '', '1095')
#2 {main}

 

When I try to pay on WHMCS we got this error... WHMCS 7.8.3 - Six Template..

 

Thanks @John

Share this post


Link to post
Share on other sites

Hi @Burti,

Which payment gateway are you using please? From that output "ziraat_BurtiNET" looks like a custom gateway name.

The error suggests that the credit card number is not being passed in the module's capture function in the expected way.

In which case, please ensure the module is coded in accordance with our develop documentation and samples at https://developers.whmcs.com/payment-gateways/

Share this post


Link to post
Share on other sites
On 10/6/2019 at 2:33 PM, WHMCS John said:

Hi @Burti,

Which payment gateway are you using please? From that output "ziraat_BurtiNET" looks like a custom gateway name.

The error suggests that the credit card number is not being passed in the module's capture function in the expected way.

In which case, please ensure the module is coded in accordance with our develop documentation and samples at https://developers.whmcs.com/payment-gateways/

 

Okay John let me help please. Download original files from github: https://github.com/WHMCS/sample-merchant-gateway and upload on v7.8.3. Do not change any code. And test it. You can see error.

Regards.

 

First:

Please Delete Encrypted Credit Card Data on system after try it.

 

Like this: http://prntscr.com/phgoqf

 

 

I believe my code is clear and same coding on https://github.com/WHMCS/sample-merchant-gateway . You know me Im developing modules since 2012. I believe a problem on here.

Edited by Burti

Share this post


Link to post
Share on other sites

I've had the same problem since upgrade to 7.8.2

It goes through if 'Save card for faster checkout in future' option is disabled on CC form.

Share this post


Link to post
Share on other sites

Hi @Burti

Quote

Download original files from github: https://github.com/WHMCS/sample-merchant-gateway and upload on v7.8.3. Do not change any code. And test it. You can see error.

I have attempted to replicate this issue, however I am unable to reproduce the described error on my end. Please see my screen recording here: https://www.dropbox.com/s/ziok7utphkn790l/2019-10-16_18-04-45.MP4?dl=0

The reason this code may have worked in the past but not in 7.8 is that due to the more structured nature of the Pay Methods, the requirements and design schema of module is more strictly adhered to in order to use the correct Pay Method or potentially multiple available options.

 

Share this post


Link to post
Share on other sites
11 hours ago, WHMCS SamP said:

Hi @Burti

I have attempted to replicate this issue, however I am unable to reproduce the described error on my end. Please see my screen recording here: https://www.dropbox.com/s/ziok7utphkn790l/2019-10-16_18-04-45.MP4?dl=0

The reason this code may have worked in the past but not in 7.8 is that due to the more structured nature of the Pay Methods, the requirements and design schema of module is more strictly adhered to in order to use the correct Pay Method or potentially multiple available options.

 

This module was working before 2 version like 7.8.1. I sent my code on ticket SJQ-717658

Share this post


Link to post
Share on other sites

hi,

Is there any improvement regarding this problem. i'm having the same problem but i couldn't solve it

Share this post


Link to post
Share on other sites

Hi @BurakSen,

We do have a hotfix which addresses a number of payment method issues in 7.8.3 - 

To begin with, can you please apply the hot fix and see if it corrects the problem?

To apply the fix, download the zip file from the link above. Extract the contents and upload to your WHMCS directory overwriting the existing files.

Please take appropriate file/database backups as necessary before applying.

Share this post


Link to post
Share on other sites
3 hours ago, WHMCS SamP said:

Merhaba @ BurakSen ,

7.8.3'te bir dizi ödeme yöntemi sorununu gideren bir düzeltmemiz var - 

Başlamak için, lütfen düzeltmeyi uygulayıp sorunu çözüp çözmediğine bakabilir misiniz?

Düzeltmeyi uygulamak için zip dosyasını yukarıdaki linkten indirin. İçeriği çıkarın ve mevcut dosyaların üzerine yazarak WHMCS dizininize yükleyin.

Lütfen başvuru yapmadan önce uygun dosya / veritabanı yedeklerini alın.

Hi  again

I've applied this fix before, but it didn't fix my problem

Share this post


Link to post
Share on other sites

@BurakSen what payment gateway are you making use of?  Do you have a custom theme and does the issue occur with the default Six & Standard Cart Templates

Share this post


Link to post
Share on other sites

i have six template and standard cart templates.

the credit card module works in older whmcs versions, but not in newer versions. module is running if the option to dont  save credit card information is checked

Share this post


Link to post
Share on other sites

I have the same error with PayU gateway.

Already apply patch to hotfix and issue persist.

Share this post


Link to post
Share on other sites

@BurakSen We did make a number of changes to payment gateways in 7.8 can you please confirm the payment gateway you are using?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Similar Content

    • By Luthersites
      When I try to do the update I get the following error:
      Unable to complete incremental updates: Unable to import the 7.8.0 Alpha1 database file. Unable to import /home/lutherh/public_html/resources/sql/upgrade780alpha1.sql: SQLSTATE[42000]: Syntax error or access violation: 1118 Row size too large. The maximum row size for the used table type, not counting BLOBs, is 8126. This includes storage overhead, check the manual. You have to change some columns to TEXT or BLOBs
      I can't find anything on your site that talks about this error, and I find it odd that the database has incorrectly set column types.  Please advise as to what I need to do.
    • By noahesbjerg
      Hi,
       
      So, I just got a stripe account. And updated to the newest WHMCS version. But it seems that the new version completely broke the stripe module. For an example, if I try to delete a payment method I get this: https://i.imgur.com/xjtQkPn.png . And trying to add a new payment method results in this " Payment method failed to create successfully. Please try again.". I am using a custom theme, but it's also broken with the default one.
    • By loopmail
      Looking around and some clients have enabled 2fa for the primary user, but there seem to be no details for it on the contacts page. is this not a feature on offer to contacts or a way for administrators to see the status/clear the status for contacts?

       
    • By zarvis
      Hi,
       
      From today morning the Invoices are not being updated, and the API callback is getting failed for the Coingate and perfect money modules.
      Anyone else facing similar issue?
       
      Regards
      Chandrakant
    • By pushpendra
      After upgrading to WHMCS 7.8, the domain search is not working.
      When we search for domain, Its not showing search result. Its just showing suggestions. And Suggested Domains are also showing taken.
      https://hosting.india.to/clients/cart.php?a=add&domain=register
  • Recently Browsing   0 members

    No registered users viewing this page.

×

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated