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:

    
  1. Re: Good vs. Bad; also [setHeader] (Gary Krockover 2002)
  2. Re: Good vs. Bad; also [setHeader] (Andrew Willett 2002)
  3. Re: Good vs. Bad; also [setHeader] (Gary Krockover 2002)
  4. Good vs. Bad; also [setHeader] (Andrew Willett 2002)
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:

limitation found on group searching (1997) Flash Stores (2003) how to use WebCat w. SSL & CyberCash (1998) emailer (1997) FTP FOLDER PERMISSIONS (2004) removelineitems (2000) WebCat2b13MacPlugin - [math][date][/math] problem (1997) Tool of Use to Unix WebCat Admins (2000) Information on Vieworders.tpl (1998) PCS Customer submissions ? (1997) WebMerchant and Mac Auth Hub Help Please (1999) WebDNA 5.1/Apache 2 (2003) What about an ends with operator? (2000) Running _every_ page through WebCat ? (1997) SiteEdit NewFile.html ? (1997) Looking up two prices in database? (1997) FEW QUESTIONS (1997) WC2b15 - [HTMLx]...[/HTMLx] problems (1997) Displaying photo attached to first record (1997) WebCat2 beta 11 - new prefs ... (1997)