Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6203999
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:00:50+00:00 2026-05-24T05:00:50+00:00

I am implementing PayPal in my Android application and I want to send multiple

  • 0

I am implementing PayPal in my Android application and I want to send multiple parameters to PayPal as query string with IPN URL.

For example

http://www.example.com/ipn/txnId=12&cartId=12

but the problem is when I use this URL as IPN URL PayPal gives me an error.

I have tried with URLEncoding but again no successful payment.

If I try with single parameter it is working.

Example

http://www.example.com/ipn/txnId=12

I encountered a problem that PayPal is not accept & characters in string
so I have tried to replace & with & and also \\& but it didn’t help either.

I know I can set multiple parameters into a single variable and pass it to PayPal but I want to pass multiple parameters like query string.

How can I have PayPal accept my payment with multiple parameters?

EDIT

Currently i am using this code for encode URL but it fails.

protected String addLocationToUrl(String url){

        if(!url.endsWith("?"))
            url += "?";

        List<NameValuePair> params = new LinkedList<NameValuePair>();

            params.add(new BasicNameValuePair("txnId", "45"));
            params.add(new BasicNameValuePair("cartId", "34"));



        String paramString = URLEncodedUtils.format(params, "utf-8");

        url += paramString;


        return url;
    }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:00:51+00:00Added an answer on May 24, 2026 at 5:00 am

    From p20 of the developers guide at
    https://cms.paypal.com/cms_content/en_US/files/developer/PP_PayflowPro_Guide.pdf

    Using Special Characters in Values

    Because the ampersand ( & ) and equal sign (=) characters have special meanings in the PARMLIST, name-value pairs like the following examples are not valid:

    NAME=Ruff & Johnson

    COMMENT1=Level=5

    To use special characters in the value of a name-value pair, use a length tag. The length tag specifies the exact number of characters and spaces that appear in the value. The following name-value pairs are valid:

    NAME[14]=Ruff & Johnson

    COMMENT1[7]=Level=5

    UPDATE

    Following our conversation discussed in the Android Disussion Room it became apprent that you were using the Paypal Payment API for Android. Paypal do not provide support for multiple parameters in the IPN address using the Android Payment API.

    One option would be to replace the & character with one that does not have a special meaning in URL’s. Then parse the values from a single parameter value when recieved by your IPN listener, however you would also have to replace the subsequent = characters.

    e.g. http://www.example.com/ipn/params=txnId_12-cartId_12

    You stated that you require these additional parameters for validation purposes but validation should be implemented as outlined by paypal if it is to securely implemented.

    Please read the Overview of Instant Payment Notification. This describes the IPN process and what you need to validate IPN requests to your listening service.

    You will also find an example for Implementing an IPN listener in PHP

    A complete list of IPN message body parameters can be found in the Order Management Integration Guide

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am implementing an interpreter for the LISP defined in, http://www.scribd.com/vacuum?url=http://www.ee.ryerson.ca/~elf/pub/misc/micromanualLISP.pdf My problem is
I'm implementing PayPal IPN & PDT. After some headache & time at the sandbox,
I'm a relative PHP newbie implementing a PayPal IPN listener and all seems to
When implementing a class with multiple properties (like in the toy example below), what
I've finished implementing the PayPal Express Checkout Library (MECL) into my Android App -
I am implementing a PayPal IPN page and would like to check to ensure
When implementing SuperBoxSelect (http://www.sencha.com/forum/showthread.php?69307-3.x-Ext.ux.form.SuperBoxSelect), I've realized that it currently does not support shift +
I implementing a EventQueue and get notified when AWTEvents are send. I wait till
I'm implementing a tagging system for a website. There are multiple tags per object
I am implementing a HttpRequestValidationException in my Application_Error Handler, and if possible, I want

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.