It will change to production mode when you set the live app id instead of the sandbox id.
Your manifest editor should look like this:Got it...but no PopUp appears for logging in.
I added also the part in the manifest editor:
B4X:'This code will be applied to the manifest file during compilation. 'You do not need to modify it in most cases. 'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136 AddManifestText( <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="17"/> <activity android:name="com.paypal.android.MEP.PayPalActivity" android:theme="@android:style/Theme.Translucent.NoTitleBar" android:configChanges="keyboardHidden|orientation"/> <supports-screens android:largeScreens="true" android:normalScreens="true" android:smallScreens="true" android:anyDensity="true"/>) SetApplicationAttribute(android:icon, "@drawable/icon") SetApplicationAttribute(android:label, "$LABEL$") 'End of default text.
Nor with the Sandbox neither with the live-id.
The button appears after a second or so, but pressing it gives no result.
'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: http://www.b4x.com/forum/showthread.php?p=78136
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
AddApplicationText(
<activity android:name="com.paypal.android.MEP.PayPalActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar"
android:configChanges="keyboardHidden|orientation"/>)
'End of default text.
Is there an update?In v1.0 you cannot change the language. However such a feature can be added in a simple update
Thank you very much, Erel!You can explicitly set it with this code (put it inside the ready event):
B4X:Dim jo As JavaObject jo.InitializeStatic("com.paypal.android.MEP.PayPal").RunMethodJO("getInstance", null).RunMethod("setLanguage", Array As Object("de_DE"))
Erel answered:@Erel what I have to write insted of example-facilitator@domain.com ?
... but sorry ... there is a misunderstanding: This is NOT the customer-email-adress, it is the email-adress of "your company" in the test area of paypal sandbox.This is the customer email address it can also be the customer phone number.
... this -- Testkonto -- above works ... but this -- LIVE-KONTO -- ...PayPalX.Initialize("APP-80W284485P519543T", True, "PayPal") '-- Testkonto --
... is not working! I changed the static "APP-80W284485P519543T" into the real App-ID (which I've got from PayPal) and the "True" for using sandbox-mode into "False" for using real-mode. Experiment is not working.'PayPalX.Initialize("AReJj............", False, "PayPal") '-- LIVE-KONTO !!! --
into real mode:PayPalX.RequestPayment("EUR", 2, "Test-facilitator@gmail.com", "JOTHA", PayPalX.PAYMENT_TYPE_SERVICE) '-- Testkonto --
Experiment is not working.PayPalX.RequestPayment("EUR", 2, "My_real_email_adress@gmail.com", "JOTHA", PayPalX.PAYMENT_TYPE_SERVICE) '-- LIVE-KONTO !!! --
Are these steps in the library included?To take your application live:
- Ensure your application adheres to the PayPal Application Policies and Guidelines.
- Update the Sandbox API credentials in your PayPal calls to those assigned to a live PayPal account.
- Update your PayPal endpoints from the Sandbox to the PayPal production servers.
- Register your application with PayPal.
- If your application makes use of Adaptive operations, obtain a live AppID.
- Go Live !
pp = PayPal.initWithAppID(ba.context, AppId, Sandbox ? PayPal.ENV_SANDBOX : PayPal.ENV_LIVE);
... should work?pp.Initialize("AReJj............", False, "PayPal")
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?