1. *** New version of B4J is available ***
    B4J v7.8
    Dismiss Notice

Android Question PayPal payment in Android? WebView?

Discussion in 'Android Questions' started by BjoernB, Aug 15, 2019.

  1. BjoernB

    BjoernB Member Licensed User

    Hello everyone,

    my plan is to build an App where the user has to be able to pay via PayPal, a little shop app with the B4A compiler.

    I can't download the paypal lib in this forum, it's no longer up to date as far as i know.
    Erel gave me the advice to use WebView, but as I read on their page, this is just some kind of InApp Browser.
    going to paypal startpage with WebView won't help me, so am I able to prepare a payment with a constant target account and a non editable value I hand in from my app?

    The user just has to say "I wanna buy this thing" and to click on "pay". (kind of like this)

    the app has to open the paypal page, login may be saved, with constant price and target account itself

    Is there a way to do this with WebView? or with a B4A-Lib?

    best regards,
    Bjoern

    (and sorry for the bad english, i'm not a native speaker)
     
  2. Erel

    Erel Administrator Staff Member Licensed User

    1. I haven't checked with PayPal terms whether it is allowed or not. I assume that it is allowed but you should check it.

    2. You can use the "email link". For example:
    Code:
    Sub Activity_Create(FirstTime As Boolean)
       
    Activity.LoadLayout("1")
       WebView1.LoadUrl(
    "https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=8Txxxxxxxx")
    End Sub
     
  3. BjoernB

    BjoernB Member Licensed User

    i've tried doing stuff like this per URL earlier in another program on windows. this simply wouldn't work because you can't login per URL only.
    does paypal accept paying with target account etc. just from the URL? so the customer just has to log in and click on "pay"? and what if he wants the app to remember his login?

    i don't think URL only will do what i need it to.
    but i'll try it ;)

    is it always the same URL?

    sorry for all the questions, i never worked with paypal. not even as a customer. I made an account for this and don't have much experience
     
  4. Erel

    Erel Administrator Staff Member Licensed User

    Yes.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice