by Joe Payne
20. April 2012 10:14
Ever have a project where you pretty much had to ‘just do it’ to see if you could? Enter DPM from Authorize.Net.
Direct Post Method is a way to avoid certain PCI compliance requirements for an AbleCommerce 7 online store. It works by avoiding any interaction between the storefront and the payment details. If the storefront never sees the payment details, the PCI compliance requirements drop significantly.
Unfortunately the documentation for DPM provided by Authorize.Net is worthless for an ASP.Net Web Forms environment. It’s written exclusively for Win-Forms apps. Back to square-one if you’re an AbleCommerce developer like me.
After a TON of digging online, I finally found a working example of using Direct Post Method with ASP.Net and C#. Apparently I wasn’t the only one noticing the lack of ASP.Net documentation.
Now I can start my project for integrating Authorize.Net DPM into AbleCommerce.
by Joe Payne
29. February 2012 21:24
Some things are far more simple than you expect. And far less documented than they should be.
All I want to know is what URL will the page post back to when a submit is fired. It’s a simple thing. It shouldn’t take me 45 minutes to find it in Google. Well it did.
Finally, I found my answer.
Open the page source for the page in question. Find the <form> tag.
<form name="aspnetForm" method="post" action="/Checkout/Payment.aspx" onsubmit="javascript:return WebForm_OnSubmit();" id="aspnetForm">
The action attribute contains the URL where the form data will be posted to when you click on the button in the web page.
by Joe Payne
15. February 2012 10:50
Here’s a quick code snippet that shows demonstrates how to loop through the kit components assigned to a product. This is useful when you need to manually parse out something specific from the kit setup of a particular product.
// find the product associated with a particular kit choice
int _KitProductId = -1;
foreach (ProductKitComponent _PKC in _Product.ProductKitComponents)
{
KitComponent _KitComp = _PKC.KitComponent;
foreach (KitProduct _KitProd in _KitComp.KitProducts)
{
if (_KitProd.Quantity == 3) // any test you want to make here
{
_KitProductId = _KitProd.KitProductId;
break;
}
}
}
// if we didn't find a choice in the kit list for the given product, we cannot
// add this item to the basket at this time.
if (_KitProductId == -1)
{
ErrorMessageDataSource.Insert(new ErrorMessage(MessageSeverity.Error,"CustomCode", "Could not find the product we wanted.");
continue;
}
by Joe Payne
30. January 2012 09:47
AbleMods is excited to announce the new Returns Manager 2.0 module. This major version release includes plenty of new features like shopper-side return requests, exchange orders and enhanced reporting.
Check out the Returns Manager 2.0 module today!
Click here to view the Returns Manager 2.0 Change List
by Joe Payne
27. January 2012 11:35
Minor update to the QB module was released today. A few performance improvements and a couple of obscure bug fixes. Nothing super major unless you’ve seen noticeable site degradation since your module was installed.
Complete Change List can be found on our Support Site