Skip to main content

PayPal Community

  • Dashboard
  • Send and Request
  • Wallet
  • Business
  • Help
Log in
  • Welcome
    • Guidelines
    • News and Events
    • Suggestions for PayPal
    • General Discussions
  • PayPal Help Community
    • Managing Account
    • Transactions
    • Wallet
    • Security and Fraud
    • Products & Services
    • Reporting
  • MTS Community
    • PayPal Upgrade Community
    • PayPal Payments Standard
    • REST APIs
    • NVP/SOAP APIs
    • SDKs
    • Sandbox Environment
    • PayPal Reporting
    • Payflow
    • Ideas for MTS
    • Client-side Integration
    • Server-side Integration
  • The Archives
    • PayPal Help Community Archives
      • Managing Account Archives
      • Transactions Archives
      • Wallet Archives
      • Security and Fraud Archives
      • Products & Services Archives
      • Reporting Archives
    • Help Community
      • PayPal Basics Archives
      • Payments Archives
      • My Money Archives
      • My Account Archives
      • Disputes and Limitations Archives
      • Products and Services Archives
      • PayPal Credit Archives
    • Merchant Community
      • Merchant Products
      • Business Tools Archives
      • Reporting Archives
      • Managing Risk and Fraud Archives
    • Help Archives
      • About Business (Archive)
      • About Payments (Archive)
      • About Settings (Archive)
      • About eBay (Archive)
      • About Protections (Archive)
      • About Products (Archive)
    • Social and Your Voice Archives
      • Off Topic (Archive)
      • My Feedback for PayPal (Archive)
    • About PayPal Archives
      • Watercooler (Archive)
      • Tax Information (Archive)
      • Fees (Archive)
      • eBay and PayPal (Archive)
      • Coupons and promotions (Archive)
    • My Account Archives
      • My account settings (Archive)
      • Account limits and verification (Archive)
      • Account balance (Archive)
      • Bank accounts and credit cards (Archive)
    • Payments Archives
      • Sending money (Archive)
      • Receiving money (Archive)
      • Refunds (Archive)
      • Donations and Fundraising (Archive)
    • Disputes and Security Archives
      • Disputes and claims (Archive)
      • Fraud, phishing and spoof (Archive)
    • My Business Archives
      • Merchant services (Archive)
      • Reporting and tracking (Archive)
      • Shipping (Archive)
    • PayPal Products Archives
      • PayPal Debit Mastercard (Archive)
      • PayPal Extras MasterCard (Archive)
      • PayPal Mobile & Other Services (Archive)
      • Student Accounts (Archive)
      • Bill Me Later (Archive)
    • Getting to know PayPal
      • My PayPal account
      • Security and protection
    • Receiving and sending money
      • Buying with PayPal
      • Selling with PayPal
    • PayPal Here UK
      • PayPal Here News and Events
      • PayPal Here Community
      • Chip and Pin Card Reader
      • PayPal Here App

The Community Forum is not available for new posts or responses; previous posts remain available to review. For comprehensive support options, please visit PayPal.com/HelpCenter
Merchant Technical Support: For technical support and related questions, please visit our Technical Support Help Center or Developer Central

If you want to report illegal content under the EU Digital Services Act, please do so here

since ‎Nov-16-2017
Country: United States
Type: Business
cdew4901
cdew4901 Contributor
Contributor
1
Post
0
Kudos
0
Solutions
Your PayPal Anniversary
The Return
Organized
Active
View all
Latest Contributions by cdew4901
  • Topics cdew4901 has Participated In
  • Latest Contributions by cdew4901

Android PayPal Here sideloader sample app - PayPal...

