[ic] Authorize.net setup/ more information

In The Sun, LLC interchange-users@icdevgroup.org
Sun Jan 19 17:17:00 2003


I have read a few articles on icdevgroup.org about setting up Authorize.net
with IC.  Is there anyone out there that has a working example on writting
the billing vars into the checkout.html?  I use Hot Connect payment gateway
built in to our servers and Authorize.net stuff is new to me.
Here is what I mean, writing this code into the page:

if (($actual{b_address1} eq "") ||
        ($actual{b_zip} eq "")) {

        $actual{b_fname}    = $actual{fname};
        $actual{b_lname}    = $actual{lname};
        $actual{b_company}  = $actual{company};
        $actual{b_address1} = $actual{address1};
        $actual{b_address2} = $actual{address2};
        $actual{b_city}     = $actual{city};
        $actual{b_state}    = $actual{state};
        $actual{b_zip}      = $actual{zip};
        $actual{b_country}  = $actual{country};
    }


    # concatenate the two addresses into one if a second address line exists

    if ($actual{address2} ne "") {
        $actual{address} = "$actual{address1}" . ", " . "$actual{address2}";
    } else {
        $actual{address} = $actual{address1};
    }

    if ($actual{b_address2} ne "") {
        $actual{b_address} = "$actual{b_address1}" . ", " .
"$actual{b_address2}";
    } else {
        $actual{b_address} = $actual{b_address1};
    }


 my %query = (
                    x_Method        => 'CC',
                    x_Type          => $actual{mv_payment_mode},
                    x_Card_Num      => $actual{mv_credit_card_number},
                    x_Exp_Date      => $exp,
                    x_Amount        => $amount,
                    x_First_Name    => $actual{b_fname},
                    x_Last_Name     => $actual{b_lname},
                    x_Company       => $actual{company},
                    x_Address       => $actual{b_address},
                    x_City          => $actual{b_city},
                    x_State         => $actual{b_state},
                    x_Zip           => $actual{b_zip},
                    x_Country       => $actual{b_country},
                    x_Ship_To_First_Name    => $actual{fname},
                    x_Ship_To_Last_Name     => $actual{lname},
                    x_Ship_To_Company       => $actual{company},
                    x_Ship_To_Address       => $actual{address},
                    x_Ship_To_City          => $actual{city},
                    x_Ship_To_State         => $actual{state},
                    x_Ship_To_Zip           => $actual{zip},
                    x_Ship_To_Country       => $actual{country},
                    x_Email                 => $actual{email},
                    x_Invoice_Num   => $actual{mv_order_number},
                    x_Phone         => $actual{phone_day},
                    x_Password      => $secret,
                    x_Login         => $user,
                    x_Version       => '3.0',
                    x_ADC_URL       => 'FALSE',
                    x_ADC_Delim_Data => 'TRUE',
    );
How is this information tagged into the checkout.html page?

Thanks for any help
MDell

----- Original Message -----
From: <interchange-users-request@icdevgroup.org>
To: <interchange-users@icdevgroup.org>
Sent: Sunday, January 19, 2003 12:00 PM
Subject: interchange-users digest, Vol 1 #1217 - 11 msgs


