Jump to content

$ispaid = NULL in ShoppingCartCheckoutCompletePage hook


zanko

Recommended Posts

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

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