Page 2 of 2 FirstFirst 12
Results 11 to 17 of 17

Thread: payment gateway

  1. #11
    Join Date
    Aug 2010
    Posts
    35

    Default Payment Gateway

    Hello

    Somebody help me

    What should I do to make them look the parameters that configure, see attached file

    configurePayementParameter.jpgconfigurePayementParameter.jpg

    Where to put the file GatewayConfigAtom.xml or as included in my compilation so they can show my parameters

    I appreciate your help

  2. #12
    Join Date
    Aug 2010
    Posts
    35

    Default Payment Gateway

    Hello

    Somebody help me

    What should I do to make them look the parameters that configure, see attached file
    configurePayementParameter.jpg
    Where to put the file GatewayConfigAtom.xml or as included in my compilation so they can show my parameters

    I appreciate your help

  3. #13
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    432

    Default

    Are you doing this for yourself or for a client?

    This is not a sales pitch (we are too busy) but developing a new gateway is not trivial and I would recommend using an experienced ASPDotNetStorefront developer who has built payment gateways before otherwise you may spend hours trying to get this working and diagnosing payment gateway issues is also complex.

    The screenshots you attached look like the admin configuration wizard - this is changed in /admin/wizard.aspx

    The value from wizard.aspx is then used within ASPDotNetStorefrontGateways dll in gateway.cs. You'll see other gateways defined here such as ro_GWPROTX = "PROTX", in this example, the value "PROTX" is the same value as set in wizard.aspx.

    Just create a new value here that matches your new gateway. Then use this value later in the gateway.cs code to call the various methods (make payment, refund, void etc.)

    Regarding the config file you mentioned (gatewayconfigatom.xml), is this a config file specific to your payment gateway? You can put this anywhere you like on your server as long as your code is able to find it. The payment gateway provider would usually have a default install location. Remember to ensure that this config file is secure and not visible to end users.

  4. #14
    Join Date
    Aug 2010
    Posts
    35

    Default Payment Gateway

    Hello

    Thank you for your help

    In reviewing the \ ASPDNSFGatewayProcessors payment methods are xml files with their parameters, what I did was copy me one to fit my parameters.

    Unable to see the parameters in the admin detects that this routine searches for the parameters

    public virtual IConfigurationAtom GetConfigurationAtom()
    {
    try
    {
    String resourcename = null;
    Assembly a = System.Reflection.Assembly.GetAssembly(this.GetTyp e());
    String[] gatewayresources = a.GetManifestResourceNames();
    foreach (string rn in gatewayresources)
    if (rn.EndsWith("GatewayConfigAtom.xml"))
    resourcename = rn;

    using(Stream xmlStream = a.GetManifestResourceStream(resourcename))
    {
    XmlDocument doc = new XmlDocument();
    doc.Load(xmlStream);
    return new ConfigurationAtom(doc);
    }
    }
    catch (Exception)
    {
    return new SearchConfigurationAtom(this.TypeName, "", "Configure " + DisplayName(Localization.GetDefaultLocale()));
    }
    }

    I just want to know is how to compile my dll to include my xml configuration file or can I make to go through this routine as parameters capture

    Regards

  5. #15
    Join Date
    Nov 2008
    Location
    London, UK
    Posts
    432

    Default

    Sounds like a 9.x gateway?

    If you've created a new processor within ASPDNSFGatewayProcessors and named it correctly (to match the name you've given the gateway in ASPDNSFGateways) then the XML config should be embedded as part of the ASPDNSFGatewayProcessor's compilation.

    I *think* this should create the AppConfigs as part of the gateway configuration in Wizard.aspx.cs (also see ConfigurationAtom.cs).

    I know it's obvious but remember to copy the AspDotNetStorefrontGateways.dll AND your new gateway processor DLL to your site's /bin directory otherwise nothing will happen.

    That's all I can help with now on a free time basis I'm afraid!

    Adam

  6. #16
    Join Date
    Aug 2010
    Posts
    35

    Default Payment Gateway

    Hi

    I finished my dll settings in gateway that other parameters should I set the appconfig parameters to enable the process successfully cart

    thanks for your valuable help

  7. #17
    Join Date
    Aug 2010
    Posts
    35

    Default Payment Gateway

    Hi webopius

    Many thanks for your help!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •