Hi Kuminda

Have a look at the site

http://design9.lavaflow.co.za


This is the test server for this job.  It uses an application service provider for the 
transactions and they now require a whole ton of encryption.  They have supplied some 
pages that require that I generate what they call a digest which consists of a safe 
key, the store id, retail price and (what they call sku) which is a unique product id.

The product id is set in the database and all I need to do is associate the  id  as 
their sku.  

eg the coding on the buy button is:
<a 
href="https://secure.safeshop.co.za/basket/basket_addItem.asp?StoreID=200024&Sku=<%=RS("ID")%>&Retailprice=<%=RS("Cost")%>&Digest=<%=
 MD5(LCase(SafeKey & StoreID & Sku))%>&ProductName='bob'">

Now you see where it says <%= MD5(LCase(SafeKey & StoreID & Sku))%> I need to pull the 
id into this (where it says sku.  If I create this as a varible then will it not be 
the unique id for each product?

What I have done is hard coded sku to be the second products number on the default 
page so the transaction will go through but on products 1 and 3 it will not because 
the sku number is wrong.

Thanks for all the advice. 


-----Original Message-----
From: Kuminda Chandimith [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2002 11:00
To: ActiveServerPages
Subject: RE: Inserting a decimal (converting number to monetary value)


Rob, it's Ok to keep few of the old posts when you reply. So people can
actully know what is The post you are replying for  :)

Well I think as long as you are sticking to one country/currency hardcoding
is not an issue.

Some how I would create function like following to calculate my currency
formats. 

'-------------------------------------------

Function FormatCurrency( lAmount, strCurrCcode)
        
        dim strRetval

        select Case strCurrCcode
                case  "USD"
                        strRetval = round(lAmount/100,2) & "USD"
                case  "YEN"
                        strRetval = lAmount & "YEN"             

                'ETC,.. so you CAn have multpile Curency formating in here.


        end select

        FormatCurrency = strRetval
end function

'-------------------------------------------


Cheers




Kuminda Chandimith
Sr. Technical Consultant
Ducont.com FZ-LLC
Tel:  + 971-4-3913000 Ext 237
Fax: +971-4-3913001
http://www.ducont.com



-----Original Message-----
From: lamb.rob [mailto:[EMAIL PROTECTED]]
Sent: 20 August 2002 12:34
To: ActiveServerPages
Subject: RE: Inserting a decimal (converting number to monetary value)


Hi Kuminda

I am actually hard coding this...

Help!

---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to
%%email.unsub%%

---
You are currently subscribed to activeserverpages as: [EMAIL PROTECTED]
To unsubscribe send a blank email to %%email.unsub%%

---
You are currently subscribed to activeserverpages as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]

Reply via email to