ARMYBARMY Posted September 8, 2003 Posted September 8, 2003 Hi... I'm a canadian merchant and am wondering if anyone has a modified pm2checkout.php scirpt that will allow me to collect creditcard detail on my site (not as important)... I do use SSL.... but what I need is the checkout total to select CAD as the currency to charge in. I've seen some scripts that convert to USD... but is there anyway to automatically process the order in CAD ??? this would save my day... thanks, curtis =)
in2minds Posted September 10, 2003 Posted September 10, 2003 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.