- Posts: 2
- Thank you received: 0
Email trigger on payment confirmation from paypal
15 years 5 months ago #13729
by traigo
Email trigger on payment confirmation from paypal was created by traigo
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.
15 years 5 months ago #13742
by nicolas
Replied by nicolas on topic Re: Email trigger on payment confirmation from paypal
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.
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.
15 years 5 months ago #13746
by traigo
Replied by traigo on topic Re: Email trigger on payment confirmation from paypal
Nevermind. I managed to find it.
Please Log in or Create an account to join the conversation.
Time to create page: 0.205 seconds