Good vs. Bad; also [setHeader]
This WebDNA talk-list message is from 2002
It keeps the original formatting.
numero = 46428
interpreted = N
texte = 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=BKWe'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:
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=BKWe'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/
Andrew Willett
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:
[thisurl] (2004)
Re:listfiles-looking for slick solution (1997)
Make sure I understand this??? (1997)
shared_POP and archiving your own mailing list (2003)
Refering page (1998)
Re:Formulas.db / Quantity Discount problem (1998)
OK, here goes... (1997)
Gil's in the lead (1999)
[WebDNA] TCPConnect example doesn't work (2017)
Grant, please help me ... (1997)
WebCatalog2 Feature Feedback (1996)
WebCat2 several catalogs? (1997)
WC2.0 Memory Requirements (1997)
Document contains no data... (1999)
Large databases in WebCat (1997)
Serving images from databases (1998)
Is there a max number of fields? (1998)
Search Engine bots (2002)
Prices coming up 0.00 (2001)
Sense/Disallow HTML tags during $Append (1997)