custom payment plugin:define return and notify url

  • Posts: 19
  • Thank you received: 0
10 years 10 months ago #138189

Hi, setting up a custom payment plugin, my payment gateway has 3 fields for payment attempts results:

success URL
fail URL
Notify URL

this is how i set it up:
success URL: "mysite.com/index.php?option=com_hikashop&view=checkout&layout=after_end"
fail URL: "mysite.com/index.php?option=com_hikashop&view=checkout&layout=after_end"
Notify URL: "mysite.com/index.php?option=com_hikashop&ctrl=checkout&task=notify¬if_payment=ogone&tmpl=component&lang=il"

is this correct ?

now, after a successful payment im redirected back and get the message: "thank you for your purchase", but the order is not confirmed and no confirmation email is sent.

im guessing the "Notify URL" is where the success/fail order_number parameters are received to complete the process.
what parameters need to be posted back ? and example or documentation on this ?

Thank you

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

  • Posts: 82868
  • Thank you received: 13377
  • MODERATOR
10 years 10 months ago #138232

Hi,

In the "notif_payment" parameter of your notify URL, you need to enter the name of the plugin which probably is not ogone.
Also, that URL needs to be available by anyone else (so your website needs to be online, the website shoudl not be in maintenance, and not protected by a htaccess authentication, and the menus should be accessible by all the uer groups on your website.
Then, the payment gateway will be able to send his payment notification to that URL and if you echo some text at the beginning of your plugin's onPaymentNotification function and then return, you should see it in the payment log file available in the configuration of HikaShop.

The following user(s) said Thank You: buzibuzi

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

Time to create page: 0.059 seconds
Powered by Kunena Forum