im using SimpleCart script and when the custmer press the Checkout Button

<a href="javascript:;" class="simpleCart_checkout">Checkout</a>

this code run

me.checkout = function() {
		if( me.quantity === 0 ){
			error("Cart is empty");
			return;
		}
		switch( me.checkoutTo ){
			case PayPal:
				me.paypalCheckout();
				break;
			case GoogleCheckout:
				me.googleCheckout();
				break;
			case Email:
				me.emailCheckout();
				break;
			default:
				me.customCheckout();
				break;
		}
	};

	me.paypalCheckout = function() {
		(...)
	};

	me.googleCheckout = function() {
		(...)
	};



	me.emailCheckout = function() {
		return;
	};

	me.customCheckout = function() {
		return;
	};

im not using paypal or google, (i replaced the codes by (...) coz its not importnat now)
and this is the Liberty Reserve payment script, how i merge them :/

<p>Get 20 mp3s for only $!</p>
<form method="GET" action="https://sci.libertyreserve.com">
<input type="hidden" name="lr_acc" value="U123456">
<input type="hidden" name="lr_store" value="MyStore">
<input type="hidden" name="lr_amnt" value="10">
<input type="hidden" name="lr_currency" value="LRUSD">
<input type="hidden" name="lr_comments" value="Payment for 20 mp3s">
<!-- baggage field -->
<input type="hidden" name="order_id" value="O7993547">
<input type="submit" name="i_submit" value="Pay!">
</form>

can anybody help please? xD, really appreciate it :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.