Skip to main content

URL if payment was successful

More
11 years 8 months ago #187558 by shpuser
-- 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.

More
11 years 8 months ago #187568 by Jerome
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.

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

More
11 years 8 months ago - 11 years 8 months ago #187625 by shpuser
Yes, i read it.

In the paypal plugin i see this part of code in the function onAfterOrderConfirm():
Code:
$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:
Code:
'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?

Last edit: 11 years 8 months ago by shpuser.

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

More
11 years 8 months ago #187642 by Mohamed Thelji
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.

More
11 years 8 months ago #187775 by shpuser
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.

More
11 years 8 months ago #187783 by Xavier
Hi,

Yes, it's ok.

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

Time to create page: 0.159 seconds
Powered by Kunena Forum