Re: [WebDNA] Paypal Sandbox TCPConnect
This WebDNA talk-list message is from 2012
It keeps the original formatting.
numero = 108783
interpreted = N
texte = Hi Phil,Are you working on a PayPal checkout operation, or working with one of =the other services like invoice or Payflow Pro payments?The reason I ask is that if your goal is to simply use PayPal for =checking out shopping carts from your site, you may be able to save =yourself some time.I built a site that puts all name-value parameters into a form that =posts to www.paypal.com/cgi-bin/webscr with a custom parameter of the =cart #. Then I use PayPal Callbacks API to get payment notifications, =etc.On Mar 6, 2012, at 9:43 AM, WebDNA Solutions wrote:> Some tcpconnects don't work unless you specify the host in> the headers as well as in the tcpconnect tag. Here's an=20> example of the code I use that seems to work:>=20> [text]host=3Dwww.paypal.com[/text]> [text]path=3D/cgi-bin/webscr[/text]> [text]crlf=3D[unurl]%0D%0A[/unurl][/text]> [text]content=3D... name=3Dvalue pairs here ...[/text]>=20> [tcpconnect host=3D[host]&port=3D443&ssl=3DT]> [tcpsend skipheader=3DT]POST [path] HTTP/1.0[crlf][!]> [/!]Host: [host][crlf][!]> [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT =5.0)[crlf][!]> [/!]Content-Type: text/namevalue[crlf][!]> [/!]Content-Length: [countchars][content][/countchars][crlf][crlf][!]> [/!][content][crlf][!]> [/!][/tcpsend]> [/tcpconnect]>=20> Sincerely,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> WebDNA Programming and Linux Server Administration>=20>=20>=20>=20>> Hi All,>>=20>> Many years since I have posted to WebDNA talk list...>> last post 2004!>>=20>> I am trying to connect to the Paypal sandbox endpoint>> api-3t.sandbox.paypal.com and cannot:>>=20>> The only difference between these two TCPConnects is the>> host name...>>=20>> [text]CRLF=3D[unurl]%0D%0A[/unurl][/text]>>=20>> [!] CONNECTS [/!]
>> [tcpconnect>> host=3Dapi-3t.paypal.com&port=3D443&ssl=3DT][tcpsend>> skipheader=3DT]POST /nvp HTTP/1.0[CRLF]Content-type:>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>=20>> [!] DOES NOT CONNECT - TIMES OUT[/!]
>> [tcpconnect>> host=3Dapi-3t.sandbox.paypal.com&port=3D443&ssl=3DT][tcpsend>> skipheader=3DT]POST /nvp HTTP/1.0[CRLF]Content-type:>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>=20>>=20>> The sandbox endpoint is correct as can be seen here:>>=20>> [!] CONNECTS [/!]
>>
TEST>>=20>> [!] CONNECTS [/!]
>>
>>=20>> I'm not bothered (yet) about the ACK=3DFailure, just would>> love to make the connection!>>=20>> Any advice you guys can offer would be great.>>=20>> All the best,>>=20>> Phil.>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list
.>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
Associated Messages, from the most recent to the oldest:
Hi Phil,Are you working on a PayPal checkout operation, or working with one of =the other services like invoice or Payflow Pro payments?The reason I ask is that if your goal is to simply use PayPal for =checking out shopping carts from your site, you may be able to save =yourself some time.I built a site that puts all name-value parameters into a form that =posts to www.paypal.com/cgi-bin/webscr with a custom parameter of the =cart #. Then I use PayPal Callbacks API to get payment notifications, =etc.On Mar 6, 2012, at 9:43 AM, WebDNA Solutions wrote:> Some tcpconnects don't work unless you specify the host in> the headers as well as in the tcpconnect tag. Here's an=20> example of the code I use that seems to work:>=20> [text]host=3Dwww.paypal.com[/text]> [text]path=3D/cgi-bin/webscr[/text]> [text]crlf=3D[unurl]%0D%0A[/unurl][/text]> [text]content=3D... name=3Dvalue pairs here ...[/text]>=20> [tcpconnect host=3D[host]&port=3D443&ssl=3DT]> [tcpsend skipheader=3DT]POST [path] HTTP/1.0[crlf][!]> [/!]Host: [host][crlf][!]> [/!]User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT =5.0)[crlf][!]> [/!]Content-Type: text/namevalue[crlf][!]> [/!]Content-Length: [countchars][content][/countchars][crlf][crlf][!]> [/!][content][crlf][!]> [/!][/tcpsend]> [/tcpconnect]>=20> Sincerely,> Kenneth Grome> WebDNA Solutions> http://www.webdnasolutions.com> WebDNA Programming and Linux Server Administration>=20>=20>=20>=20>> Hi All,>>=20>> Many years since I have posted to WebDNA Talk List...>> last post 2004!>>=20>> I am trying to connect to the Paypal sandbox endpoint>> api-3t.sandbox.paypal.com and cannot:>>=20>> The only difference between these two TCPConnects is the>> host name...>>=20>> [text]CRLF=3D[unurl]%0D%0A[/unurl][/text]>>=20>> [!] CONNECTS [/!]
>> [tcpconnect>> host=3Dapi-3t.paypal.com&port=3D443&ssl=3DT][tcpsend>> skipheader=3DT]POST /nvp HTTP/1.0[CRLF]Content-type:>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>=20>> [!] DOES NOT CONNECT - TIMES OUT[/!]
>> [tcpconnect>> host=3Dapi-3t.sandbox.paypal.com&port=3D443&ssl=3DT][tcpsend>> skipheader=3DT]POST /nvp HTTP/1.0[CRLF]Content-type:>> text/namevalue[CRLF][CRLF][/tcpsend][/tcpconnect]>>=20>>=20>> The sandbox endpoint is correct as can be seen here:>>=20>> [!] CONNECTS [/!]
>> TEST>>=20>> [!] CONNECTS [/!]
>> >>=20>> I'm not bothered (yet) about the ACK=3DFailure, just would>> love to make the connection!>>=20>> Any advice you guys can offer would be great.>>=20>> All the best,>>=20>> Phil.>> --------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> archives: http://mail.webdna.us/list/talk@webdna.us>> Bug Reporting: support@webdna.us> ---------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us> Bug Reporting: support@webdna.us
aaronmichaelmusic@gmail.com
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
Document Contains No Data! (1997)
Fun with dates (1997)
[WRITEFILE] to create database spider food? (1998)
variables in [addlineitem] (1998)
WebDNA 6 vs. Lasso 7 (2004)
[WebDNA] Lightbox2 for WebDNA [updated] (2008)
[cart] not being interpreted inside [founditems] (1997)
[subtotal] and others (1997)
Running _every_ page through WebCat-error.html (1997)
Link with [cart] in db field (1999)
select multiple (1997)
RE: OK, here goes... (1997)
Get current URL with Variables (2005)
WC2b15 File Corruption (1997)
Clickable maps and WebCatalog? (1996)
$purchase WITHOUT creditcar (1997)
Problems passing [SKU] with $Replace in 2.0 (1997)
Date problems-more (1997)
[WebDNA] Digest from talk@webdna.us (2018)
select multiple (1997)