|
|
 |
Re: FN-FORUM: .Net Form Posting
date posted 26th February 2008 20:39
Phillip Healey wrote:
>> It's difficult for me to picture exactly what's going on.
>> Ive got a page with various things going on to do with displaying items that
>> the user has chosen to purchase. When the user hits the submit button to
>> confirm they wish to purchase the items listed, it takes them to PayPal,
>> whereby they complete the necessary payment options etc. To do this i need
>> to pass details to PayPal, as form values.
>>
>> As ive not got this working yet im only sending over a simple set of form
>> elements to PayPal. Im doing this by adding the element as Text to a Literal
>> tag. However PayPal doesn't seem to be picking this info up. Thus suggesting
>> that the info isn't being passed over to it, in the Post.
>>
My timing is out-of-whack on this thread (I don't know why) so apologies.
Instead of using a literal you could set some HiddenFields at design
time eg:
and then do your thing as you describe above, but instead of setting the
Literal values at run time, set values on your HiddenFields eg:
HfPaypalThing1.Value = "SomeBasketId"
HfPaypalThing2.Value = "BasketTotalGBP"
and these values should be happily posted off to Paypal with the rest of
the form collection when using PostBackUrl.
As a test don't post to paypal but to another page in your app and have
it write out the form collection (or just have Trace enabled).
Hope this helps,
Neil
|
 |
|