Android Question Does anyone know how to sideload PayPalHere?

paulc91316

Member
Licensed User
Longtime User
I'm trying to call PayPalHere within my program but I'm at a loss (brain fart). Do I just do StartActivity?

"paypalhere://takePayment/?returnUrl=XXXXXX&invoice=..."

I tried :
Dim p As PhoneIntents
StartActivity(p.OpenBrowser("paypalhere://takePayment/?returnUrl=xxxx"))

Any help would be appreciated...
 

NJDude

Expert
Licensed User
Longtime User
Sideload or start the app?, if you want to start the PayPalHere app you need to do this:
B4X:
Dim i As Intent

i.Initialize("", "")
i.SetComponent("com.paypal.here/.StartUpActivity")

StartActivity(i)

You need the app installed on your device of course.

If you are trying to use the REST API then would be something like this:
B4X:
StartActivity(p.OpenBrowser("https://api.paypal.com/v1/payments/payment ..."))
...
 
Last edited:
Upvote 0

paulc91316

Member
Licensed User
Longtime User
Thanks, but that didn't work.

Here's the PayPal devblog showing the example.

https://devblog.paypal.com/paypal-here-sideloader-api/

I also called PayPal and should hear from them soon.

My app is just a simple cash register-like system that people use to buy items at fundraisers. We use barcoded cards that people load up (at a cashier station) much like a gift card. Some of the stations can take credit cards so we use PayPalHere's Magstripe readers - it works great except when someone doesn't type in the amount correctly. We had one sale for $50 that showed up for $500. We issued the $450 refund but it would be easier to just open PayPal here with the amount correctly loaded.

I tried Zooz but was unhappy with the lack of magstripe reader. Plus the fee is higher if you manually type in the CC number.

I'll keep you posted on what PayPal comes back with...
 
Upvote 0
Top