I =have a number of stores using PPExpress.
Once you understand what =it is doing and why, it is pretty easy to get your head around, the =hardest thing is getting the TCPCONNECT/TCPSEND to work.
And the =guys at PP don't seem to have any idea of which servers to point to. I =did a lot of development work with a couple of their integration people =here in Sydney and now have a pretty bullet proof modular =system.
Yes, all done in WebDNA.
Here is my code for =making the connection =(SetExpressCheckout.inc):
#########################################=##########################
[!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = [/!]
[!] Send Set Express Checkout call to PP and = [/!]
[!] then redirect to PP with token = &n=bsp; [/!]
[!] = Return to return.html with token and order # [/!]
[!] = Cancel to cancel.html with token and order # [/!]
[!] = Extract Customer delivery details if required = [/!]
[!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [/!]
[!]=3D=3D=3D=3D==3D SetExpressCheckout ==3D=3D=3D=3D=3D[/!]
[TEXT]content=3D[!]
[/!]&USER=3D[URL][Lookup= =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIUSERNAME][/URL][!]
[/!]&PWD=3D[URL][Lookup= =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIPASSWORD][/URL][!]
[/!]&VERSION=3D[URL][Lo=okup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIVERSION][/URL][!]
[/!]&SIGNATURE=3D[URL][L=ookup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APISIGNATURE][/URL][!]
[/!]&METHOD=3D[URL]Set=ExpressCheckout[/URL][!]
[/!]&PAYMENTACTION=3D[URL]SALE[/URL][!] =SALE, AUTHORIZATION, =ORDER
[/!]&AMT=3D[URL][THISAMOUNT][/URL][!]
[/!]&CURRENCYCOD=E=3D[URL][ThisCurrency][/URL][!]
[/!]&SOLUTIONTYPE=3D[URL]Sole[/URL=][!]
[/!]&RETURNURL=3D[URL][SiteReturnURL][/URL][!]
[/!]&CAN=CELURL=3D[URL][SiteCancelURL][/URL][!]
[/!]&INVNUM=3D[URL][ThisOrde=r][/URL][!]
[/!]&PAGESTYLE=3D[URL][ThisBrand][/URL][!]
[/!][/TEX=T]
[!]=3D=3D=3D=3D=3D Make Connection =3D=3D=3D=3D=3D[/!]
[text =muti=3DF]paypal_result=3D[tcpconnect host=3D[Lookup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIURL]&port=3D443&ssl=3DT][!]
[/!][tcpse=nd skipheader=3DT]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][!]
[/!][/tcpcon=nect][/text]
[!] -------------- This creates multi text =variables -------------- [/!]
[TEXT =multi=3DT]PayPal_result02=3D0&[PayPal_Result][/TEXT]
[If =("[ACK]"^"success")]
[!] -------------- PAYPAL SUCCESS =-------------- [/!]
[Then]
[Redirect https://[Lookup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]PAYPALURL]/cgi-bin/webscr?cmd=3D_express-checkout&am=p;token=3D[UnURL][Token][/UnURL]]
[/Then]
[!] -------------- = PAYPAL FAILURE -------------- [/!]
[Else][Include =file=3D^paypal/failure.inc][/Else]
[/If]
###################=################################################
URL's
DEVEL=OPMENTAPIURL=api-3t.sandbox.paypal.com
LIVEAPIURL=api-3t.paypal.com
Hopefully this will get you started, =contact me off list and I will dig out the full set of code for =you.
Regards
Stuart Tremain
IDFK Web =Developments
AUSTRALIA
webdna@idfk.com.au
On =02/04/2009, at 11:35 AM, World Wide Art wrote:Has anyone integrated PayPal Express Checkout with WebDNA? =Did you have to use java or another architecture? My guess is that =WebDNA can do it, I am just not sure how.I am having =problems calling the API and getting the response from the =API.Thanks,d.World Wide Art, =Art Gallery and Custom Framingquestions@world-wide-art.comDisney Preferred Animation Art =GallerySpecializing in =Limited Editions by Today's Top Artists and =CustomConservation =Framing.http://www.world-wide-art.com1-800-518-8453 or =1-510-538-8453<World-Wide-Art.vcf>
---------------------------------------=------------------
This message is sent to you because you are =subscribed to
the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: =http://mail.webdna.us/list/talk@webdna.us
old archives: =http://dev.webdna.us/TalkListArchive/
|
I =have a number of stores using PPExpress.
Once you understand what =it is doing and why, it is pretty easy to get your head around, the =hardest thing is getting the TCPCONNECT/TCPSEND to work.
And the =guys at PP don't seem to have any idea of which servers to point to. I =did a lot of development work with a couple of their integration people =here in Sydney and now have a pretty bullet proof modular =system.
Yes, all done in WebDNA.
Here is my code for =making the connection =(SetExpressCheckout.inc):
#########################################=##########################
[!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D = [/!]
[!] Send Set Express Checkout call to PP and = [/!]
[!] then redirect to PP with token = &n=bsp; [/!]
[!] = Return to return.html with token and order # [/!]
[!] = Cancel to cancel.html with token and order # [/!]
[!] = Extract Customer delivery details if required = [/!]
[!]=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D==3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D [/!]
[!]=3D=3D=3D=3D==3D SetExpressCheckout ==3D=3D=3D=3D=3D[/!]
[text]content=3D[!]
[/!]&USER=3D[url][Lookup= =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIUSERNAME][/URL][!]
[/!]&PWD=3D[url][Lookup= =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIPASSWORD][/URL][!]
[/!]&VERSION=3D[url][Lo=okup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIVERSION][/URL][!]
[/!]&SIGNATURE=3D[url][L=ookup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APISIGNATURE][/URL][!]
[/!]&METHOD=3D[url]Set=ExpressCheckout[/URL][!]
[/!]&PAYMENTACTION=3D[url]SALE[/URL][!] =SALE, AUTHORIZATION, =ORDER
[/!]&AMT=3D[url][THISAMOUNT][/URL][!]
[/!]&CURRENCYCOD=E=3D[url][ThisCurrency][/URL][!]
[/!]&SOLUTIONTYPE=3D[url]Sole[/URL=][!]
[/!]&RETURNURL=3D[url][SiteReturnURL][/URL][!]
[/!]&CAN=CELURL=3D[url][SiteCancelURL][/URL][!]
[/!]&INVNUM=3D[url][ThisOrde=r][/URL][!]
[/!]&PAGESTYLE=3D[url][ThisBrand][/URL][!]
[/!][/TEX=T]
[!]=3D=3D=3D=3D=3D Make Connection =3D=3D=3D=3D=3D[/!]
[text =muti=3DF]paypal_result=3D[tcpconnect host=3D[Lookup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]APIURL]&port=3D443&ssl=3DT][!]
[/!][tcpse=nd skipheader=3DT]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][!]
[/!][/tcpcon=nect][/text]
[!] -------------- This creates multi text =variables -------------- [/!]
[TEXT =multi=3DT]PayPal_result02=3D0&[PayPal_Result][/TEXT]
[If =("[ACK]"^"success")]
[!] -------------- PAYPAL SUCCESS =-------------- [/!]
[Then]
[Redirect https://[Lookup =db=3D^paypal/paypal.db&Lookinfield=3DPREF&returnfield=3DPREFVALUE&=amp;value=3D[API-CODE]PAYPALURL]/cgi-bin/webscr?cmd=3D_express-checkout&am=p;token=3D[unurl][Token][/UnURL]]
[/Then]
[!] -------------- = PAYPAL FAILURE -------------- [/!]
[Else][Include =file=3D^paypal/failure.inc][/Else]
[/If]
###################=################################################
URL's
DEVEL=OPMENTAPIURL=api-3t.sandbox.paypal.com
LIVEAPIURL=api-3t.paypal.com
Hopefully this will get you started, =contact me off list and I will dig out the full set of code for =you.
Regards
Stuart Tremain
IDFK Web =Developments
AUSTRALIA
webdna@idfk.com.au
On =02/04/2009, at 11:35 AM, World Wide Art wrote:Has anyone integrated PayPal Express Checkout with WebDNA? =Did you have to use java or another architecture? My guess is that =WebDNA can do it, I am just not sure how.I am having =problems calling the API and getting the response from the =API.Thanks,d.World Wide Art, =Art Gallery and Custom Framingquestions@world-wide-art.comDisney Preferred Animation Art =GallerySpecializing in =Limited Editions by Today's Top Artists and =CustomConservation =Framing.http://www.world-wide-art.com1-800-518-8453 or =1-510-538-8453<World-Wide-Art.vcf>
---------------------------------------=------------------
This message is sent to you because you are =subscribed to
the mailing list <talk@webdna.us>.
To =unsubscribe, E-mail to: <talk-leave@webdna.us>
archives: =http://mail.webdna.us/list/talk@webdna.us
old archives: =http://dev.webdna.us/TalkListArchive/
DOWNLOAD WEBDNA NOW!
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...