Joomla 3.5
Virtuemart 3.2
Hi all - How to make sure plgVmOnPaymentNotification() is fired
We are posting IPN to the cart want to make sure payment response has been received
How do I make sure its received to the cart ?
These are the parameters we are posting
amount=2.35
cancel_url= ****
currency=USD
fee=0.17
hash=a364283a7989f8817b6de90133f9b3d4
item_id=Order: ****
memo=Order: ****
merchantAccount=***
notify_url=****
payerAccount=****
payerEmail=***@gmail.com
return_url=****
status=COMPLETE
testmode=ON
tr_id=****
user1=PKYS029
turn on logging of what ever payment method your directing it at pm=(payment method id)
if no logging then just echo out the function in the payment plugin
For the echo you may use the vmdebug, with echo enabled VmConfig::$echoDebug = 1; or so.
Thanks, I got it to work, I want to use this stuff here before updating the order status
$secondary_password = $this->sci_password;
$pass1 = md5($secondary_password.'s+E_a*'); //encryption for db
$calchash = MD5($tr_id.":".MD5($pass1).":".$amount.":".$merchantAccount.":".$payerAccount);
Need to get the $secondary_password = $this->sci_password; values from paymentmodule cofiguration area
Not sure what synatx to be used here to get the values here :(
Any updates guys !!?
First, do not use your own encryption. We have a class for that. Except you really need only a md5 and no decoding. I think you try to use the wrong trigger, which is triggered for the email, but not for the update order status itself. There is another trigger for it. onUpdateOrderStatus or so