Hi all
I try to add 2checkout provider in that DNN Store module. 2Checkout Admin parameters have been added and now I can choose between Authorize.net, paypal, email payment and 2Checkout in administration settings. But I'm stuck on 2Checkout payment. Here is the btnConfimOrder (Button1) code :
TwoCheckoutPayment.ascx :
<asp:Button ID="Button1" runat="server" onclick="Button1_Click" Text="Button" />
TwoCheckoutPayment.ascx.cs :
using System;
using System.Collections;
using System.IO;
using System.Net;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Globalization;
using DotNetNuke;
using DotNetNuke.Modules.Store.Admin;
using DotNetNuke.Modules.Store.Cart;
using DotNetNuke.Modules.Store.Components;
using DotNetNuke.Modules.Store.Customer;
using DotNetNuke.Modules.Store.Providers.Address;
using DotNetNuke.Services.Exceptions;
using DotNetNuke.Services.Localization;
namespace DotNetNuke.Modules.Store.Cart
{
public partial class TwoCheckoutPayment : PaymentControlBase
{
#region Private Declarations
#endregion
#region Web form Designer generated code
override protected void OnInit(System.EventArgs e)
{
base.OnInit(e);
}
#endregion
#region Events
protected void Page_Load(System.Object sender, System.EventArgs e)
{
}
private static string CookieName = "DotNetNuke_Store_Portal_";
#endregion
protected void Button1_Click(System.Object sender, System.EventArgs e)
{
System.Console.WriteLine("vita");
return;
}
}
}
And the error :
A critical error has occurred.
c:\DotNetNuke_2\DesktopModules\Store\Providers\GatewayProviders\TwoCheckoutProvider\TwoCheckoutPayment.ascx(7): error CS1061: 'ASP.desktopmodules_store_providers_gatewayproviders_twocheckoutprovider_twocheckoutpayment_ascx' ne contient pas une définition pour 'Button1_Click' et aucune méthode d'extension 'Button1_Click' acceptant un premier argument de type 'ASP.desktopmodules_store_providers_gatewayproviders_twocheckoutprovider_twocheckoutpayment_ascx' n'a été trouvée (une directive using ou une référence d'assembly est-elle manquante ?)
Thank you in advance for your help
Bye.