I am at the moment working on a payment plugin for one of the Swedish payment services, named Nets ePayment formerly known as Auriga.
They send back a response url with some parameters and I have some problems on how to pick them up.
I guess this line is the start of the code handling this in the "onPaymentNotification" function:
$url = parse_url($element->payment_params->url);
I need advise on where to put in the parameters I get in the returning URL.
They are as follows:
Merchant_id=_HIDDEN_&
Version=3&
Customer_refno=B5A4W8&
Status=A&
Status_code=0&
Currency=SEK&
MAC=_HIDDEN_
Customer_refno is the Hikashop $order->order_number
Status and Status_code are especially important since they show if the payment were successful or not.
This payment plugin will with a few tweaks also work for a few other Swedish payment services like Payson. When I am done with this I will make a Payson variant, I will share both to the Hikashop team.
Thanks
Jan