Sending Variables Offsite

bomahony

No avatar

2007-06-29 19:37

I need to be able to send a number of variables to another site, but have no idea where to input this info in the code.

I need to send the order id, and amount to a payment system. There are three other variables, all of which are hidden.

Can anyone tell me what the variables are, and i will try and hack it together myself from

Ill probably try and put it together from an existing paypal integration or something.

» Quick.Cart v2.x

wewior (OpenSolution)

Avatar: wewior

2007-07-02 09:47

I think you should add all variables to form in hidden fields, you can just place submit button "Go to payment system" or something like that.
All variables should be visible in site when you send order because there is shown order summary so you can get variables you want from there.

bomahony

No avatar

2007-07-03 20:55

hmm. what i actually want is for it to go straight from the order page, when they submit the order, it goes straight to the payment processor.

I see in another thread, you said to use orders_payments but this template doesnt seem to be in 2.X

So when they click on the send button, i want it to process it into the order list in the admin panel, and also post the follwoing variables:

<form action=&#8221;https://secure.metacharge.com/mcpe/purser&#8221; method=&#8221;post&#8221;>
<input type=&#8221;hidden&#8221; name=&#8221;intTestMode&#8221; value=&#8221;1&#8221;>
<input type=&#8221;hidden&#8221; name=&#8221;intInstID&#8221; value=&#8221;mymetachargeid&#8221;>
<input type=&#8221;hidden&#8221; name=&#8221;strCartID&#8221; value=&#8221;Order ID $iOrder&#8221;>
<input type=&#8221;hidden&#8221; name=&#8221;fltAmount&#8221; value=&#8221;$aList[fSummary]&#8221;>
<input type=&#8221;hidden&#8221; name=&#8221;strCurrency&#8221; value=&#8221;EUR&#8221;>
<input type=&#8221;hidden&#8221; name=&#8221;strDesc&#8221; value=&#8221;%%%%%%%%&#8221;>
<input type=&#8221;submit&#8221; value=&#8221;Make Payment&#8221;>
</form>

Where %%%%%%%% is the actual order details, preferably all the items ordered.

I also want to strip the Zip code option, or at least make it ok to be blank, as we dont use zips in ireland.

bomahony

No avatar

2007-07-03 21:30

i also want to make the "My Cart Link" in the top a part of the top menu rather than the header menu - is this possible?

wewior (OpenSolution)

Avatar: wewior

2007-07-04 08:25

Link you can just move to other menu.
About payment system place that form in file templates/order_summary.tpl
With all items ordered may be problem because you should use listBasket function and some other template to generate list of items

bomahony

No avatar

2007-09-19 13:01

Can someone help me where to/how to write the code for this?

wewior (OpenSolution)

Avatar: wewior

2007-09-20 08:57

did you try to place is in file templates/order_summary.tpl as i wrote? if it works i understand you need only items list added to that form?
you can use function listBasket but with different tpl file, for example add in file actions_admin/orders.php before line:
$content .= $tpl->tbHtml( 'orders_summary.tpl', 'SHOW' );
line:
$sBasketList = listBasket( $iOrder, 'orders_basket_for_payment.tpl' );
and create file templates/orders_basket_for_payment.tpl for that, you have example with files orders_summary.tpl, orders_delivery.tpl, orders_basket.tpl.

Back to top
about us | contact