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
Can not run DoCapture method
Re: Can not run DoCapture method
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.
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.
Re: Can not run DoCapture method
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!!!