Jump to content

API addinvoicepayment date issue


lysenshi

Recommended Posts

Hi,

I am calling the API function: addinvoicepayment in my code, like this:

 

$postfields["username"] = $username;
$postfields["password"] = md5($password);
$postfields["action"] = "addinvoicepayment"; #action performed by the API:Functions
$postfields["invoiceid"]=$invoiceid;
$postfields["userid"] = $userid;
$postfields["date"] = date("Ymd");
//$postfields["date"] = date("Y-m-d"); //This one used also
$postfields["gateway"] = $paymentMethod;
$postfields["noemail"] = true;
$postfields["amount"] =$price;

 

It works just fine, the only issue is the date, what is the format that should be passed?

date("Y-m-d") will give me 00/00/0000 in the Transactions

and date("Ymd"); will give 20/00/2008 when the date is "8 March 2010"?

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