[Skip to main content](#vessel-content)

#   SagePay South Africa / Netcash - Custom Plugin

##

- **[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")**
- [![nowherenowhere's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4234.png)](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile") Topic Author
- [ Offline](/forum/user/4234-nowherenowhere)

Less More

- Posts: 152
- Thank you received: 1
-
- [](http://www.originate.co.za)
-

12 years 1 month ago [\#173018](#173018) by [nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")  *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#173018 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")* was created by *[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")*

-- HikaShop version -- : 2.3.3
-- Joomla version -- : 3.3

Hey Guys,

Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?

---

Believe in Better

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 1 month ago -  12 years 1 month ago [\#173021](#173021) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#173021 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hello,
1.
Regarding the "service key generated in the merchant account" the solution will just be to directly create an option through your SagePay configuration page.
2.
For the Accept and Decline url, you can also create option or use a code like this to directly form the accept/decline urls : Code:

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

You'll find that example on the Paypal.php file of the PayPal plugin.

Last edit: 12 years 1 month ago by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")**
- [![nowherenowhere's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4234.png)](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile") Topic Author
- [ Offline](/forum/user/4234-nowherenowhere)

Less More

- Posts: 152
- Thank you received: 1
-
- [](http://www.originate.co.za)
-

12 years 1 month ago -  12 years 1 month ago [\#173347](#173347) by [nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")  Replied by *[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#173347 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

It seems I need to supply the accept and decline URLs to sagepay. Here is what they have said on their site:

Specify the payment options you require on application for the service. (Additional payment options can be added or removed at any time by request via your account manager)
Sage Pay will issue a Pay Now service key and make the payment options available on your Sage Connect profile.
Log in to your Sage Pay account and set the Sage connect profile.
Develop the form POST on your system to send the payment instruction to [ paynow.sagepay.co.za/site/paynow.aspx](https://paynow.sagepay.co.za/site/paynow.aspx)
Develop the Approve and Decline URLs on your system.
A logo pack with the “Pay Now Button” is available from Sage Pay Marketing – please request this from marketing@sagepay.co.za

So for me it means I need to know what those URLs will look like. For example
Accept = [ www.mysite.co.za/accept-url.html](http://www.mysite.co.za/accept-url.html)
Decline = [ www.mysite.co.za/decline-url.html](http://www.mysite.co.za/decline-url.html)

Could you help me out with something like that?

---

Believe in Better

Last edit: 12 years 1 month ago by [nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 1 month ago [\#173350](#173350) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#173350 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi,

Both should be:
[ www.mysite.co.za/index.php?option=com\_hi...t&amp;lang=en&amp;Itemid=XXX](http://www.mysite.co.za/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=sagepay&tmpl=component&lang=en&Itemid=XXX) where XXX is the id of the menu item on the checkout.
Then, at the end of the onPaymentNotification function of your plugin you probably need to redirect the customer to the thank you URL: [ www.mysite.co.za/index.php?option=com\_hi...er\_id=YYY&amp;Itemid=XXX](http://www.mysite.co.za/index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=YYY&Itemid=XXX) where XXX is the id of the menu item on the checkout and YYY the order_id of the current order.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")**
- [![nowherenowhere's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4234.png)](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile") Topic Author
- [ Offline](/forum/user/4234-nowherenowhere)

Less More

- Posts: 152
- Thank you received: 1
-
- [](http://www.originate.co.za)
-

12 years 1 month ago [\#173396](#173396) by [nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")  Replied by *[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#173396 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi Nicolas,

Ah okay, is this like if I say force menu on checkout? and then go menu manager &gt; menu &gt; new item (any type) and then in hika config set that item as the forced menu item . then notify the payment gateway peeps that

[ www.mysite.co.za/index.php?option=com\_hi...t&amp;lang=en&amp;Itemid=XXX](http://www.mysite.co.za/index.php?option=com_hi...t&lang=en&Itemid=XXX) where XXX is the id of the menu item on the checkout. (my new item (any type) ID)

Okay I think that makes sense let me try it

Tx

---

Believe in Better

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")**
- [![nowherenowhere's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4234.png)](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile") Topic Author
- [ Offline](/forum/user/4234-nowherenowhere)

Less More

- Posts: 152
- Thank you received: 1
-
- [](http://www.originate.co.za)
-

12 years 3 weeks ago [\#173727](#173727) by [nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")  Replied by *[nowherenowhere](/forum/user/4234-nowherenowhere "View nowherenowhere's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#173727 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi Nicolas,

We still seem to be having a problem here with the URL. seems that the payment gateway - doenst accept a URL like this for the accept and decline. Would it be possible to get a more friendly one?

So instead of this:
website.co.za/index.php?option=com_hi...t&amp;lang=en&amp;Itemid=258

this:
website.co.za/accept-payment.html

---

Believe in Better

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

12 years 3 weeks ago [\#173990](#173990) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#173990 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi,

You can use the plugin options to set the confirm url and the cancel url.
The user will be redirected to the "ugly" one but HikaShop will perform his actions and redirect the customer to the nice urls (depending the order status).

Regards,

---

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mediax](/forum/user/34376-mediax "View mediax's Profile")**
- [![mediax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34376-mediax "View mediax's Profile")
- [ Offline](/forum/user/34376-mediax)

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 2 weeks ago [\#174648](#174648) by [mediax](/forum/user/34376-mediax "View mediax's Profile")  Replied by *[mediax](/forum/user/34376-mediax "View mediax's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#174648 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi Jerome,

Do I understand correctly:

I create the fields in the plugin for cancel/decline url and Accept/return url and then save/set the nice url in that field e.g. mysite.co.za/accept_payment.html . Does this let Hikashop listen to that url? Because I have to set the same url in the payment gateway options in sage pay now configuration. I think the notification calls coming back from sage pay now will go to either of the two url's?
I have [ mysite.co.za/accept\_payment.html](http://mysite.co.za/accept_payment.html) set as Accept url on sagepay configuration and mysite.co.za/accept_payment.html in admin plugin form field.

Regards,

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mediax](/forum/user/34376-mediax "View mediax's Profile")**
- [![mediax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34376-mediax "View mediax's Profile")
- [ Offline](/forum/user/34376-mediax)

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 2 weeks ago [\#174798](#174798) by [mediax](/forum/user/34376-mediax "View mediax's Profile")  Replied by *[mediax](/forum/user/34376-mediax "View mediax's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#174798 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi, how did you get past this point? - I think I am having the same problem with coding my plugin for sagepaynow.

In testing the plugin I get access to the sagepaynow welcome screen - choose the mastercard/visa option, but when I click on Pay now - I get no further action. I don't know if I have the correct accept decline url set up on my Sage Account profile. Currently it is hikashop.mediax.co.za/accept-payment.html and hikashop.mediax.co.za/decline-payment.html. I would really appreciate your assistance or advice.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 2 weeks ago [\#174840](#174840) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#174840 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi,

As I said, you want to tell your payment gateway to go to the URL [ www.mysite.co.za/index.php?option=com\_hi...t&amp;lang=en&amp;Itemid=XXX](http://www.mysite.co.za/index.php?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=sagepay&tmpl=component&lang=en&Itemid=XXX) where XXX is the id of the menu item on the checkout.
That way, the onPaymentNotification function of your sagepay payment plugin will be called and if coded properly, it will confirm there the order status if the payment is valid.
Payment plugins cannot listen to other URLs.

The following user(s) said Thank You: [mediax](/forum/user/34376-mediax "View mediax's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mediax](/forum/user/34376-mediax "View mediax's Profile")**
- [![mediax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34376-mediax "View mediax's Profile")
- [ Offline](/forum/user/34376-mediax)

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 2 weeks ago [\#174910](#174910) by [mediax](/forum/user/34376-mediax "View mediax's Profile")  Replied by *[mediax](/forum/user/34376-mediax "View mediax's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#174910 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi, Sage Pay Now does not accept any special characters in the url string for decline or accept url. It has to be a clean url. How do you get pass that? :sick: }

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mediax](/forum/user/34376-mediax "View mediax's Profile")**
- [![mediax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34376-mediax "View mediax's Profile")
- [ Offline](/forum/user/34376-mediax)

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 2 weeks ago [\#174963](#174963) by [mediax](/forum/user/34376-mediax "View mediax's Profile")  Replied by *[mediax](/forum/user/34376-mediax "View mediax's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#174963 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi Guys,

I have now added the Accept URL on SAGEPAY as mysite.co.za/accept-payment/checkout.html after creating a hidden menu link to the checkout page - ID116

I am also sending the Notify_url as a variable with the transaction in (M10 - SAGE PAY NOW Customfield) -&gt; of the array going as post data, this is appended to the accept url on return. When returned my URL looks like this: [ mysite.co.za/accept-payment/checkout.htm...t&amp;lang=en&amp;Itemid=116](http://mysite.co.za/accept-payment/checkout.html?option=com_hikashop&ctrl=checkout&task=notify&notif_payment=sagepaynow&notif_id=6&tmpl=component&lang=en&Itemid=116)

My Notification script executes and the transaction is logged as verified in admin. The Return page though is blank - &gt; what have I missed here? onpaymentnotification -&gt; do I have to redirect the page somewhere from here or do I use another class to redirect the user to a thank you page?

Any help here would be appreciated, thanks

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86290
- Thank you received: 14268
-
-

12 years 2 weeks ago [\#175033](#175033) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#175033 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Hi,

By default the payment notification URL will display a blank page since it has nothing to display to the payment gateway.
As I said previously, in your case, you want to redirect the user to the thank you URL at the end of the onPaymentNotification function with this URL : [ www.mysite.co.za/index.php?option=com\_hi...er\_id=YYY&amp;Itemid=XXX](http://www.mysite.co.za/index.php?option=com_hikashop&ctrl=checkout&task=after_end&order_id=YYY&Itemid=XXX)
And then the system will take into account the return URL parameter of your payment plugin and do a second redirect to it.
This allows HikaShop to do some processing in the after_end controller like clearing some user session stuff which should be cleared.

The following user(s) said Thank You: [mediax](/forum/user/34376-mediax "View mediax's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[mediax](/forum/user/34376-mediax "View mediax's Profile")**
- [![mediax's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/34376-mediax "View mediax's Profile")
- [ Offline](/forum/user/34376-mediax)

Less More

- Posts: 8
- Thank you received: 0
-
-

12 years 2 weeks ago [\#175094](#175094) by [mediax](/forum/user/34376-mediax "View mediax's Profile")  Replied by *[mediax](/forum/user/34376-mediax "View mediax's Profile")* on topic *[SagePay South Africa / Netcash - Custom Plugin](/forum/29-payment-methods/871857-sagepay-south-africa-netcash-custom-plugin#175094 "-- HikaShop version -- : 2.3.3 -- Joomla version -- : 3.3  Hey Guys,  Please help me, I'm 99% of the way on the custom development of the SagePay South Africa plugin. In SA we need a service key generated in the merchant account - which I now have - but I also need a accept and decline url. What would that be?")*

Thanks Nicolas for your assistance - I have now managed to complete the cycle on return and cancel url's and have a working sagepaynow payment plugin.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NzE4NTctc2FnZXBheS1zb3V0aC1hZnJpY2EtbmV0Y2FzaC1jdXN0b20tcGx1Z2luP3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.384 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
