Steve,
@TOKENIZE (when using the rdelim and cdelim attributes) is bugged. I have found and corrected the bug, which will show up in 7.0.7. Sorry for the trouble there. Robert From: Robert Shubert [mailto:[email protected]] Sent: Saturday, September 20, 2014 1:04 AM To: [email protected] Subject: RE: TeraScript-Talk: PayPal Express Checkout Steve, Use @ARRAY instead: <@ARRAY value=<@urldecode str="<@var request$resp>"> rdelim='&' cdelim='='> What @TOKENIZE is doing in that case looks like it might be a bug. Robert From: Fogelson, Steve [mailto:[email protected]] Sent: Saturday, September 20, 2014 12:33 AM To: [email protected] <mailto:[email protected]> Subject: RE: TeraScript-Talk: PayPal Express Checkout Hi Robert, Thanks for the information. I am making some progress. Here is the output I currently have. It appears I have an authentication problem, but I am also having a challenge with <@TOKENIZE> The tags I am using are in red. For some reason I am getting 3 columns instead of 2 Also the TIMESTAMP value isn’t in the tokenized array. I’m missing something. Steve httpData: TIMESTAMP=2014%2d09%2d20T04%3a13%3a57Z&CORRELATIONID=7ade828b9f7d4&ACK=Failure&VERSION=98%2e0&BUILD=12932421&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security%20error&L_LONGMESSAGE0=Security%20header%20is%20not%20valid&L_SEVERITYCODE0=Error httpStatusCode: 200 httpResponseCode: OK <@urldecode str="<@var request$httpData>"> Decode: TIMESTAMP=2014-09-20T04:13:57Z&CORRELATIONID=7ade828b9f7d4&ACK=Failure&VERSION=98.0&BUILD=12932421&L_ERRORCODE0=10002&L_SHORTMESSAGE0=Security error&L_LONGMESSAGE0=Security header is not valid&L_SEVERITYCODE0=Error <@assign request$Response "<@tokenize str='<@urldecode str="<@var request$httpData>">' rdelim='&' cdelim='='>"> request$Response: TIMESTAMP CORRELATIONID 7ade828b9f7d4 ACK Failure VERSION 98.0 BUILD 12932421 L_ERRORCODE0 10002 L_SHORTMESSAGE0 Security error L_LONGMESSAGE0 Security header is not valid L_SEVERITYCODE0 Error <@numcols array="request$Response"> NumCols: 3 <@numrows array="request$Response"> NumRowss: 9 From: Robert Shubert [mailto:[email protected]] Sent: Friday, September 19, 2014 12:41 PM To: [email protected] <mailto:[email protected]> Subject: RE: TeraScript-Talk: PayPal Express Checkout Steve, You are correct. You use @URL or Webcall to begin the transaction with PayPal. They return a URL to you, which you redirect the user to by setting the httpheader and using a 302 redirect. You don’t need to include the @USERREFERENCE as long as the return url you provide to PayPal is at the same domain, this is because the cookie should still be active in the browser session. Including the @USERREFERENCEARGUMENT in the url won’t hurt, however. The most complex part of the process is building up the name value pairs and parsing the returns from paypal. Since some values are URLs, they need to be properly @URLENCODEd. PayPal offers a good sandbox environment to test the complete cycle, which is helpful. I know Ben Johansen is knowledgeable about this process if you are considering hiring a consultant. Robert From: Fogelson, Steve [mailto:[email protected]] Sent: Thursday, September 18, 2014 11:25 PM To: [email protected] <mailto:[email protected]> Subject: TeraScript-Talk: PayPal Express Checkout Has anyone put together a TeraScript app for PayPal Express Checkout? It appears that PayPal requires a direct url to their site with customer info including total purchase amount. The customer logs in to PayPal and approves purchase and payment. Then PayPal redirects back to the originating site. Wondering about the logic to accomplish this in TeraScript. Assuming I would use the Web Call action to start the transaction with PayPal, but not sure about the redirect back from PayPal. It may take the customer a while to do their business on PayPal. Should the PayPal redirect url include the <@USERREFERENCE>? Thanks for any insight you can provide to accomplish this. Thanks Steve Fogelson Internet Commerce Solutions _____ To unsubscribe from this list, please send an email to <mailto:[email protected]> [email protected] with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to [email protected] <mailto:[email protected]> with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to [email protected] <mailto:[email protected]> with "unsubscribe terascript-talk" in the body. _____ To unsubscribe from this list, please send an email to [email protected] <mailto:[email protected]> with "unsubscribe terascript-talk" in the body. ---------------------------------------- To unsubscribe from this list, please send an email to [email protected] with "unsubscribe terascript-talk" in the body.
