Developer forum

Forum » Feature requests » Split payment for ePay integration

Split payment for ePay integration

Anders Ebdrup
Anders Ebdrup
Reply

Dear Dynamicweb,

 

One of our clients are requesting "split payments" for their ePay integration, and I hope that you will support this in the standard setup?

You can see the documentation here: http://epay.bambora.com/en/payment-window-parameters, where splitpayment needs to be set to 1. It would be great to have the option to enable this on the payment gateway setup.

 

Best regards, Anders


Replies

 
Nicolai Pedersen
Reply
This post has been marked as an answer

Hi Anders

I have added the property to the config and the post. Find an updated provider attached.

It is totally untested for now and not released, but see if it works.

BR Nicolai

Votes for this answer: 1
 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Thank you so much! It works like a charm! :-)

For now it is fine as the orders will be captured from the ERP, but in the future it will make sense to implement it all the way around with this interface: IRemotePartialCapture ;-)

 

Thanks a again,

Anders
 

 
Nicolai Pedersen
Reply

Maybe, but epay is not on our main list - we will not put efforts in this one.

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Please remember to add this feature as a nuget package, so we are able to make the upgrade :-)

 
Nicolai Pedersen
Reply

No worries. It is on its way.

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

It seems like we are not totally there for this new feature as IRemotePartialCapture is not implemented in the paymentprovider.

 

Unable to cast object of type 'Dynamicweb.Ecommerce.CheckoutHandlers.EPayPaymentWindow.EPayPaymentWindow' to type 'Dynamicweb.Ecommerce.Orders.Gateways.IRemotePartialCapture'.

Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidCastException: Unable to cast object of type 'Dynamicweb.Ecommerce.CheckoutHandlers.EPayPaymentWindow.EPayPaymentWindow' to type 'Dynamicweb.Ecommerce.Orders.Gateways.IRemotePartialCapture'.

Source Error:

 

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.


Stack Trace:
 

[InvalidCastException: Unable to cast object of type 'Dynamicweb.Ecommerce.CheckoutHandlers.EPayPaymentWindow.EPayPaymentWindow' to type 'Dynamicweb.Ecommerce.Orders.Gateways.IRemotePartialCapture'.]
   Dynamicweb.Ecommerce.Orders.OrderService.Capture(Order order, Int64 amount, Boolean final) +234
   Dynamicweb.Admin.eComBackend.OrderCapture.AJAXCapture() in E:\agent\_work\156\s\01 - Applications\Dynamicweb.Admin\DW910\Dynamicweb.Admin\Admin\Module\eCom_Catalog\dw7\OrderCapture.aspx.vb:99
   Dynamicweb.Admin.eComBackend.OrderCapture.HandleAjax() in E:\agent\_work\156\s\01 - Applications\Dynamicweb.Admin\DW910\Dynamicweb.Admin\Admin\Module\eCom_Catalog\dw7\OrderCapture.aspx.vb:59
   Dynamicweb.Admin.eComBackend.OrderCapture.Page_Load(Object sender, EventArgs e) in E:\agent\_work\156\s\01 - Applications\Dynamicweb.Admin\DW910\Dynamicweb.Admin\Admin\Module\eCom_Catalog\dw7\OrderCapture.aspx.vb:17
   System.Web.UI.Control.OnLoad(EventArgs e) +106
   System.Web.UI.Control.LoadRecursive() +68
   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +3785

 

Best regards,

Anders

 
Nicolai Pedersen
Reply

Well it is a very old gateway, and we do not do additional development on that one. It was never meant to support any of the fancy payment stuff in DW - then you have to use another gateway.

This particular change was very easy though (I think) so I did just added the IRemotePartialCapture - only because it is you. Untested version attached.

But going forward, please consider a more modern payment gateway if you want all the features, thanks!

BR Nicolai

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Will the IRemotePartialCapture feature for ePay be released as a nuget package? :-)

 

Best regards, Anders

 
Nicolai Pedersen
Reply

Well, it was never made. I can see this thread has quickpay instead.

Attached the new fix, now comitted and on its way to nuget. #2422

BR Nicolai

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

I hope that this can find it's way to the nuget channel? :-)

 

Best regards, Anders