I am trying to use the following to pre populate a paypal form but keep getting nothing when doing it.
My code is pretty simple:
[code] Dim d As New Dictionary
d.Value(“business”) = “recipient@paypal.com”
d.Value(“first_name”) = “TestValue”
d.Value(“last_name”) = “Testing”
d.Value(“address1”) = “Testing”
d.Value(“address2”) = “Testing”
d.Value(“city”) = “Testing”
d.Value(“state”) = “Testing”
d.Value(“zip”) = “Testing”
d.Value(“lc”) = “US”
d.Value(“email”) = “Testing”
d.Value(“night_phone_a”) = “Testing”
d.Value(“night_phone_b”) = “Testing”
d.Value(“night_phone_c”) = “Testing”
PaypalSocket.SetFormData(d)
// This service simply returns the post data as the result
Dim result As String
result = PaypalSocket.Post(“https://www.paypal.com/cgi-bin/webscr?cmd=_ext-enter”, 30)
result = DefineEncoding(result, Encodings.UTF8)
ShowURL(result)[/code]
PaypalSocket is just a property of my app referring to a HTTPSecureSocket.
Is this the correct way of doing something like this?
Thanks