语言

Menu
Sites
Language
using of paypal

Hello everyone, I am trying to develop application "e-commerce" so I integrate the payment method "paypal". its all goes well, the data are redirected to the "post" method applying paypal., but the problem is when I click on the "Boutton back" mobile. it does not return to my current application . is that there are someone can help me? and thank you in advance :)

响应

3 回复
nguyen duy an

have you handled back button like this

var init = function () { if ( backEventListener !== null ) { return; } var backEvent = function(e) { if ( e.keyName == "back" ) { try { if ( $.mobile.urlHistory.activeIndex <= 0 ) { unregister(); } else { $.mobile.urlHistory.activeIndex -= 1; $.mobile.urlHistory.clearForward(); window.history.back(); $('.urlive-container').empty(); } } catch( ex ) { unregister(); } } } document.addEventListener( 'tizenhwkey', backEvent ); backEventListener = backEvent; };

 

AVSukhov

Hello,

Make sure that the page that you want to return has an "back" event handler

Jowett Go
Why not consult and see other scripts for ecommerce? Since you're dealing with money or business, you should take an extra precaution regarding security of your script.. must be unhackable etc. There are a lot of these ecommerce paypal script that you can check out, some are paid and some are for free.. you can check out codebasket.net and any other sites out there.