• Resolved jeremyoracast

    (@jeremyoracast)


    I am trying to add a fee when the customer chooses the Credit Card payment gateway after receiving the quote. Typically we trigger this on the woocommerce_cart_calculate_fees action. This action does not run on your plugin on the quote checkout page. Is there an alternative hook/action you are using that we can trigger this action on to add the additional fee?

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author pinal.shah

    (@pinalshah)

    Hi @jeremyoracast,

    Do you want to add the fees when the user places the quote request?

    Thanks,

    Pinal

    Hi. No, only when they click the link to pay and then can choose from the options. Some users will pay by cheque which would not incur a charge, but others would pay via stripe which would incur a 3% charge. I hope that makes sense.

    Plugin Author pinal.shah

    (@pinalshah)

    Hi @oracast-admin,

    Got it. The plugin simply redirects the end user to the WooCommerce payment page (the one which is accessible from My Accounts > Orders > Pay button).

    So, it does not create a custom page and hence is not responsible for adding any fees based on the Payment method selected.

    Can you kindly let me know which plugin are you using to add the fees based on the payment gateway selected? I think we may have to get in touch with the authors of the fee plugin and see why the fees are not being applied.

    However, I can be sure of that only after I see the plugin in action.

    I’m willing to do any changes that may be needed in the Quotes plugin as well in order to fix this.

    Please let me know.

    Thanks,

    Pinal

    Thanks Pinal. We are going to do a little more investigating and try a couple other plugins to see if we can’t find if something else is interfering and will report back.

    • This reply was modified 1 year, 2 months ago by Oracast Inc.
    Oracast Inc

    (@oracast-admin)

    Hi Pinal

    My objective is to introduce a fee exclusively for transactions made through the Credit Card payment method. To achieve this, I’ve employed a custom function activated by the ‘woocommerce_cart_calculate_fees’ action.

    When the quote plugin is deactivated, the fee behaves as expected on the cart page, toggling on and off based on the selected payment method.

    I am currently facing an issue with your plugin, where it appears to be implementing an override, though the specific location remains unclear to me.

    I am seeking guidance on whether there is an alternative action within your plugin that I can leverage to trigger my custom function. Alternatively, a specific file in the plugin that I can create an override of to trigger the ‘woocommerc_cart_calculate_fees’ action?

    Plugin Author pinal.shah

    (@pinalshah)

    Hi @oracast-admin,

    Since the WooCommerce order has already been created, I don’t think it is possible to trigger the woocommerce_cart_calculate_fees action.

    I think the best alternative here would be to identify an existing WooCommerce action that we may be able to use to add the fee amount based on the payment medium selected.

    Please give me some time to investigate this further and I’ll get back to you on the same.

    Thanks,

    Pinal

    Oracast Inc

    (@oracast-admin)

    Hi Pinal,

    Thank you for looking into this. Please keep us informed and we will do the same.

    Plugin Author pinal.shah

    (@pinalshah)

    Hi @oracast-admin,

    I’ve checked this thoroughly. The best possible solution is to add a custom code which will allow you to charge fees for credit card on the WooCommerce payment page.

    I presume that you would be using a plugin to add these fees for a normal WooCommerce order (without quote products) on the Checkout page.

    You can can get in touch with the developer of the plugin to help you build this custom code. The developer can use his existing plugin settings to help you achieve the same.

    In case if things don’t work out with the plugin developer, I’d happy to help you build the custom code. Please feel free to get in touch on pinalj1612 at gmail dot com.

    Thanks,

    Pinal

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Add Fee For Credit Card Payment Gateway’ is closed to new replies.