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
282 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 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

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
This article was initially published on Monitis Blog, you can read it here . When it comes to deciding which approach to website performance monitoring is best for your business, unfortunately, like so many options in life . . . it depends. In th…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.
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…

726 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