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
253 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
  • 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 500 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

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…
How important is it to take extra precautions to protect your online business? These are some steps you can take to make sure you're free of any cyber crime.
Viewers will get an overview of the benefits and risks of using Bitcoin to accept payments. What Bitcoin is: Legality: Risks: Benefits: Which businesses are best suited?: Other things you should know: How to get started:
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

910 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now