> Send interchange-users mailing list submissions to
> interchange-users@icdevgroup.org
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
> or, via email, send a message with subject or body 'help' to
> interchange-users-request@icdevgroup.org
>
> You can reach the person managing the list at
> interchange-users-admin@icdevgroup.org
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of interchange-users digest..."
>
>
> Today's Topics:
>
>    1. distributor pricing (David Etheredge)
>    2. Need help with this coupon/certificate code (Evan Brown)
>    3. Re: Photo gallery (marco simonelli)
>    4. New Authorize.net connection method (Thomas Asher)
>    5. Mixing "cookbook" examples and Wiki? (marty)
>    6. Mixing "cookbook" examples and Wiki? (marty)
>    7. Re: Mixing "cookbook" examples and Wiki? (Jon)
>    8. affiliates/index.html no worky in UI (Paul Jordan)
>    9. PGP failed (webmaster)
>   10. Orders not matching up with users in the UI (Cameron)
>   11. Re: affiliates/index.html no worky in UI (Mike Heins)
>
> --__--__--
>
> Message: 1
> From: "David Etheredge" <cpu.dave@att.net>
> To: "interchange-users@interch" <interchange-users@icdevgroup.org>
> Date: Sat, 18 Jan 2003 13:29:47 -0600
> Subject: [ic] distributor pricing
> Reply-To: interchange-users@icdevgroup.org
>
> Is there a way to predefine additional discount groups?
>
> I need to have additional distributor and reseller pricing schedules. As I
> sell through the general public, clinics, universities, favored buyers (
> previously bought more than 3 units ), as well as distributors and
> resellers, all at different pricing, I need discount classifications for
6 -
> 8 different discount groups. Any idea as to how I can do this.
>
> David
>
>
> --__--__--
>
> Message: 2
> From: "Evan Brown" <milwaukee@toolfetch.com>
> To: <interchange-users@icdevgroup.org>
> Date: Sat, 18 Jan 2003 14:39:39 -0500
> Subject: [ic] Need help with this coupon/certificate code
> Reply-To: interchange-users@icdevgroup.org
>
> Hi Guys:
>
> I am trying to setup a coupon for my site. Basically a customer gets a
> coupon code that he or she has to redeem. They redeem that at checkout.
They
> type in the coupon code and it checks that code with the code in the
> gift_certs table. If the code matches then it will invoke the discount tag
> and subtract $5 from the total. If the code is incorrect then it should
> display an error.
>
> *******The coupon code is in the gift_certs table in the code column******
>
> I included some code I am working on and I can't seem to get the form to
do
> anything. Can someone help me with the code on the bottom.
>
>
>
> [set couponcompare]
> [if type="data" term="gift_certs::code::[value coupon]"]
> [discount ENTIRE_ORDER] $s - 5 [/discount]
> [else]
> Your code is invalid
> [/else]
> [/if]
> [/set]
>
> <FORM ACTION="[process secure=1]" METHOD="POST" name="validate">
> <input type=hidden name=mv_click value=couponcompare>
> <input type=hidden name=mv_todo value=return>
> <input type=hidden name=mv_nextpage value=checkout>
>
>
>
> <input type="text" size="10" name=coupon value="[value coupon]" size="5">
>
> [button
>
>                 src="thumb/validate.jpg"
>                 hidetext=1
>                 form=validate
>         ]
>         [/button]
>
> </form>
>
>
> --__--__--
>
> Message: 3
> Date: Sat, 18 Jan 2003 16:49:18 -0600
> From: marco simonelli <marco@kc.rr.com>
> Subject: Re: [ic] Photo gallery
> To: interchange-users@icdevgroup.org
> Reply-To: interchange-users@icdevgroup.org
>
>
> On Saturday, January 18, 2003, at 12:43 AM, marco simonelli wrote:
>
>
> >     I'm sure just about anything you want to accomplish has been done
> > or
> > certainly can be done with enough effort.  For me I've defined the area
> > table to be for Brands of products and the cat table to define the
> > types
> > of product. Consequently each brand (area) is associated with a
> > product type (cat). This all assumes you're working from the
> > foundation..
> > One you understand the linkage between the tables, which is somewhat
> > documented and/or can be derived from looking at foundation, then I
> > think you'll see how your needs will fit.
>
> Jon,
> thank you for your reply.
> I just digested the iccatut, even if not completely assimilated, and
> I'm going through the icfoundation and I think I got the big picture. I
> was thinking about defining one area to be Portrait Photography, or
> something like that, and the different cat table to define family names
> or events like "the Smith's wedding" with all the shots to be the
> single products.
> My first problem is how to change not the flypage, which I understand
> is the single product display, but the page that shows all the item in
> one category, to show a list of thumbnails instead of the SKUs. Which
> page should I edit?
> And also, what do you suggest me to edit pages? I normally use BBEdit,
> because the application to edit the content doesn't work on my Explorer
> 5.2 for Mac.
>
> > You'll then be able to use the built in search, loop, scan, etc.
> > facilities for customer searches.
> >
>
> This is still confusing to me. Where do you suggest me to read to
> understand it better?
>
> Thank you again
>
> Marco
>
>
> --__--__--
>
> Message: 4
> Date: Sat, 18 Jan 2003 19:59:10 -0800
> From: Thomas Asher <tom@asherwebdesign.com>
> To: interchange-users@icdevgroup.org
> Subject: [ic] New Authorize.net connection method
> Reply-To: interchange-users@icdevgroup.org
>
> Greetings,
>
>   I have a client who uses Authorize.net as her merchant service for
credit
> cards.  We recently received an email stating the following:
>
> "In an effort to enhance security surrounding the submission of
transaction
> information, Authorize.Net has developed a new gateway connection method.
> This new method, referred to as Simple Integration Method (SIM), combines
> the increased security and robustness of Advanced Integration Method (AIM)
> (previously known as ADC Direct Response) with some of the programming
ease
> of WebLink and Relay Response."
>
>  We are currently using the WebLink method and must convert to the new
> method before April 30th.  I am not sure how to change the settings in
> Interchange to comply with these new requirements.  Has anyone else made
> this conversion?  Any assistance would be greatly appreciated.
>
> Regards,
>
> Thomas E. Asher
> Asher Web Design Corp.
> 516-933-0164
> www.asherwebdesign.com
>
>
>
> --__--__--
>
> Message: 5
> From: marty <marty@sediva.com>
> To: interchange-users@icdevgroup.org
> Organization:
> Date: 18 Jan 2003 17:27:36 -0800
> Subject: [ic] Mixing "cookbook" examples and Wiki?
> Reply-To: interchange-users@icdevgroup.org
>
> Just curious, any thoughts on whether or not it would be wise to
> contribute to the wiki with "cookbook" style examples?  Or should we
> just stick to a reference type layout?
> --
> marty <marty@sediva.com>
>
>
> --__--__--
>
> Message: 6
> From: marty <marty@sediva.com>
> To: interchange-users@icdevgroup.org
> Organization:
> Date: 18 Jan 2003 17:27:47 -0800
> Subject: [ic] Mixing "cookbook" examples and Wiki?
> Reply-To: interchange-users@icdevgroup.org
>
> Just curious, any thoughts on whether or not it would be wise to
> contribute to the Wiki with "cookbook" style examples?  Or should we
> just stick to a reference type layout?
> --
> marty <marty@sediva.com>
>
>
> --__--__--
>
> Message: 7
> Date: Sat, 18 Jan 2003 21:37:12 -0500
> From: Jon <prtyof5@attglobal.net>
> To: interchange-users@icdevgroup.org
> Subject: Re: [ic] Mixing "cookbook" examples and Wiki?
> Reply-To: interchange-users@icdevgroup.org
>
> > Just curious, any thoughts on whether or not it would be wise to
> > contribute to the Wiki with "cookbook" style examples?  Or should we
> > just stick to a reference type layout?
> > --
>
>   My 2 cents, I love having examples. If there is any one thing I would
> love to see improved in the existing documentation is to mix up the
> examples with variations of usage of options and parameters.
>
> Jon
>
>
>
> --__--__--
>
> Message: 8
> Date: Sat, 18 Jan 2003 21:11:10 -0800
> From: Paul Jordan <paul@gishnetwork.com>
> To: Interchange List <interchange-users@icdevgroup.org>
> Subject: [ic] affiliates/index.html no worky in UI
> Reply-To: interchange-users@icdevgroup.org
>
> Hi List
>
> Anybody else notice that affiliates/index.html cannot be edited in UI? I
> tried in 4.8.3, 4.9.6 and 4.9.7(devgroup demo). On 4.8.3 and 4.9.6 I tried
> in IE, and Mozilla. I am on Windows XP.
>
> It seems this block here:
>
> [if !session logged_in]
> [or session login_table ne 'affiliate']
>         [bounce page="affiliate/login"]
> [/if]
>
>
> causes IC to actually bounce to the page when trying to edit it. Even
trying
> to [comment] the above block out won't help becuase the content editor
> ingnores *most* ITL. I say most becuase I have seen "floating"
selectboxes,
> and background pages in the content editor, which usualy indicates and
> syntax error somewhere on the page, however the above looks fine to me.
>
> If I remove this:
> [or session login_table ne 'affiliate']
>
> I CAN then edit the page via ADMIN. This seems like maybe an issue with
the
> content editor and the [or ...] tag in an [if] block. I tried an [and ...]
> also, and no joy.
>
> Can someone tell me where I should be looking to resolve this?
>
> Thanks
> Paul
>
>
>
> --__--__--
>
> Message: 9
> From: "webmaster" <webmaster@rotwindesigns.com>
> To: "interchange" <interchange-users@icdevgroup.org>
> Date: Sun, 19 Jan 2003 01:02:29 -0500
> Subject: [ic] PGP failed
> Reply-To: interchange-users@icdevgroup.org
>
> In my log I am getting the following error:
>
> 192.168.0.2 SDzxQR8S:192.168.0.2 - [19/January/2003:00:52:11 -0500] cata
> /cgi-bin/cata/process.html PGP failed with status 2:
>
> And then I am not receiving the credit card information via e-mail, can
> anyone help me with this?
>
>
> --__--__--
>
> Message: 10
> From: "Cameron" <ritontor@icenet.com.au>
> To: <interchange-users@icdevgroup.org>
> Date: Sun, 19 Jan 2003 18:42:26 +0800
> Subject: [ic] Orders not matching up with users in the UI
> Reply-To: interchange-users@icdevgroup.org
>
> I've just gone live with a site and taken some orders, but in the UI, i'm
> finding some weird stuff. Viewing the Pending Orders section shows all the
> orders with the appropriate Order number, yet clicking on that order
number
> brings up the View Order page, but with none of the details filled in! The
> order has definately been entered into the Orderline table, and the
customer
> definately exists in the user table, so what could be causing the View
Order
> page to break in this manner?
>
> Note: if i bring up the View Customer page, the order numbers associated
> with the client are all wrong. I did at one stage change the Last order
> number on the administration page (it has TEST in the number), and yeah...
> things seem to have gone pear shaped. Any idea where this may be breaking
> and what i need to do to fix it?
>
>
> --__--__--
>
> Message: 11
> Date: Sun, 19 Jan 2003 11:57:59 -0500
> From: Mike Heins <mike@perusion.com>
> To: interchange-users@icdevgroup.org
> Subject: Re: [ic] affiliates/index.html no worky in UI
> Reply-To: interchange-users@icdevgroup.org
>
> Quoting Paul Jordan (paul@gishnetwork.com):
> > Hi List
> >
> > Anybody else notice that affiliates/index.html cannot be edited in UI? I
> > tried in 4.8.3, 4.9.6 and 4.9.7(devgroup demo). On 4.8.3 and 4.9.6 I
tried
> > in IE, and Mozilla. I am on Windows XP.
> >
> > It seems this block here:
> >
> > [if !session logged_in]
> > [or session login_table ne 'affiliate']
> >         [bounce page="affiliate/login"]
> > [/if]
> >
> >
> > causes IC to actually bounce to the page when trying to edit it. Even
trying
> > to [comment] the above block out won't help becuase the content editor
> > ingnores *most* ITL. I say most becuase I have seen "floating"
selectboxes,
> > and background pages in the content editor, which usualy indicates and
> > syntax error somewhere on the page, however the above looks fine to me.
> >
> > If I remove this:
> > [or session login_table ne 'affiliate']
> >
> > I CAN then edit the page via ADMIN. This seems like maybe an issue with
the
> > content editor and the [or ...] tag in an [if] block. I tried an [and
...]
> > also, and no joy.
> >
> > Can someone tell me where I should be looking to resolve this?
> >
>
> There is a problem with the [if ...] tag in some situations, and has
> been for a long time. I should probably look to fix it considerably
> better with a proper parser, but for the moment I have committed a
> change to the page editor which solves this situation.
>
> The change that is made will apply to all versions, but there
> won't be any 4.9.6-specific fix made. It could be hand-edited
> in based on this patch (or the patch might work as is):
>
> 522,537d521
> < [calcn]
> <       $page_content = <<'EoPA';
> < [page-param CONTENT]
> < EoPA
> <       $page_preamble = <<'EoPB';
> < [page-param PREAMBLE]
> < EoPB
> <       $page_postamble = <<'EoPC';
> < [page-param POSTAMBLE]
> < EoPC
> <       for(\$page_content, \$page_preamble, \$page_postamble) {
> <               chop $$_;
> <       }
> <       return;
> < [/calcn]
> <
> 550a535,550
> >
> > [calc]
> >       $page_content = <<'EoPA';
> > [page-param CONTENT]
> > EoPA
> >       $page_preamble = <<'EoPB';
> > [page-param PREAMBLE]
> > EoPB
> >       $page_postamble = <<'EoPC';
> > [page-param POSTAMBLE]
> > EoPC
> >       for(\$page_content, \$page_preamble, \$page_postamble) {
> >               chop $$_;
> >       }
> >       return;
> > [/calc]
>
> Thanks for the report.
>
> --
> Mike Heins
> Perusion -- Expert Interchange Consulting    http://www.perusion.com/
> phone +1.513.523.7621      <mike@perusion.com>
>
> Fast, reliable, cheap.  Pick two and we'll talk.  -- unknown
>
>
> --__--__--
>
> _______________________________________________
> interchange-users mailing list
> interchange-users@icdevgroup.org
> http://www.icdevgroup.org/mailman/listinfo/interchange-users
>
>
> End of interchange-users Digest
>