Paypal in Jquery Mobile



I have a Jquery mobile application that runs from the homescreen (apple-mobile-web-app-capable). I have integrated paypal, but it opens in safari half way through the payment process. I either need it to stay in one window all the way, or open in a new window at the start of the payment process.

I have tried all combinations of target="_blank", rel="external", and tried onclick to submit. Nothing works. It opens up the first part in the app, and then the second part in safari, which produces 'session timed out'.

I had a possible fix for this problem, by putting all paypal variables into a hyperlink. But this isn't working either. Please see below:


I have a the following paypal form within Jquery Mobile:

<input type="hidden" name="business" value="" />

<input type="hidden" name="invoice" value="" />

<input type="hidden" name="custom" value="" />

<input type="hidden" name="notify_url" value="/[url removed, login to view]" />

<input type="hidden" name="return" value="/" />



I need to submit my paypal cart via a url rather than a submit button. This is because I am doing some things with an app that require it to be a URL. I have got this far, but it just says 'empty cart' when I click the link:


'currency_code' => 'GBP',

'business' => get_bloginfo('admin_email'),

'upload' => '1',

'invoice' => SESSION_ID,

'custom' => $user_id,

'notify_url' => get_bloginfo("siteurl"),

'return' => get_bloginfo("siteurl"),

'rm' => '2',

'charset' => 'utf-8'


$encoded_params = array();

foreach ($params as $k => $v){

$encoded_params[] = $k.'='.urlencode($v);


echo "submit";



Can anyone help fix my issue whilst maintaining a standard URL link and not a submit button?


Skills: HTML5, iPhone, jQuery / Prototype, Mobile Phone

See more: paypal mobile, paypal jquery mobile, jquery mobile paypal, paypal button jquery mobile, apple mobile web app capable paypal, jquery mobile paypal cart, jquery mobile form paypal, jquery mobile submit paypal, paypal jquery, paypal standard jquery mobile, paypal mobile jquery, jquery mobile paypal button, part payment invoice, link jquery, button onclick php, apple safari web, apple i-works, jquery is mobile, jquery link, mobile problem, mobile application payment, jquery mobile, invoice app, fix mobile, paypal form working

Project ID: #4007226

6 freelancers are bidding on average $33/hour for this job


expert programmer team for webapp HTML5 Jquery mobile, HTML5 with phonegap, Iphone , Ipad, BB,Android, OpneGLes2.0 , Unity3D, cocos2D game and utlity apps development please check your PM for more details thanks.

$30 USD / hour
(14 Reviews)

we are dedicated team for mobile apps.

$30 USD / hour
(25 Reviews)

I can provide a solution through a different approach. Before you approve the bid - could you please share with me all the JQM source code please, and if you have the XCODE of it (to create native app? then send it too More

$50 USD / hour
(9 Reviews)

Respected Client, Please check PMB for listing and confident to complete the project with quality services.. Best Regards

$25 USD / hour
(3 Reviews)

Hi, We are creative and innovative freelancer, And we are so much interested to work on your project, Please check pm for ultimate solution. thank you. Vebs

$50 USD / hour
(17 Reviews)

Experienced on paypal and JQUERY applications. I am sending you my last paypal/jquery works. Thank you, sir.

$25 USD / hour
(1 Review)

Hi, I was doing some web site (both for web and mobile) with paypal payment. As far as I understand this is web site displayed in lite version (for mobile). If this is the case I'm willing to help you solve this iss More

$40 USD / hour
(0 Reviews)