Atos Payment Module (French Users) -- need to customize payment amount
I'm desperate on this - I've searched high and low on multiple forums (even OsC where I was treated very harshly for daring to use zc instead of OsC) and cannot find anyone who has successfully installed the Atos payment module which will allow me to use the credit card payment facility offered by French banks. I'm stuck because of a silly language configuration problem so if anyone can help, please holler !
Thanks
Pete
Only 1% of the order is sent to the gateway
I use a contributed payment module (Atos, found on the French Zen Cart site) and it works perfectly except that it only sends 1% of the order to the payment gateway and ignores the 70% discount I give (via another add-on) when the order is placed (the rest is payable when the goods are ready). This only occurs with this module, Paypal IPN works perfectly. Where can I find where the error is coming from ? Any ideas anyone ? This is ruining my sleep !
Thanks
Pete
Re: Atos Payment Module (French Users)
Re: Only 1% of the order is sent to the gateway
OK, I've figured the 1% problem, the gateways needs 2 decimal places to be displayed in the on-line store so that's sorted. However, it still insists on ignoring the discount given when the order is placed taking only the sub total + shipping whereas only the amount immediately due - 30% of the order total - should be sent to the gateway. I'm nearly there !
Any ideas ?
Cheers
Pete
Re: Only 1% of the order is sent to the gateway
Quote:
Originally Posted by
petek
it still insists on ignoring the discount given when the order is placed taking only the sub total + shipping whereas only the amount immediately due - 30% of the order total - should be sent to the gateway.
Check what fields it's calculating the transaction total from, and compare that against the other working module.
Re: Only 1% of the order is sent to the gateway
Quote:
Originally Posted by
DrByte
Check what fields it's calculating the transaction total from, and compare that against the other working module.
Precisely but for people who aren't php wizkids, its always a pain locating the correct line of code that's causing the bother ! Oh well, there's no other way I suppose.
Thanks
Pete
Re: Atos Payment Module (French Users)
Quote:
Originally Posted by
petek
even OsC where I was treated very harshly for daring to use zc instead of OsC
You've got to feel sorry for them really. It can't be easy being fully committed to a cart while knowing deep down that there's a much better one that they could be using instead.
Re: Atos Payment Module (French Users)
Quote:
Originally Posted by
kuroi
You've got to feel sorry for them really. It can't be easy being fully committed to a cart while knowing deep down that there's a much better one that they could be using instead.
Oh, they're very bolshy. When I opted for zc, I was under the impression that OsC basically wasn't being developed any more. Not true it would appear. And they do have masses more info on their site (particularly the OsC French-language site) !
Cheers
Re: Only 1% of the order is sent to the gateway
The other module that works is Paypal IPN.
In the confirmation function of Atos, I have this line of code which in case I'm mistaken is how the order is retreived :
PHP Code:
$sips = $this->makeRequest($order->info['total'], $currency);
whilst in Paypal, the equivalent (appears) to be this :
PHP Code:
$this->totalsum = $order->info['total'];
They are similar but I could be off the mark.
Any ideas ?
Where is the order total field ?
Hi,
In one (custom) module, I think it retrieves the order info here :
PHP Code:
$sips = $this->makeRequest($order->info['total'], $currency);
. I have problems with this modules which ignores all discounts.
In this (Paypal IPN - works perfactly) module, I see this :
PHP Code:
$this->totalsum = $order->info['total'];
. Paypal works fine; I'd like to know why the other doesn't but I'm having a little difficulty understanding exactly where and how the payment modules get their order info from. Can someone enlighten me ?
Thanks
Pete