Loosing Payment Account Data With A Custom Gateway
Posted: Mon Mar 29, 2010 3:49 pm
I have a Custom Gateway that is built following the template provided on the AbleCommerce wiki http://wiki.ablecommerce.com/index.php/ ... nt_Gateway.
Its only implementing Authorize & Capture for now and is working as expected. However whenever this gateway is triggered on checkout form the payment object looses any information in the AccountData field.
The checkout form is a little bit modified version of the existing PurchaseOrder form.
Every other info in the payment object is saved in the database except the Account Data. If I remove the Custom Gateway from the payment method the data is saved fine.
Appreciate any help.
Thanks.
Its only implementing Authorize & Capture for now and is working as expected. However whenever this gateway is triggered on checkout form the payment object looses any information in the AccountData field.
The checkout form is a little bit modified version of the existing PurchaseOrder form.
Every other info in the payment object is saved in the database except the Account Data. If I remove the Custom Gateway from the payment method the data is saved fine.
Code: Select all
if (checkOut)
{
//PROCESS THE CHECKOUT
CheckoutRequest checkoutRequest = new CheckoutRequest(payment);
CheckoutResponse checkoutResponse = Token.Instance.User.Basket.Checkout(checkoutRequest); // Looses AccountData Info on this line
if (checkoutResponse.Success)
{
//....
}
else
{
//...
}
}
Thanks.