Here is my payment scenario
1: on checkout I select my payment
2: my payment will redirect me to another page with the total price (i.e http://localhost/myPayment.aspx?total=20.00)
here is my payment code
protected void Page_Load(object sender, EventArgs e)
{
ShoppingCart Cart = ShoppingCartManager.GetCurrentShoppingCart(ShoppingCartTypeEnum.ShoppingCart);
decimal shoppingCartSubTotalDiscount;
decimal shoppingCartSubTotal = ShoppingCartManager.GetShoppingCartSubTotal(Cart, NopContext.Current.User, out shoppingCartSubTotalDiscount);
decimal shoppingCartSubTotalConverted = CurrencyManager.ConvertCurrency(shoppingCartSubTotal, CurrencyManager.PrimaryStoreCurrency, NopContext.Current.WorkingCurrency);
decimal total = shoppingCartSubTotal;
Response.Redirect("https://localhost/knet-aspx/payonload.aspx?total=" + shoppingCartSubTotal);
}
now, after the payment is complete i'll get to page "MyCustomPaymentResult.aspx" showing me the result of my payment, from here I need to get back to nopCommerce website and go to complete page (CheckoutCompleted.aspx.
How can I return the payment parameters value to nopCommerce and the value true so I can continue to complete page?
i'll get values from page "MyCustomPaymentResult.aspx" and need to store them in "orders" table
By viewing the other payment methods i found this
public PaymentInfo GetPaymentInfo()
{
}
and
public bool ValidateForm()
{
}
Do I need to do something here?
Please Help me out