Jump to content

[NOT A BUG] API AddInvoicePayment not adding date to the transaction


blymp

Recommended Posts

Hi,

 

I did some tests and I could not make the API function: addinvoicepayment add the date to my transactions with the function: $postfields["date"] = "00/00/0000";

 

As soon I overwrite the previous WHMCS version file "addinvoicepayment.php" to the API folder, it worked, so I assume that the addinvoicepayment.php in this last upgrade is not working properly.

 

I also would like to know if the last version is different from the version 4.3.1 and if using the addinvoicepayment.php 4.3.1 would affect the proper functioning of WHMCS 4.4.1.

 

Thank you.

Link to comment
Share on other sites

Indeed Matt, I just found the part in the "F2b" gateway callback where they import the date from their system invoice and it was set to:

 

$data_pagamento = $day . "/" . $month . "/" . $year;

 

And I just correct it as you said:

 

$data_pagamento = $year . "-" . $month . "-" . $day;

 

And now it is working properly!

 

This new version of WHMCS deals with the date format differently from the previous versions?

 

Thanks for the precise information, since F2b doesn't correct it I had to do it! All day long investigating this issue :/

 

Regards,

Daniel M.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

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