Payment plugin

  • Posts: 152
  • Thank you received: 11
12 years 8 months ago #71871

I have a question about payments
The shop I'm working on right now, should have the option to pay with Dankort (Danish debit card), I know there is ePay, but my company already has a contract that runs at a different provider (wannafind).
They have a documentation for how to set it up. But how do I create a plugin for Hikashop so it can work here too?
Do you have a documentation that tells how to do?

The documentation is here: www.wannafind.dk/support-downloads/Wanna...ocumentation_1.6.pdf (it's on english)


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)

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

  • Posts: 13201
  • Thank you received: 2322
12 years 8 months ago #71902

Hi,

You can find some documentation here:
www.hikashop.com/en/support/documentatio...r-documentation.html

When you create a plugin for HikaShop, you have to extends your plugin from JPlugin.
In the plugin create the functions with the name of the triggers.
Here you can see an example using two triggers: onBeforeOrderCreate and onAfterOrderCreate.

class plgHikasshopName extends JPlugin {
	function plgHikasshopName(&$subject, $config){
		parent::__construct($subject, $config);
	}
	//Call a trigger, in this example: onBeforeOrderCreate
	function onBeforeOrderCreate(&$order,&$send_email){
		//Actions to do when my trigger is called
	}
	//Another trigger
	function onAfterOrderCreate(&$order){
		//Actions to do when my trigger is called
	}
}

You can find all the triggers in the link given before.

You can too see how the other payment plugin for hikashop are made.

Last edit: 12 years 8 months ago by Xavier.

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

  • Posts: 152
  • Thank you received: 11
12 years 8 months ago #72020

Thx

That looks a bit difficult.. I will take a look and maybe I will find another solution.. (epay)

But it is not possible for you to create a standard plugin where the various information can be entered?
Or is it impossible?


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)

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

  • Posts: 13201
  • Thank you received: 2322
12 years 8 months ago #72030

Hi,

No it's not possible to do something like that, because each payment solution needs different informations, different protocol are used, etc.

Each solution is unique.

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

  • Posts: 152
  • Thank you received: 11
12 years 8 months ago #72040

Thats ok.. thanks..


I'm using firebug, forumsearch, dokumentation and then I ask.. It's so easy ;)

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

Time to create page: 0.071 seconds
Powered by Kunena Forum