lysenshi Posted March 8, 2010 Share Posted March 8, 2010 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"? 0 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.