URL if payment was successful

  • Posts: 97
  • Thank you received: 0
9 years 10 months ago #187558

-- HikaShop version -- : 2.3.5
-- Joomla version -- : 3.3.6

I write a payment gateway, everything is ok. i send to bank correct data with price etc... i have to tell the bank url if payment was successful to update order status, how can i get this url? This is my first payment plugin...

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

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #187568

Hi,

Did you read the content of our sample payment plugin ?
github.com/HikaShop/sample-payment-plugin

I don't know how your payment is working so I don't know if you're talking about the "notify url" (for server-to-server validation) or else.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

  • Posts: 97
  • Thank you received: 0
9 years 10 months ago #187625

Yes, i read it.

In the paypal plugin i see this part of code in the function onAfterOrderConfirm():

$notify_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment='.$this->name.'&tmpl=component&lang='.$this->locale . $this->url_itemid;
		$return_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id='.$order->order_id . $this->url_itemid;
		$cancel_url = HIKASHOP_LIVE.'index.php?option=com_hikashop&ctrl=order&task=cancel_order&order_id='.$order->order_id . $this->url_itemid;

Then in the variable $vars:
'return' => $return_url,
			'notify_url' => $notify_url,
			'cancel_return' => $cancel_url,

Trough form myplugin_end.php i tell the gateway provider follow data:
Ordernumber, language, currency, name, clientmail, amount

but i don't have any of this params in the documentation of my gateway page. I have to tell the gateway provider following url's:
1. If the order is successful, for example with content "Thanke you for your order..."
2. If the order is canceled "Error page..."

Are 2 urls this urls?

Attachments:
Last edit: 9 years 10 months ago by shpuser.

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

  • Posts: 12953
  • Thank you received: 1778
9 years 10 months ago #187642

Hello,
You should always use the 'notify_url' which will call the "OnPaymentNotification" function of your payment plugin, and then do what you have to do through that function (confirm your order/redirect your users/...).

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

  • Posts: 97
  • Thank you received: 0
9 years 10 months ago #187775

Hi,

sorry for this question but i must be sure... if i call this url directly in browser, then i see blank screen, it is ok?

Thanke you...

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

  • Posts: 13201
  • Thank you received: 2322
9 years 10 months ago #187783

Hi,

Yes, it's ok.

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

Time to create page: 0.091 seconds
Powered by Kunena Forum