Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • marcio 7 posts 79 karma points
    Oct 09, 2015 @ 13:48
    marcio
    1

    Custom Payment Provider not Showing in Confirm Sale (Bazaar Store)

    Hi,

    We are developing a Custom Payment Provider for Merchello (our first time using the package) and we started with the Bazaar store.

    I did some searching on the Gateway documentation, on the Merchello projects and on the "How to Tutorials", i followed the Cash Payment Gateway as an example to start, but at this point we are kind of stuck..

    We have the custom Provider extending from PaymentGatewayProviderBase:

    [GatewayProviderActivation("5c8fa96e-b062-47f4-abfe-f4d467748f72", "Global Iris Provider", "Global Iris Payment Provider")]
        public class GlobalIrisPaymentGatewayProvider : PaymentGatewayProviderBase, IGlobalIrisPaymentGatewayProvider
        {
    

    The Custom Provider Payment Gateway Method extending from PaymentGatewayMethodBase:

     [GatewayMethodUi("GlobalIrisPaymentMethod")]
        [PaymentGatewayMethod("Global Iris Payment Gateway")]
        public class GlobalIrisPaymentGatewayMethod : PaymentGatewayMethodBase, IGlobalIrisPaymentGatewayMethod
        {
    

    The overridden methods are pretty much the same as in the Cash Provider.

    In the Application i can see my payment provider: enter image description here

    But then in the store, on the Confirm Sale page, only the Cash Payment Provider is displayed, although when i debug, it hits my breakpoints in the provider.. enter image description here

    I've also noticed that the merchPaymentMethod table in the DB has my custom provider and it's also in the merchGatewayProviderSettings table

    Do i need to configure anything in the database, or do i need to do any extra configuration?

    Any help with this would be greatly appreciated.

    Thanks, Márcio

  • marcio 7 posts 79 karma points
    Oct 13, 2015 @ 15:35
    marcio
    1

    I was able to understand what was failing from the bits and pieces on the forum and from other sites:

    The app setting

    <add key="Bazaar:ResolvePaymentForms" value="True" />
    

    still needs to be in the web.config.

    Then i added a new controller that extends from BazaarPaymentMethodFormControllerBase, the RenderForm method has to "refer" to a new partial view that needs to be created (almost a copy from the CashPaymentMethodForm, the only thing that changes is the controller in the BeginUmbracoForm, which has to point to the new controller that was created).

    Added two attributes to the New Controller:

    [PluginController("Bazaar")]
        [GatewayMethodUi("GlobalIrisPaymentMethod")]
        public class GlobalIrisPaymentMethodController : BazaarPaymentMethodFormControllerBase
        {
    

    The GatewayMethodUi has to match the GatewayMethodUi in the class that extends PaymentGatewayMethodBase.

    Hope that my reply help others with the same problems.

    Regards, Márcio Duarte

Please Sign in or register to post replies

Write your reply to:

Draft