Jump to content

zanko

Member
  • Posts

    5
  • Joined

  • Last visited

Everything posted by zanko

  1. Hi, I'm working on a provisioning module which rely on information chosen by the client during the order. I see that the custom fields are in the tblcustomfields and tblcustomfieldsvalues, but I don't know how they relate to tblhosting or tblorder (or similar). For example, when viewing the customers order, whmcs does 'SELECT value FROM tblcustomfieldsvalues WHERE fieldid='1' AND relid='2''. I can't find any documentation reference that explains the "relid", so I can properly tie an order with the choosen custom field values chosen by the client. Can you please refer me to documentation that explains the connection, or if simple just tell me how it works?
  2. I wrote a simple PayEx gateway module that works fine, but when using the hook ShoppingCartCheckoutCompletePage $ispaid = NULL, although the database has it right; | 16 | 4 | | 2013-06-10 | 2013-06-17 | 2013-06-10 20:15:48 | 19.95 | 0.00 | 0.00 | 0.00 | 19.95 | 0.00 | 0.00 | Paid | payex | | Part of the var_dump() of $vars within the hook: ["orderid"]=> int(16) ["ordernumber"]=> string(10) "5618747162" ["invoiceid"]=> string(2) "16" ["ispaid"]=> NULL ["amount"]=> string(5) "19.95" ["paymentmethod"]=> string(5) "payex" Not sure if I'm supposed to set this in the callback or not, but I pretty much do exactly as the very nice gateway module example; if($transactionStatus == '0' || $transactionStatus == '6') { addInvoicePayment($invoiceid,$transid,$amount,$fee,$gatewaymodule); # Apply Payment to Invoice: invoiceid, transactionid, amount paid, fees, modulename <---- Any advice appreciated, Zanko
  3. Hi, Im looking into the possibility of automatically provision a virtual machine when a new order has been created, and the order is paid. Im unsure if Im correct, but after reading the developer documentation I think that "ShoppingCartCheckoutCompletePage" would be the right place. Unsure if it will cover events such as if someone create an order, but pay later etc. Can anyone share their experience on this?
  4. Hi, I just downloaded the Payment module dev kit but I can't get it to be listed in the payment gateway drop down in admin area. I changed all "template_" named functions to "payex_", additionally I set the name to be "payex"; function payex_config() { $configarray = array( "FriendlyName" => array("Type" => "System", "Value"=>"payex"), <etc> .. The file(s, plural actually, since there's the callback module to) was placed in the modules/gateways and modules/gateway/callbacks respectively, with correct owner and same permissions as all other modules (640). Am I missing something obvious? As I understand the pdf in the PaymentDevKit I should be able to activate it (and thus, it should be listed). Thanks,
×
×
  • 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