?
Solved

ASP.Net and PayPal Custom Var.  How do i retrieve the custom variable from my lpn listener page

Posted on 2014-07-18
3
Medium Priority
?
297 Views
Last Modified: 2016-03-24
How do i retrieve the Custom values that are sent from  Pay Pal to my ipn listener page?  All of my could is ASP.NET in C#

Thanks.
0
Comment
Question by:bmanmike39
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Expert Comment

by:Andrew Angell
ID: 40205947
All of the parameters that are sent to your IPN script are sent as POST data just like a form POST.  

The only custom value(s) you can send to PayPal in payment requests are within the CUSTOM parameter.  Just want to make sure you understand you can't just create your own custom parameters.  There's only 1, and it's literally called CUSTOM.  It can hold up to 256 characters of text.  

You can pass whatever value you want in the CUSTOM parameter within payment buttons, API requests, etc.  Then that same value will come back in the IPN data as POST field with the same name:  CUSTOM.  

I'm not familiar with C#, but again, you would handle it just like any other basic form processing you might do.
0
 

Author Comment

by:bmanmike39
ID: 40206304
Thanks, but that's what I'm saying, how do you receive the posted back info.  and put it in a variable?
0
 
LVL 11

Accepted Solution

by:
Andrew Angell earned 2000 total points
ID: 40206776
I'm not a .NET developer, but a quick Google search seems to reveal the following...

customVar = Request.Form["custom"];

Open in new window

0

Featured Post

Get 15 Days FREE Full-Featured Trial

Benefit from a mission critical IT monitoring with Monitis Premium or get it FREE for your entry level monitoring needs.
-Over 200,000 users
-More than 300,000 websites monitored
-Used in 197 countries
-Recommended by 98% of users

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Often people are aiming at development of perfect Magento websites. Though, it is easier said than done. You know what’s much easier? To ruin everything. It can be done in seconds. Many of us experimented with design, tried to change some values dir…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question