Re: Good vs. Bad; also [setHeader]
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 46429
interpreted = N
texte = You want to do the unUrl's on every variable on every page and include(don't forget outgoing emails) *after* the return back from A/N. Yes, aPITA, but otherwise they will be url'ized and will break thegoodpath/badpath code.You are correct, you want to setheader before you issue your purchase.GK| A few new questions growing out of my ongoing adventure with| AuthorizeNet.|| I'm passing my thanks page to A'Net as the ADC_URL, thusly:| thanks.html?command=purchase&cart=[cart]&db=my.db&PayMethod=BK|| We're using the book-ship paradigm here, obviously, which is why I have| to pass PURCHASE as a command rather than using the [purchase] tag.| [Purchase] doesn't support PayMethod, does it?|| Anyway, I've got two problems with this:|| 1. Although the [x_response_code] and the [x_avs_code] and all the| other codes coming back from A'Net are telling me that the transaction| has been approved, WCat is still telling me that the transaction has| failed, and running the cart through BadPath instead of GoodPath. I| probably need to use the [unUrl] trick again, so WCat can interpret| A'Net's response correctly--but on what page?|| 2. I need to set the cart headers with the various transaction ID codes| from A'Net ([x_response_code] et al.). I've been using this code:|| [setheader file=ShoppingCarts/[unurl| ignorecase=T][x_invoice_num][/unurl]]status=[unurl| ignorecase=T][x_response_code][/unurl]&authNumber=[unurl| ignorecase=T][x_auth_code][/unurl]&responseText=[unurl| ignorecase=T][x_avs_code][/unurl][unurl| ignorecase=T][x_response_reason_text][/unurl]&referenceNumber=[unurl| ignorecase=T][x_trans_id][/unurl][/setheader]|| But it just doesn't happen. Thinking that it might be because the cart| has already been moved from ShoppingCarts--because this page is loaded| with command=purchase--I've also tried it on the Pending and Problems| folders. Still no headers getting set.|| Any ideas?-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list
.To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
You want to do the unUrl's on every variable on every page and include(don't forget outgoing emails) *after* the return back from A/N. Yes, aPITA, but otherwise they will be url'ized and will break thegoodpath/badpath code.You are correct, you want to setheader before you issue your purchase.GK| A few new questions growing out of my ongoing adventure with| AuthorizeNet.|| I'm passing my thanks page to A'Net as the ADC_URL, thusly:| thanks.html?command=purchase&cart=[cart]&db=my.db&PayMethod=BK|| We're using the book-ship paradigm here, obviously, which is why I have| to pass PURCHASE as a command rather than using the [purchase] tag.| [purchase] doesn't support PayMethod, does it?|| Anyway, I've got two problems with this:|| 1. Although the [x_response_code] and the [x_avs_code] and all the| other codes coming back from A'Net are telling me that the transaction| has been approved, WCat is still telling me that the transaction has| failed, and running the cart through BadPath instead of GoodPath. I| probably need to use the [unurl] trick again, so WCat can interpret| A'Net's response correctly--but on what page?|| 2. I need to set the cart headers with the various transaction ID codes| from A'Net ([x_response_code] et al.). I've been using this code:|| [setheader file=ShoppingCarts/[unurl| ignorecase=T][x_invoice_num][/unurl]]status=[unurl| ignorecase=T][x_response_code][/unurl]&authNumber=[unurl| ignorecase=T][x_auth_code][/unurl]&responseText=[unurl| ignorecase=T][x_avs_code][/unurl][unurl| ignorecase=T][x_response_reason_text][/unurl]&referenceNumber=[unurl| ignorecase=T][x_trans_id][/unurl][/setheader]|| But it just doesn't happen. Thinking that it might be because the cart| has already been moved from ShoppingCarts--because this page is loaded| with command=purchase--I've also tried it on the Pending and Problems| folders. Still no headers getting set.|| Any ideas?-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Gary Krockover
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:
WebMerchant Only reads 1.4 order files error (1997)
Dummy Credit Card Number for debug? (1997)
Attn: Bug in GeneralStore example b15 (1997)
dreamweaver mx (2002)
convert characters (2003)
[WebDNA] [jobposting] C++ Programmer (2008)
Verifying and adding new users (1997)
Showif, Hideif reverse logic ? (1997)
[WebDNA] divisible by 1 (2011)
World Address Info (2003)
Calculating multiple shipping... (1997)
Attn: Bug in GeneralStore example b15 (1997)
OT - help with filemaker - short (1999)
Re:Emailer and encryption (1997)
PSC recommends what date format yr 2000??? (1997)
ConvertChars request (1999)
quick [middle] Q (2000)
Email Formatting and Encryption (1998)
problems with 2 tags (1997)
OT: IIS Log Rolling (2006)