Android Question PayPal Button

Rizal Putra

Member
Licensed User
Longtime User
Is it posiible to create "Paypal Buttton for Donate" like on web / blog ?
so if user press that button, default web browser app will open paypal website to transfer some money direct to my paypal account for donate.
 

DonManfred

Expert
Licensed User
Longtime User
Login to your paypal account, read the documentation about how to create a paypal-button and look at the others here and see how they do...
 
Upvote 0

alexwekell

Member
Licensed User
Longtime User
I mean how to insert that button in my android app ?

Go to here:
https://developer.paypal.com/docs/c...gration-guide/donation_buttons/#id08AAF0FJ0XW

Follow the steps, at the end you should get some HTML code for your button, instead, go to the "Email" tab and copy the URL. That is the URL that will open once you press the button.

Create a button in your designer / code a button and add it and then create a click event for it. This will be the code the click event:

B4X:
Dim p As PhoneIntents
    StartActivity(p.OpenBrowser("YOUR PAYPAL URL"))
 
Last edited:
Upvote 0

TheWind777

Active Member
Licensed User
Longtime User
Yep. I went to Paypal and they had a tool which let you create the code for a DONATE button; so that is done.

You seem to know a lot about using the WebChromeClient.

I had seen a page about 2 days ago which detailed how to back-up in the web history when someone hits their phone's KEYCODES_BACK button. Then, once the history has played-out, let the normal back button work; but I lost it.

Do you know how that would be done, or can you find that page?
 
Upvote 0
Top