News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to make sure plgVmOnPaymentNotification() is fired

Started by ersiranjeevi, August 22, 2017, 16:11:18 PM

Previous topic - Next topic

ersiranjeevi


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

GJC Web Design

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
GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

Milbo

For the echo you may use the vmdebug, with echo enabled VmConfig::$echoDebug = 1; or so.
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/

ersiranjeevi

#3
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 :(


Milbo

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
Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/