Email trigger on payment confirmation from paypal

  • Posts: 2
  • Thank you received: 0
13 years 7 months ago #13729

I'm a Java developer who has been thrown into joomla and hikashop to fix a problem. Never touched either or PHP even, but I can follow most languages. I'm searching through to figure out how to accomplish this, but I ask for help please! There's a cart, when it's submitted to paypal for payment, the amounts are correct and once payment is made, the system registers the payment confirmation. It seems that there's a "return to ..." link on the paypal site that actually triggers the email to send the code to the customer. If they don't click the link, the email isn't generated. Also, there's a shop field that doesn't populate unless they click the link. I need to generate the email when payment confirmation is received from paypal and also populate that field. Any help please?

Please Log in or Create an account to join the conversation.

  • Posts: 82864
  • Thank you received: 13372
  • MODERATOR
13 years 7 months ago #13742

Hi,

The return link at the end of the transaction is independent from the payment notification from paypal. When paypal notifies hikashop that a payment has been made, hikashop validates the order and send the confirmation email. If that doesn't work, it's either that the hosting is blocking outgoing connections (hikashop needs to confirm with the paypal server the notification), or that the "allow notification" option of the paypal plugin is turned off, or that there is something on the website which removes the POST (via a redirect sometimes) of the paypal notification.

All of that happens in the file plugins/hikashoppayment/paypal.php in the onPaymentNotification so you can put traces in there if you want.

I don't know about such shop field... In HikaShop Business, you can configure custom fields of the table order via the menu Display->Custom fields. These fields are available to the user during the checkout and added to the order automatically. There is nothing to do.

Please Log in or Create an account to join the conversation.

  • Posts: 2
  • Thank you received: 0
13 years 7 months ago #13746

Nevermind. I managed to find it.

Please Log in or Create an account to join the conversation.

Time to create page: 0.056 seconds
Powered by Kunena Forum