PayPal MPL library

mcmanu

Active Member
Licensed User
Longtime User
Hi,

1.how can i set the paypal button to visible false? or how can i remove that button from activity?
2.Is it allowed to use this lib in app which is published in google play?
 

mcmanu

Active Member
Licensed User
Longtime User
Thank you very much Erel :)

Solution:

Dim v as view 'in globals

v=pp.getpaypalbutton(true)

Activity.addview(v,0,0,100,100)

sub setvisible
v.visible=false
en sub
 

Jaames

Active Member
Licensed User
Longtime User
2.Is it allowed to use this lib in app which is published in google play?
No. All my apps that was using this lib are suspended!
Beware! Unless you're selling something else, not the app features

From the Google Content Policy :
Paid and Free Apps

  • App purchases: Developers charging for apps and downloads from Google Play must do so by using Google Play's payment system.
  • In-app purchases:
    • Developers offering virtual goods or currencies within a game downloaded from Google Play must use Google Play's in-app billing service as the method of payment.
    • Developers offering additional content, services or functionality within another category of app downloaded from Google Play must use Google Play's in-app billing service as the method of payment, except:
      • where payment is primarily for physical goods or services (e.g., buying movie tickets, or buying a publication where the price also includes a hard copy subscription); or
      • where payment is for digital content or goods that may be consumed outside of the app itself (e.g., buying songs that can be played on other music players).
  • Developers must not mislead users about the apps they are selling nor about any in-app services, goods, content or functionality they are selling. If your product description on Google Play refers to in-app features to which a specific or additional charge applies, your description must clearly notify users that payment is required to access those features.
 

Juzer Hussain

Active Member
Licensed User
Longtime User
Hi Erel,
In the above example the buyer will enter his paypal account, The seller account is linked with paypal thru email id?
Meaning we need to have a paypal account with email id provided.
Pls clarify
Juzer
 

ivanomonti

Expert
Licensed User
Longtime User
hi, where am I going to create in paypal id app, developers can not find in my paypal!

Thank 100000000000000

B4X:
pp.Initialize("APP-80W284485P519543T", True, "paypal")
 

ivanomonti

Expert
Licensed User
Longtime User
Error,

B4X:
menulistsx_paypal_click (B4A line: 122)
pp.RequestPayment("USD", 50, "example-facilitat
java.lang.NullPointerException: Attempt to invoke virtual method 'java.lang.Object anywheresoftware.b4a.BA.raiseEvent(java.lang.Object, java.lang.String, java.lang.Object[])' on a null object reference
    at anywheresoftware.b4a.paypal.PayPalWrapper$3.ResultArrived(PayPalWrapper.java:133)
    at anywheresoftware.b4a.BA.startActivityForResult(BA.java:496)
    at anywheresoftware.b4a.paypal.PayPalWrapper.RequestPayment(PayPalWrapper.java:138)
    at humanequality.ivanomonti.eu.menulistsx._paypal_click(menulistsx.java:235)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at anywheresoftware.b4a.BA.raiseEvent2(BA.java:187)
    at anywheresoftware.b4a.BA.raiseEvent(BA.java:171)
    at anywheresoftware.b4a.paypal.PayPalWrapper$2.onClick(PayPalWrapper.java:84)
    at android.view.View.performClick(View.java:4848)
    at com.paypal.android.MEP.CheckoutButton.onClick(Unknown Source)
    at android.view.View.performClick(View.java:4848)
    at android.view.View$PerformClick.run(View.java:20262)
    at android.os.Handler.handleCallback(Handler.java:815)
    at android.os.Handler.dispatchMessage(Handler.java:104)
    at android.os.Looper.loop(Looper.java:194)
    at android.app.ActivityThread.main(ActivityThread.java:5637)
    at java.lang.reflect.Method.invoke(Native Method)
    at java.lang.reflect.Method.invoke(Method.java:372)
    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:959)
    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:754)
 
Top