RE: make CAD the default currency with 2checkout.com

in2minds <[email protected]>
Newsgroups gmane.comp.web.oscommerce.general
Message-ID <c3a2c214a365c762acfe178407e55b2d@osCommerce-Forums>
This message was sent from: General Support
http://forums.oscommerce.com/viewtopic.php?p=227361#227361
----------------------------------------------------------------

as OSC uses the 2CO's Abuyers/purchase routine you can't charge in any currency other than USD.

to charge in CAD you'll need to make some major changes to the code re: form field names and the 2CO routine you use, sbuyers/purchase (or sbuyers/cartpurchase) is probably the best solution.

you could try this...

in pm2checkout.php change... 
$this->form_action_url = 'https://www.2checkout.com/cgi-bin/Abuyers/purchase.2c';
to
$this->form_action_url = 'https://www.2checkout.com/cgi-bin/sbuyers/purchase.2c';

and under function process_button() change the x_fieldname to those required for sbuyers, such as... 
"x_login" = "sid"
"x_amount" = "total"
"x_invoice_num" = "car_order_id" and/or "cart_id"
"x_test_request" = "demo"
I don't think sbuyers routine will accept the "cvv" "x_exp_date" & "x_card_num" lines so probably best to comment them out

also x_first_name & x_last_name would be combined to make "card_holder_name"

I haven't tested this or any of the above, but there is "possibly" another route... 
don't enable 2CO and try changing the final payment form URL to 2checkout along with edting the form fields.

good luck !

btw, 2CO will be adding multicurrency to Abuyers... eventually
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.