Search

Trying to use this extension with 2.2.1 I seem to having a problem with the redirects. Using the following test code, redirects to PayPal but does not initiate the payment store, item, price etc... is not displayed.

  form action="" method="post">
    <input name="fields[amount]" value="15.00" type="hidden" />
    <input name="fields[member]" value="{/data/events/member-login-info/@id}" type="hidden" />
    <input name="paypal-payments[cmd]" value="_xclick" type="hidden" />
    <input name="paypal-payments[amount]" value="15.00" type="hidden" />
    <input name="paypal-payments[item_name]" value="hat" type="hidden" />
    <input name="action[save-booking]" type="submit" value="Submit" />
  </form

However doing a manual test works, I am using the same business email parameter.

  form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick" />
    <input type="hidden" name="business" value="XXXXX " />
    <input type="hidden" name="amount" value="15.00" />
    <input type="hidden" name="item_name" value="hat" /> 
    <input type="image" name="submit" border="0"  src="https://www.paypal.com/en_US/i/btn/btn_buynow_LG.gif" alt="PayPal - The safer, easier way to pay online" />
  </form

Hopefully I am missing something obvious?

Managed to fix my issue by changing the sandbox URL to https

if ($this->_sandbox_enabled()) {
                $url = 'https://www.sandbox.paypal.com';
            }

Could you do a pull-request on that?

Sorry, this was done about two months ago and I neglected to update the .zip package. Done now.

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details