Can not run DoCapture method

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
uzay
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Sep 01, 2008 9:11 am

Can not run DoCapture method

Post by uzay » Wed Sep 24, 2008 12:43 am

Hi all,

I have a class that implements IPaymentProvider - "CommerceBuilder.Payments.Providers.PaymentProviderBase" -
When I push the button "Pay With Card" in Checkout page - ...../Checkout/Default.aspx- my class's DoAuthorize method runs.
(I checked it with breakpoints and debug outputs) BUT I can not run the DoCapture method :S

I tried to capture payment manually in
...../Admin/Orders/Payments/Default.aspx?OrderId=50

Transaction History
Date Gateway Type Amount Result Notes
9/16/2008 12:23 PM Void $1.01 FAILED Gateway instance is null or could not be loaded.

Can someone help me?

Best Regards

User avatar
sohaib
Developer
Developer
Posts: 1079
Joined: Fri Jan 23, 2004 1:38 am

Re: Can not run DoCapture method

Post by sohaib » Wed Sep 24, 2008 1:25 am

Can you post the code you used to invoke your gateway implementation methods?

You are not supposed to call DoCapture method directly. It is called by Ablecommerce.

What you do is that you call Capture method on a Payment object. Ablecommerce will determine the payment gateway associated with the payment object, initialize it, call the DoCapture method and complete the post-capture processing.

uzay
Ensign (ENS)
Ensign (ENS)
Posts: 3
Joined: Mon Sep 01, 2008 9:11 am

Re: Can not run DoCapture method

Post by uzay » Fri Sep 26, 2008 2:33 am

sohaib wrote:Can you post the code you used to invoke your gateway implementation methods?

You are not supposed to call DoCapture method directly. It is called by Ablecommerce.

What you do is that you call Capture method on a Payment object. Ablecommerce will determine the payment gateway associated with the payment object, initialize it, call the DoCapture method and complete the post-capture processing.

I think, this will work. Thank you!!!

Post Reply