Mobile Deposit

Created: 12/27/2016 | Updated: 8/24/2018 | Status: Published

   Adding funds from mobile


In the mobile app our system support either hiding the deposit button(so adding funds could be from desktop only)
or
alternatively use the payment page (if its responsive only) and make sure the whole flow supported by your payment provider.

 Mobile detection: Since the site is not responsive, we recommend you to add detection code.

 This code will detect mobile version site and will redirect the user to m.yourdomain.com

 

 here is an example for a code that detect mobile devices with JQuery :

 

 var isMobile = {
    Android: function() {
        return navigator.userAgent.match(/Android/i);
    },
    BlackBerry: function() {
        return navigator.userAgent.match(/BlackBerry/i);
    },
    iOS: function() {
        return navigator.userAgent.match(/iPhone|iPad|iPod/i);
    },
    Opera: function() {
        return navigator.userAgent.match(/Opera Mini/i);
    },
    Windows: function() {
        return navigator.userAgent.match(/IEMobile/i);
    },
    any: function() {
        return (
                   isMobile.Android() || isMobile.BlackBerry() ||
                   isMobile.iOS() || isMobile.Opera() || isMobile.Windows()
);
    }
};

  

 
if(isMobile.any()) {
   alert("This is a Mobile Device, you will be redirected to m.ggbinary.com");
}

 

Otherwise, if you have a responsive site then you can direct only the specific urls to to m.yourdomain.com according to your flow and needs