PayPal gateway

[ACK] (see bottom) should return SUCESS or FAILURE

[table name=PayPalWords&fields=FROM,TO]
%2e .
%2d -
&
%2F /
%2b +
%3a :
%20
[/table]

[text]content=[!]
[/!]METHOD=[url]DoDirectPayment[/url][!]
[/!]&USER=[url]xxxxxxxxxx[/url][!]
[/!]&PWD=[url]xxxxxxxxxx[/url][!]
[/!]&VERSION=[url]3.2[/url][!]
[/!]&SIGNATURE=[url]xxxxxxxxxxxxxxxxxxx[/url][!]
[/!]&CREDITCARDTYPE=[url]MasterCard[/url][!]
[/!]&ACCT=[url]xxxxxxxxxxxxxxxxxxxx[/url][!]
[/!]&EXPDATE=[url]022010[/url][!]
[/!]&CVV2=[url]305[/url][!]
[/!]&AMT=[url].75[/url][!]
[/!]&TRANSACTIONID=[url]1005[/url][!]
[/!]&FIRSTNAME=[url]xxxxxxxxxxxxxxx[/url][!]
[/!]&LASTNAME=[url]xxxxxxxxxxx[/url][!]
[/!]&STREET=[url]xxxxxxxxxxxxxxx[/url][!]
[/!]&CITY=[url]BUFFALO[/url][!]
[/!]&STATE=[url]NY[/url][!]
[/!]&ZIP=[url]14222[/url][!]
[/!]&COUNTRYCODE=[url]US[/url][!]
[/!]&PAYMENTACTION=[url]Sale[/url][!]
[/!]&IPADDRESS=[url]072.045.150.022[/url][!]
[/!][/text]
---<hr>

[text]reply=
[tcpconnect host=api-3t.paypal.com&port=443&ssl=T][!]
[/!][tcpsend skipheader=T]POST /nvp HTTP/1.0[unurl]%0D%0A[/unurl][!]
[/!]USER-AGENT: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)[unurl]%0D%0A[/unurl][!]
[/!]Content-type: text/namevalue[unurl]%0D%0A[/unurl][!]
[/!]Content-Length: [countchars][content][/CountChars][unurl]%0D%0A[/unurl][!]
[/!]Content-type: text/namevalue[unurl]%0D%0A[/unurl][!]
[/!][unurl]%0D%0A[/unurl][!]
[/!][content][unurl]%0D%0A[/unurl][!]
[/!][/tcpsend][!]
[/!][/tcpconnect]
[/text]
---<hr>

reply=[reply]<hr>

[text]String=[convertwords table=paypalwords][reply][/convertwords][/text]

string=[string]<hr>

[text]TIMESTAMP=[middle startafter=TIMESTAMP=&endbefore=ZCORRELATIONID][string][/middle][/text]

date=[timestamp]

[text]ACK=[middle startafter=ACK=&endbefore=VERSION][string][/middle][/text]
ACK=[ACK]
Brian Harrington

DOWNLOAD WEBDNA NOW!

Top Articles:

F.A.Q

A compilation of some user's questions...

WebDNA reference

...

WebDNA Libraries

A list of available libraries for WebDNA...

AWS Raw WebDNA LAMP-Plus WebServer

Amazon Web Services (AWS) README for Machine Image ID...

Download WebDNA Applications

WebDNA applications...

Technical Change History

This Technical Change History provides a reverse chronological list of WebDNA changes...

Related Readings:

Setting a 30-minute Cookie

Configuring the expires time for a short-term cookie is tricky...

File upload example

...

random password-generator code

Generate a random alpha-numeric string...

Handling credit card numbers

Encrypting the credit card numbers does the job quite nicely...

Do you hate updating the copyright notice at the bottom of all your pages?

It's January 1st and you have to update the copyright notice at the bottom of all your websites...

PayPal gateway

...