by cdew4901 Contributor in About Products
‎Nov-16-2017 02:19 PM
‎Nov-16-2017 02:19 PM
I'm building theAndroid v2 here-sideloader-api-sample app with Android Studio - unfortunately PPHere is crashing on return to the sample app IF I HAVE SWIPED a credit card (or entered in a card number). The invoice amount is deducted from the payee and added to the merchant, but when I tap 'New Sale', PayPal Here crashes. I tried to minimize the ReturnURL to simply pass back Type=UNKNOWN, but it still crashes. Accepting cash or canceling payment returns me to the sample app without crashing PayPal Here.   Is there something I need to setup on the PayPal account that I am using?   I'm using PayPal here 2.9.0, Android version 7.0 on a Galaxy Tab S3. I have used a live PayPal account and a sandbox account. Here is my URL: paypalhere://takePayment/v2?accepted=card&returnUrl=pphsample%3A%2F%2FhandleResponse%3FType%3DUNKNOWN&invoice=%7B%22currencyCode%22%3A%22USD%22%2C%22discountPercent%22%3A%220%22%2C%22itemList%22%3A%7B%22item%22%3A%5B%7B%22description%22%3A%22I%20Love%20APIs%20shirt%22%2C%22name%22%3A%22T-Shirt%22%2C%22quantity%22%3A1.0%2C%22taxName%22%3A%22Sales%20Tax%22%2C%22taxRate%22%3A%220.00%22%2C%22unitPrice%22%3A1.0%7D%5D%7D%2C%22merchantEmail%22%3A%22merchant%40test.com%22%2C%22number%22%3A%2270%22%2C%22payerEmail%22%3A%22customer%40test.com%22%2C%22paymentTerms%22%3A%22DueOnReceipt%22%7D&step=choosePayment   Here is the call stack where PPHere crashes: --------- beginning of crash 11-14 10:31:54.574 28770-28770/? E/AndroidRuntime: FATAL EXCEPTION: main Process: com.paypal.here, PID: 28770 java.lang.RuntimeException: Unable to resume activity {com.paypal.here/com.paypal.here.activities.charge.ChargeActivity}: java.lang.NullPointerException: Attempt to invoke interface method 'com.paypal.merchant.sdk.domain.SecureCreditCard com.paypal.merchant.sdk.domain.TransactionRecord.getSecureCreditCard()' on a null object reference at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3841) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3882) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1689) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6780) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386) Caused by: java.lang.NullPointerException: Attempt to invoke interface method 'com.paypal.merchant.sdk.domain.SecureCreditCard com.paypal.merchant.sdk.domain.TransactionRecord.getSecureCreditCard()' on a null object reference at com.paypal.here.services.thirdpartyintegration.ThirdPartyInvoice.convertPaymentType(SourceFile:313) at com.paypal.here.services.thirdpartyintegration.ThirdPartyInvoice.createThirdPartyReturnUrl(SourceFile:276) at com.paypal.here.activities.charge.BaseChargePresenter.handleThirdPartyCallback(SourceFile:832) at com.paypal.here.activities.charge.BaseChargePresenter.onPreviousTransactionCompleted(SourceFile:480) at com.paypal.here.activities.charge.BaseChargePresenter.initOrder(SourceFile:454) at com.paypal.here.activities.charge.BaseChargePresenter.onResume(SourceFile:434) at com.paypal.here.activities.charge.AudioChargePresenter.onResume(SourceFile:81) at com.paypal.here.activities.charge.orderentry.ChargePresenterDelegate.onResume(SourceFile:402) at com.paypal.here.activities.charge.ChargeActivity.onResume(SourceFile:620) at android.app.Instrumentation.callActivityOnResume(Instrumentation.java:1277) at android.app.Activity.performResume(Activity.java:7094) at android.app.ActivityThread.performResumeActivity(ActivityThread.java:3818) at android.app.ActivityThread.handleResumeActivity(ActivityThread.java:3882)  at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1689)  at android.os.Handler.dispatchMessage(Handler.java:102)  at android.os.Looper.loop(Looper.java:154)  at android.app.ActivityThread.main(ActivityThread.java:6780)  at java.lang.reflect.Method.invoke(Native Method)  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1496)  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1386)    Any help very much appreciated! ... View more
Paypal Logo
  • Help
  • Contact Us
  • Security
  • Fees
  • © 1999-2025 PayPal, Inc. All rights reserved.
  • Privacy
  • Legal
  • Cookies
  • Policy Updates

The money in your balance is eligible for pass-through FDIC insurance.

The PayPal Cash Mastercard is issued by The Bancorp Bank pursuant to a license by Mastercard International Incorporated. The Bancorp Bank; Member FDIC.

Powered by Khoros
Welcome to the PayPal Community!