Payment Made Simple, an small issue when being redirected to paypal.

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
mccor
Forum Members
Forum Members
Posts: 12
Joined: Fri Jun 11, 2010 2:35 pm

Payment Made Simple, an small issue when being redirected to paypal.

Post by mccor »

Hi.

I've now got ShopMS/CartMS/PaymentMS working nicely I think (latest versions).


However, when I click on confirm order, during redirection to paypal, the following message appears:

Please wait, your order is being processed and you will be redirected to the paypal website.

If you are not automatically redirected to paypal within 5 seconds...Click Here


While this message is displayed, the rest the page seems to bypass the website stylesheets (css), and therefore menus etc. are out of position, and text/fonts are wrong.

The redirection works otherwise.

I've located the relevant area in the gw.paypal.php:

Code: Select all

	function submit_payment( ) {
		// this function actually generates an entire HTML page consisting of
		// a form with hidden elements which is submitted to paypal via the 
		// BODY element's onLoad attribute.  We do this so that you can validate
		// any POST vars from you custom form before submitting to paypal.  So 
		// basically, you'll have your own form which is submitted to your script
		// to validate the data, which in turn calls this function to create
		// another hidden form and submit to paypal.

		// The user will briefly see a message on the screen that reads:
		// "Please wait, your order is being processed..." and then immediately
		// is redirected to paypal.
		
		$gateway_code = 'PayPal';
		$this->add_field('business', $this->getGateWayValue ($gateway_code, 'business_email'));
		$this->add_field('currency_code', $orderheader['currency']);

		if ( $this->getGatewayValue('PayPal', 'environment') == 'live') {
			$this->paypal_url = $this->getGatewayValue('PayPal', 'url_live');
		}
		else {
			$this->paypal_url = $this->getGatewayValue('PayPal', 'url_test');
		}
		$dumphiddenfields = $this->getGatewayValue('PayPal', 'debug');
		if ( $dumphiddenfields == 'yes' || $dumphiddenfields == 'die') {
				$this->dump_fields();
				if ( $dumphiddenfields == 'die') {
					die();
Can anybody please point me in the right direction to fixing this?
Thanks for any help. :)
Last edited by mccor on Sun Jul 18, 2010 5:09 pm, edited 1 time in total.
Post Reply

Return to “Modules/Add-Ons”