Re: [WebDNA] Paypal Sandbox TCPConnect

This WebDNA talk-list message is from

2012


It keeps the original formatting.
numero = 108786
interpreted = N
texte = from what I can remember (with a couple of PHP integrations), the = sandbox URL doesn't match the documentation (first of many = disappointments with the paypal team) Think it's just https://api.sandbox.paypal.com Also, you must set the countrycode to US - it will not work for any = other countries! TC On 6 Mar 2012, at 14:53, Philip Edell wrote: > Hi Ken, >=20 > Thanks very much for your contribution. >=20 > I have tried many combos of header to try and isolate the problem, = without success. >=20 > With your code... >=20 > This works: >=20 > [text]host=3Dapi-3t.paypal.com[/text] > [text]path=3D/nvp[/text] > [text]crlf=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3DTEST[/text] >=20 > This doesn't: >=20 > [text]host=3Dapi-3t.sandbox.paypal.com[/text] > [text]path=3D/nvp[/text] > [text]crlf=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3DTEST[/text] >=20 > All the best, >=20 > Phil. > On 6 Mar 2012, at 14:43, WebDNA Solutions wrote: >=20 >> 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 [/!]
>>>
>> action=3Dhttps://api-3t.sandbox.paypal.com/nvp> >> type=3Dsubmit name=3DMETHOD value=3DTEST> >>> >>>=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 >=20 > --------------------------------------------------------- > 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:

    
  1. Re: [WebDNA] Paypal Sandbox TCPConnect (Stuart Tremain 2012)
  2. Re: [WebDNA] Paypal Sandbox TCPConnect (Stuart Tremain 2012)
  3. Re: [WebDNA] Paypal Sandbox TCPConnect (Philip Edell 2012)
  4. Re: [WebDNA] Paypal Sandbox TCPConnect (christophe.billiottet@webdna.us 2012)
  5. Re: [WebDNA] Paypal Sandbox TCPConnect (Philip Edell 2012)
  6. Re: [WebDNA] Paypal Sandbox TCPConnect (Toby Cox 2012)
  7. Re: [WebDNA] Paypal Sandbox TCPConnect (aaronmichaelmusic@gmail.com 2012)
  8. Re: [WebDNA] Paypal Sandbox TCPConnect (aaronmichaelmusic@gmail.com 2012)
  9. Re: [WebDNA] Paypal Sandbox TCPConnect (Philip Edell 2012)
  10. Re: [WebDNA] Paypal Sandbox TCPConnect (WebDNA Solutions 2012)
  11. [WebDNA] Paypal Sandbox TCPConnect (Philip Edell 2012)
from what I can remember (with a couple of PHP integrations), the = sandbox URL doesn't match the documentation (first of many = disappointments with the paypal team) Think it's just https://api.sandbox.paypal.com Also, you must set the countrycode to US - it will not work for any = other countries! TC On 6 Mar 2012, at 14:53, Philip Edell wrote: > Hi Ken, >=20 > Thanks very much for your contribution. >=20 > I have tried many combos of header to try and isolate the problem, = without success. >=20 > With your code... >=20 > This works: >=20 > [text]host=3Dapi-3t.paypal.com[/text] > [text]path=3D/nvp[/text] > [text]crlf=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3DTEST[/text] >=20 > This doesn't: >=20 > [text]host=3Dapi-3t.sandbox.paypal.com[/text] > [text]path=3D/nvp[/text] > [text]crlf=3D[unurl]%0D%0A[/unurl][/text] > [text]content=3DTEST[/text] >=20 > All the best, >=20 > Phil. > On 6 Mar 2012, at 14:43, WebDNA Solutions wrote: >=20 >> 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 [/!]
>>>
>> action=3Dhttps://api-3t.sandbox.paypal.com/nvp> >> type=3Dsubmit name=3DMETHOD value=3DTEST> >>> >>>=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 >=20 > --------------------------------------------------------- > 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 Toby Cox

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:

[UPPERCASE] (1997) Sorting by date (1997) Anyone have an invoicing system? (2000) Hideif / Showif (1998) Final invoice problems (1998) Major Security Hole (1998) Limit to Field Length in DB (1998) Quiz question: Return all green and blank records? (2001) Nested vs conditional (1997) [TaxableTotal] - not working with AOL and IE (1997) WebObjects (1998) getting images' width/height (1998) PIXO support (1997) Searchable WebCat (etc.) Docs ? (1997) [protect] error page (1997) problem writing to db properly (2000) Changing buttons (1999) Question (2001) Permission Denied Error (2001) Text limits in NT version? (1997)