If, by allowing the DLL of GestPay to interact with ASP.NET language, you encounter error
CS0246: The type or namespace name 'GestPayCrypt' could not be found (are
you missing a using directive or an assembly reference?)
or if you encounter other problems by using the DLL in question you must include the following in your web.config file:
<?xml version="1.0" encoding="utf-8"?>
< configuration>
<system.web>
<customErrors mode="RemoteOnly"/>
<compilation debug="false">
<assemblies>
<add assembly="GestPayCrypt, Version=1.0.0.0, Culture=neutral,
PublicKeyToken=cb85b593f17970db"/>
</assemblies></compilation>
</system.web>
< /configuration>
In the absence of the web.config file, this must be specifically created and must include the above part of code.
Once completed, to add the GestPay item correctly in your web page simply enter the following in the page code:
(the fields marked with ***** must be filled in with the values required for correct functioning)
GestPayCrypt.GestPayCrypt gpc = new GestPayCrypt.GestPayCrypt();
string shopLogin = "*****";
string currency = "*****";
string amount = "*****";
string shopTransactionId = "*****";
string buyerName = "*****";
string EncryptedString = "*****";
gpc.SetShopLogin(shopLogin);
gpc.SetCurrency(currency);
gpc.SetAmount(amount);
gpc.SetShopTransactionID(shopTransactionId);
gpc.SetBuyerName(buyerName);
gpc.SetEncryptedString(EncryptedString);
Article ID: 4796, Created: September 1, 2011 at 12:27 PM, Modified: February 13, 2012 at 3:18 PM