paypal / paypal-android-sdk Goto Github PK
View Code? Open in Web Editor NEWAccept PayPal and credit cards in your Android app
License: Other
Accept PayPal and credit cards in your Android app
License: Other
Hello again!
Well, now when the card scanning is working there is another problem. Since i am using Samsung Galaxy S (i9000) this device does not have a flash.
But on the scanning interface, there is a button to turn the flash on. When you press that button, the app crashes with a NullPointerException.
Hi, I would like to know how can pass a extra parameter Invoice (That uses in old PayPal sdk "payment.setInvoiceData(invoice);") with PayPal Android SDK, now only pass the amount, currency and text that identifies the concept of the pay. Also there are the Extra_Client_id, Extra_Payer_id,.... but i don't know if the Extra_payer_id uses to pass the parameter Invoice.
Thanx
Hi, is there any further news on when the Android SDK is going to be release for non USA developers (in particular the UK)?
Thanks
On SandBox Environment always receiving pending state after setting all correctly when I tried to pay with card by clicking keyboard. I am sure about payment options, I didn't try yet. Sample response:
"proof_of_payment": {
"rest_api": {
"state": "pending",
"payment_id": "PAY-BBBBBBBBBBBBBBBBBBBB"
}
}
Thanks in advance.
Hi, I am using the latest PayPal SDK in my Android app.
I have one test user in the PayPal sandbox with two different funding sources (Bank account and Credit Card). I did not see any options in the activity flow to choose which funding source to use, every payment is always defaulted to IBT.
After digging in the SDK reference I don't think this is supported yet, is that correct? If so, is there any plan to support this functionality?
Thanks
Would love to know if there is anyway to prematurely end the activity if user idle at login.
i followed this guide: https://devblog.paypal.com/phonegap-android-sdk-plugin/
to integrate PayPal in my Phonegap Hybrid App.
If I pay with a credit card (in sandbox env) it works correctly and i can see the notification in my dashboard.
But if i press the login button, whatever user credentials i insert, it always return an error in login.
So i navigate and i found this:
So i want to know if i am doing something wrong or if it's really impossible to use this feature from mobile. In this case i wonder why the Java class allow to show a login button if it is useless.
And last, another question. When i get the proofOfPayment object, i send the payment_id trough AJAX to: https://api.sandbox.paypal.com/v1/payments/payment/ but it responds 401: Unauthorized
Does this SDK cooperate with official Android PayPal Application anyhow?
I'd like to just create simple payment request (without callback possibly), and I'd like to use PayPal if and only if user has application installed on his phone.
If I could just use Intent/Broadcast to invoke the PP application with details of payment, it would be great to have feature.
Thanks
for android tv.
no force on any button.
so,we cant use remote-controller to pay
can u fix it?
after setting CONFIG_ENVIRONMENT to PaymentActivity.ENVIRONMENT_PRODUCTION and setting live credentials, all my payments with valid credit card and verified account are failed
I have this error UNAUTHORIZED_PAYMENT when I pay with credit card
then, I am wondering if france is supported by the rest api of paypal or not
because even if I use a france account I have this :
how to resolve this issue
Hi, I'm attempting to provide a default user email to be used when paypal displays the login view. However, I can't seem to get the email address to display.
My code to invoke the PaymentActivity is this:
UserModel user = UserModel.loadSavedModel();
quote = (QuoteResponseModel)resultData.getSerializable(SaveQuoteService.QUOTE_RESPONSE);
PayPalPayment payment = new PayPalPayment(quote.getTotalPrice(), quote.getIsoCurrencySymbol(), quote.getQuoteDescription());
Intent intent = new Intent(this, PaymentActivity.class);
// comment this line out for live or set to PaymentActivity.ENVIRONMENT_SANDBOX for sandbox
intent.putExtra(PaymentActivity.EXTRA_PAYPAL_ENVIRONMENT, Config.getString(Config.PayPalEnvironment_Key));
intent.putExtra(PaymentActivity.EXTRA_CLIENT_ID, "<my-client-id>");
intent.putExtra(PaymentActivity.EXTRA_RECEIVER_EMAIL, "<receiver-email>");
intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);
intent.putExtra(PaymentActivity.EXTRA_PAYER_ID, user.getUserId());
intent.putExtra(PaymentActivity.EXTRA_DEFAULT_USER_EMAIL, user.getPayPalEmail());
intent.putExtra(PaymentActivity.EXTRA_SKIP_CREDIT_CARD, true);
startActivityForResult(intent, PAYPAL_PAYMENT_REQUEST_CODE);
It loads the order screen and when I select the Pay with PayPal button the login window opens up without the email address filled in.
Any suggestions on how I may be able to resolve this?
I need to integrate PayPal with my Android application. Payment tests using ENVIRONMENT_NO_NETWORK
work fine. However, when I use "production" I get "Login Failed. System error. Please try again later" when I try to login and pay. This issue is consistent. I have seen multiple posts on this problem, however, I still cannot figure out how to make it work.
I am using the latest PayPal Android SDK version (I think version 1.2.5, judging from PayPal-Android-SDK Git).
First, I start the service:
Intent intent = new Intent(this, PayPalService.class);
intent.putExtra(PaymentActivity.EXTRA_PAYPAL_ENVIRONMENT, PaymentActivity.ENVIRONMENT_PRODUCTION);
intent.putExtra(PaymentActivity.EXTRA_CLIENT_ID, getString(R.string.paypal_clientid));
startService(intent);
And then I make a payment
PayPalPayment payment = new PayPalPayment(new BigDecimal("2.00"), "USD", "my payment");
Intent intent = new Intent(this, PaymentActivity.class);
intent.putExtra(PaymentActivity.EXTRA_PAYPAL_ENVIRONMENT, PaymentActivity.ENVIRONMENT_PRODUCTION);
intent.putExtra(PaymentActivity.EXTRA_CLIENT_ID, getString(R.string.paypal_clientid));
intent.putExtra(PaymentActivity.EXTRA_PAYER_ID, userEmail);
intent.putExtra(PaymentActivity.EXTRA_RECEIVER_EMAIL, getString(R.string.paypal_email));
intent.putExtra(PaymentActivity.EXTRA_PAYMENT, payment);
startActivityForResult(intent, 0);
I use the Client ID from "Live Credentials" section in the application information. I do not use "Secret" anywhere.
I have also disabled card.io card scanning if that makes any difference.
When I try to make the payment, I can see the PayPal order screen. I click on "Pay with PayPal". I enter my personal PayPal email address and password (it is a separate PayPal account, not associated with the application) and click "Log in". But then I get a dialog saying "Login Failed. System error. Please try again later". I see the following messages in the log:
02-04 10:37:07.827: E/RequestError(24963): 500 http response received. Response not parsable.
02-04 10:37:07.832: E/PayPalService(24963): INTERNAL_SERVER_ERROR
02-04 10:37:07.927: E/LoginActivity(24963): login error: INTERNAL_SERVER_ERROR
The PayPal account I am using (where the application is created) has credit card added and it is verified.
Hi,
I have integrated mobile PayPal payments as explained here: https://devblog.paypal.com/phonegap-android-sdk-plugin/
My question is not about programming, because it works well.
Someone from my backoffice told me to verify that our payments are shipped to a confirmed shipping address given by the PayPal API.
Now, what I did was to allow PayPal payments trough logging into your account or simply by inserting your credit card's number then verify those payments (following this section: https://developer.paypal.com/docs/integration/mobile/verify-mobile-payment/).
What I think is that my colleague is referring to the Mobile Express Checkout that we didn't use. (I read that using this you have to verify the shipping informations)
Can you confirm this?
Thank you
I personally have a problem with implementing this SDK, because of number of permissions required.
I don't want Card.IO features, and still I'm forced to use CAMERA/VIBRATE
I cannot provide WIFI/NETWORK _STATE permissions, but SDK cannot work without them
Could the SDK be configurable, to enlist permissions we can provide and SDK should count on them?
Do you plan to support Gradle?
Hi,
I've tried setting up the payment using the sample code and setup my IPN handler in sandbox.
However the item_name received in the IPN is missing.
any suggestions?
Here's my sample IPN response values:
cmd ==> _notify-validate
transaction_subject ==>
payment_date ==> 02:34:37 Dec 05, 2013 PST
txn_type ==> web_accept
residence_country ==> US
item_name ==>
payment_gross ==> 1.75
mc_currency ==> USD
payment_type ==> instant
protection_eligibility ==> Ineligible
verify_sign ==> AFcWxV21C7fd0v3bYYYRCpSSRl31A1i1dyXfSr2MggrbzhihZnyxhFN9
payer_status ==> verified
test_ipn ==> 1
tax ==> 0.00
txn_id ==> 1SG76294UT1713155
quantity ==> 0
Hi there!
Maybe i am missing something, but how do you use this feature of the SDK?
I have a Galaxy S phone (i9000) and it is an ARMv7 device, but i can't find the feature.
Shouldn't there be a button on the page, where you're entering your credit card data to use the camera?
Thanks for your attention! ^^
Hi, I am using the latest PayPal SDK in my Android app.
I tested a few payments and I noticed a user needs to have an existing PayPal account in order to submit a payment through the SDK activity. I didn't see any options to create a new PayPal account or links to the PayPal website's appropriate page.
Is there a plan to support this functionality if not already available?
Thanks
It would be extremely useful (in fact in our use case, the difference between implementing this SDK and having to try and kludge our way around it via the REST API) if it was possible to hide the "forgo password" and "pin" links on the Login screen.
The former opens a browser which we can't have happen in our Sandbox environment and the latter is just confusing as this is not something any of our customers will have.
If you agree that this level of control would be useful to expose to the end user, could you please provide an estimate of how long it will be before we see this feature included in the released SDK?
Thanks in advance,
YS
Hi,
I am finalizing the integration of Paypal in my Mobile App through the PhoneGap Plugin.
What i need is to store in my DB informations about the payments to track and log everything that happens.
I use both Adaptive and REST payments so i got two different JSON responses:
{
"proof_of_payment": {
"adaptive_payment": {
"pay_key": "AP-70M68096ML426802W",
"payment_exec_status": "COMPLETED",
"timestamp": "2013-02-20T00:26:25Z",
"app_id": "APP-91B933855X481767M"
}
},
"payment": {
"short_description": "Hipster t-shirt",
"amount": "9.95",
"currency_code": "USD"
},
"client": {
"platform": "iOS",
"paypal_sdk_version": "1.0.0",
"environment": "live",
"product_name": "PayPal iOS SDK"
}
}
{
"proof_of_payment": {
"rest_api": {
"state": "approved",
"payment_id": "API-PAYMENT-ID-1843"
}
} ....similar to above
I would save pay_key
, app_id
, amount
, currency_code
and maybe platform
for some statistics. For the REST i would save the same parameters except for the pay_key
replaced by payment_id
.
Together with these I track the email
of the payer and maybe the description
that i get from my JS.
Any suggestions about this?
Thank you
i've created an application with android, but i have a problem with the currency code, the line code is
PayPalPayment payment = new PayPalPayment(new BigDecimal("10"), "EUR", "EXAMPLE");
this returns a error message:paymentExample_INVALID(3518): An invalid payment was submitted. Please see the docs.
I don't understand why
somebody can help me?
thnx
Is it possible to provide donate feature via this Android SDK?
I'd like to have simple onClick which would start (intent, broadcast) to SDK which would lead user through login/card setup/donation amount select/etc...
Could you please add AAR distribution package on Maven repository (or Maven repository within branch in this github repo) ?
Javadocs and all the resources could be distributed in such way.
AAR is preferred because of Gradle integration and possibility to distribute not only Java CLASS files within signed archives.
I launch the PayPalSDKSample and pressed "Buy a thing" button.
The SDK pop up a dialog showing following message:
Unauthorized Device
Payments from this device are not allowed.
And I found there is one line error message on LogCat console:
Authentication error: Unable to respond to any of these challenges: {}
Don't know what's going on.
Tested with Nexus 7 & Galaxy Nexus
Link to javadocs on README.md file is broken:
https://github.com/paypal/PayPal-Android-SDK/blob/javadoc/index.html
01-09 18:07:27.740: D/dalvikvm(32104): Trying to load lib /data/data/com.packagename/lib/libcardioDecider.so 0x427c6758
01-09 18:07:27.740: D/dalvikvm(32104): Added shared lib /data/data/com.packagename/lib/libcardioDecider.so 0x427c6758
01-09 18:07:27.740: D/dalvikvm(32104): Trying to load lib /data/data/com.packagename/lib/libopencv_core.so 0x427c6758
01-09 18:07:27.775: D/dalvikvm(32104): Added shared lib /data/data/com.packagename/lib/libopencv_core.so 0x427c6758
01-09 18:07:27.775: D/dalvikvm(32104): No JNI_OnLoad found in /data/data/com.packagename/lib/libopencv_core.so 0x427c6758, skipping init
01-09 18:07:27.775: D/dalvikvm(32104): Trying to load lib /data/data/com.packagename/lib/libopencv_imgproc.so 0x427c6758
01-09 18:07:27.795: D/dalvikvm(32104): Added shared lib /data/data/com.packagename/lib/libopencv_imgproc.so 0x427c6758
01-09 18:07:27.795: D/dalvikvm(32104): No JNI_OnLoad found in /data/data/com.packagename/lib/libopencv_imgproc.so 0x427c6758, skipping init
01-09 18:07:27.795: D/dalvikvm(32104): Trying to load lib /data/data/com.packagename/lib/libcardioRecognizer.so 0x427c6758
01-09 18:07:27.815: D/dalvikvm(32104): Added shared lib /data/data/com.packagename/lib/libcardioRecognizer.so 0x427c6758
01-09 18:07:28.360: I/Choreographer(32104): Skipped 48 frames! The application may be doing too much work on its main thread.
01-09 18:07:28.475: E/InputEventReceiver(32104): Exception dispatching input event.
01-09 18:07:28.480: E/MessageQueue-JNI(32104): Exception in MessageQueue callback: handleReceiveCallback
01-09 18:07:28.495: E/MessageQueue-JNI(32104): java.lang.NullPointerException
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at com.paypal.android.sdk.payments.PaymentMethodActivity.onBackPressed(Unknown Source)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.app.Activity.onKeyUp(Activity.java:2192)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.KeyEvent.dispatch(KeyEvent.java:2729)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.app.Activity.dispatchKeyEvent(Activity.java:2431)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2009)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3813)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.ViewRootImpl.deliverKeyEvent(ViewRootImpl.java:3747)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3304)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4402)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4380)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4484)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.os.MessageQueue.nativePollOnce(Native Method)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.os.MessageQueue.next(MessageQueue.java:125)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.os.Looper.loop(Looper.java:124)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at android.app.ActivityThread.main(ActivityThread.java:4898)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at java.lang.reflect.Method.invoke(Method.java:511)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
01-09 18:07:28.495: E/MessageQueue-JNI(32104): at dalvik.system.NativeStart.main(Native Method)
01-09 18:07:28.500: D/AndroidRuntime(32104): Shutting down VM
01-09 18:07:28.500: W/dalvikvm(32104): threadid=1: thread exiting with uncaught exception (group=0x41b5f2a0)
01-09 18:07:28.505: W/System.err(32104): java.lang.NullPointerException
01-09 18:07:28.505: W/System.err(32104): at com.paypal.android.sdk.payments.PaymentMethodActivity.onBackPressed(Unknown Source)
01-09 18:07:28.505: W/System.err(32104): at android.app.Activity.onKeyUp(Activity.java:2192)
01-09 18:07:28.505: W/System.err(32104): at android.view.KeyEvent.dispatch(KeyEvent.java:2729)
01-09 18:07:28.505: W/System.err(32104): at android.app.Activity.dispatchKeyEvent(Activity.java:2431)
01-09 18:07:28.505: W/System.err(32104): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2009)
01-09 18:07:28.505: W/System.err(32104): at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3813)
01-09 18:07:28.510: W/System.err(32104): at android.view.ViewRootImpl.deliverKeyEvent(ViewRootImpl.java:3747)
01-09 18:07:28.510: W/System.err(32104): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3304)
01-09 18:07:28.510: W/System.err(32104): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4402)
01-09 18:07:28.510: W/System.err(32104): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4380)
01-09 18:07:28.510: W/System.err(32104): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4484)
01-09 18:07:28.510: W/System.err(32104): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
01-09 18:07:28.510: W/System.err(32104): at android.os.MessageQueue.nativePollOnce(Native Method)
01-09 18:07:28.510: W/System.err(32104): at android.os.MessageQueue.next(MessageQueue.java:125)
01-09 18:07:28.510: W/System.err(32104): at android.os.Looper.loop(Looper.java:124)
01-09 18:07:28.510: W/System.err(32104): at android.app.ActivityThread.main(ActivityThread.java:4898)
01-09 18:07:28.510: W/System.err(32104): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 18:07:28.510: W/System.err(32104): at java.lang.reflect.Method.invoke(Method.java:511)
01-09 18:07:28.510: W/System.err(32104): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
01-09 18:07:28.510: W/System.err(32104): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
01-09 18:07:28.510: W/System.err(32104): at dalvik.system.NativeStart.main(Native Method)
01-09 18:07:28.530: E/AndroidRuntime(32104): FATAL EXCEPTION: main
01-09 18:07:28.530: E/AndroidRuntime(32104): java.lang.NullPointerException
01-09 18:07:28.530: E/AndroidRuntime(32104): at com.paypal.android.sdk.payments.PaymentMethodActivity.onBackPressed(Unknown Source)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.app.Activity.onKeyUp(Activity.java:2192)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.KeyEvent.dispatch(KeyEvent.java:2729)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.app.Activity.dispatchKeyEvent(Activity.java:2431)
01-09 18:07:28.530: E/AndroidRuntime(32104): at com.android.internal.policy.impl.PhoneWindow$DecorView.dispatchKeyEvent(PhoneWindow.java:2009)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.ViewRootImpl.deliverKeyEventPostIme(ViewRootImpl.java:3813)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.ViewRootImpl.deliverKeyEvent(ViewRootImpl.java:3747)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.ViewRootImpl.deliverInputEvent(ViewRootImpl.java:3304)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.ViewRootImpl.doProcessInputEvents(ViewRootImpl.java:4402)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.ViewRootImpl.enqueueInputEvent(ViewRootImpl.java:4380)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.ViewRootImpl$WindowInputEventReceiver.onInputEvent(ViewRootImpl.java:4484)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.view.InputEventReceiver.dispatchInputEvent(InputEventReceiver.java:171)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.os.MessageQueue.nativePollOnce(Native Method)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.os.MessageQueue.next(MessageQueue.java:125)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.os.Looper.loop(Looper.java:124)
01-09 18:07:28.530: E/AndroidRuntime(32104): at android.app.ActivityThread.main(ActivityThread.java:4898)
01-09 18:07:28.530: E/AndroidRuntime(32104): at java.lang.reflect.Method.invokeNative(Native Method)
01-09 18:07:28.530: E/AndroidRuntime(32104): at java.lang.reflect.Method.invoke(Method.java:511)
01-09 18:07:28.530: E/AndroidRuntime(32104): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1006)
01-09 18:07:28.530: E/AndroidRuntime(32104): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:773)
01-09 18:07:28.530: E/AndroidRuntime(32104): at dalvik.system.NativeStart.main(Native Method)
Hello
i build andriod app with paypal Android SDK in test account every is ok
but when i change to Live credentials , i change EXTRA_RECEIVER_EMAIL and EXTRA_CLIENT_ID to real account and i comment ENVIRONMENT_SANDBOX and run my app
when i log in with my real account paypal error "Login Failed Syetem error. Please try again later"
PayPal is available in Russia and people can have accounts in RUB. Why this SDK doesn't support it? Do you have any plans about RUB?
Now, when I try to create PayPalPayment object with RUB currency, PaymentActivity doesn't start with no errors or logs.
Few days ago I run into a problem with PayPal SDK for Android. During the implementation of own solution (with correct client id and receiver email) I was always getting message "Unauthorized device" in sandbox mode. But in provided source code that comes with SDK everything was working fine, which made me confused and suspicious about the source of the problem.
After a long investigation (almost took me 2 days to find out) I've found that the problem was (!) in the "string.xml" file, where in one text line I've used the "& amp ;" (sorry with spaces, the github otherwise converts it into &) code since it's totally legit to use in string resources. As soon as I've removed it I've been able to launch the PayPal activity successfully in sandbox mode.
Hope this could help to someone who faced similar problem and maybe to find a fix for that problem.
Paypal Android SDK have some way to do a subscription?
I want offer Paypal how method payment in my app, but would be a subscription and not a simple payment.
If I can use subscription through Paypal, is per month? Have per year too? (Like Google Play)
If not, have some way to us (developers) use subscription Paypal? (Some API).
Thanks.
The app crashes, I tried with different emulators but it always crashes.
"US developers should upgrade now for more features and a better mobile experience. Non-US developers can continue to use MPL for the time being. "
I am not a US developer, I want to know it can support other country, Look forward to your reply.
Payments from this device are not allowed even i have right client_id for sandbox.
MPL version latest one
Could not find class 'android.widget.Switch', referenced from method com.paypal.android.sdk.bm.
Hi,
I am trying to develop an application for a Kiosk for a non-profit organization where donors can come and donate using their credit cards and once payment has been successful, my application can update the back end system (running on a hosted server) for the donor info etc for book keeping.
I have 2 choices
1- Use paypal newly released android SDK which can scan the card using card.io SDK and process the payment
2- Use paypal here card reader, and using the sideloader API , start the HERE application and take payment .
My question is, since it is a kiosk , users will not have paypal credentials and in paypal here application we need to enter username/passwd all the time . Is it true for the Android SDK solution too ?
Also, does the card.io based SDK works with front facing cameras (Nexus 7) ?
Please provide expert advice .
It seems like a huge oversight, but is there really no way to pass any information to the IPN through the mobile SDK? Any ETA on this feature?
Even the pay_keys and ID's don't match up with the IPN. This makes it impossible to do any sort of licensing storing on a mobile device.
I have tested the android-sdk-example of paypal, it works well in the sandbox environment, but only for payment with credit card
and I see the transations in my dashboard all is perfect
but when I try to test payment with paypal account, I don't arrive to login, even if I login with another account other than the one which the payment is send
the only thing in the account is it is not linked to a credit card
how can I fix this issue
thank you in advance
I am using the android paypal sdk with repo bbe7068.
Both receiver and buyer's paypal account's country is Hong Kong in sandbox.
The payment is in HKD and is very simple, only one product item and no shipping or tax fee. Everything works fine if buyer pays the bill via paypal account, but the payment fail if buyer pay via the credit card. An dialog popup with title "Payment Fail" and message "This currency is not presently supported."
I checked the android log but no helpful message found. For your reference, my device is Note2 with android version 4.1.2.
Thanks.
billy
Hello team,
We recently switched from sandbox to prod with the Android PayPal SDK after being approved for live API credentials.
However, in our switch, the card.io UI and ability to save CCs has disappeared. See screenshots: (mock data) http://cl.ly/image/2D3H0F0n1e3v (prod) http://cl.ly/image/0k031Q2u002t
Are those features only available in the debug version or should they be available in prod too? Any idea what may have happened? I will forward this to our developer in case a code sample is requested.
Thanks, and super shoutout to @ppalavilli who greatly assisted us in receiving live credentials in the first place.
I want to know if it is required to have a verified paypal account to receive money through paypal android sdk
because even I have set the environment to production and set live credentials
private static final String CONFIG_ENVIRONMENT = PaymentActivity.ENVIRONMENT_PRODUCTION;
I have that in the response knwoing that I have sent payment from a verified account wich contains solde paypal:
"payment_exec_status": "ERROR"
and payment is not performed
this is why I was wondering if the verified account is required to receive money
Hi
I`m developing a multiuser application with paypal integration.
Multiuser means that login/logout with server backend is supported.
Now I`m trying to implement next workflow:
At this step obviously User2 should not see credentials of User1. But PayPal SDK remembers User1, because he left "stay logged in" flat turned on.
How can I force PayPal activity or service to proceed without credentials?
I found EXTRA_DEFAULT_USER_EMAIL in API docs. But it have effect just once - during first PayPal login. After that, if I start PayPal activity with different EXTRA_DEFAULT_USER_EMAIL, SDK still launches with remembered credentials
Hi,
i need to know is paypal android sdk support multiple item payment like in any shopping cart app?
I have been searching and didn't come up with the solution.
Please, let me know quickly, i will be grateful to you. i am working on a client project.
Hi,
I'm developing a mobile app through the PhoneGap Plugin, but when i call this:
PayPalPayment payment = new PayPalPayment(new BigDecimal("1.75"), "USD", "hipster jeans");
I always get a NumberFormatException
Any suggestions about this?
Thank you
Dear people:
In the last part of the workflow for paying something, a dialog keeps saying "Proceso en curso" as title and "Un momento..." as message. The workflow keeps locked there. This happens when the language of the device is Spanish, but not when it is English. From LogCat appears the next exception:
E/PaymentConfirmActivity(2285): NumberFormatException probably the BigDecimalInvalid long: "3,00"
It seems that there is a problem with the treatment of the decimal separator configured in the device, or something like that. This has been tested in a Kindle fire emulator and in a generic emulator well-known as BlueStacks App Player.
Regards,
Can I use this SDK without permission "android.permission.CAMERA" and "android.permission.VIBRATE" in manifest file? Those two permission are used for card.io only right?
It's quite confuse when final use see those two permission.
I use sandbox. Often when I made payment with credit card, appears error dialog:
Payment Failed.
System error. Please try again later
with logcat message:
E/RequestError﹕ An internal service error has occurred, field:, issue:
E/PayPalService﹕ INTERNAL_SERVICE_ERROR
E/ViewRootImpl﹕ sendUserActionEvent() mView == null
The next time I press the button "Charge credit card", the message changes to:
E/RequestError﹕ The requested resource ID was not found, field:, issue:
E/PayPalService﹕ INVALID_RESOURCE_ID
E/ViewRootImpl﹕ sendUserActionEvent() mView == null
Or the same, but with DUPLICATE_REQUEST_ID code.
Or it can return PaymentConfirmation to 'onActivityResult' function, but the state of payment will be 'created', not 'approved':
{
"payment": {
"short_description": "I bet I do: both ",
"amount": "15",
"currency_code": "USD"
},
"client": {
"platform": "Android",
"paypal_sdk_version": "1.2.6",
"product_name": "PayPal Android SDK; ",
"environment": "sandbox"
},
"proof_of_payment": {
"rest_api": {
"state": "created",
"payment_id": "PAY-0GK76363G8959271TKMC67JY"
}
}
}
How short should be the description expected for the PayPalPayment? User can't see the amount and the currency code when it's not short enough.
I don't think that 'Should fit on one line' is a nice suggestion btw. Can't you just at least use ellipsize on the text when it's long enough?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.