Bagisto Forum

    Bagisto

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups

    New Payment Method (Mpesa) Not Loaded & Old PayPal Still Showing in Admin Dashboard

    Knowledge Base
    2
    2
    137
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • B
      brunoadul last edited by

      Hi everyone,

      I'm trying to replace the default PayPal integration in my Bagisto installation with a custom Mpesa STK Push integration. I’ve followed these steps:

      File Replacement:
      I replaced all PayPal files in the packages/Webkul/Paypal folder with my custom Mpesa files under a new module folder (renamed to packages/Webkul/MpesaPayment). This includes updating namespaces, controllers, payment classes, views, configuration (in Config/paymentmethods.php), and service providers.

      Module Registration:
      I updated the composer.json and Concord configuration (in config/concord.php) to remove references to the old PayPal module and register my new Mpesa module using the appropriate service provider.

      Database & Cache Clearing:
      I removed or disabled any PayPal configuration entries from the database (e.g., in the main_appcore_config table) and ensured my Mpesa configuration is active. I then ran commands like:

      php artisan cache:clear
      php artisan config:clear
      php artisan view:clear
      composer dump-autoload
      php artisan module:discover
      Despite these changes, the admin dashboard still displays the PayPal payment option, and my new Mpesa payment method isn’t loaded. It appears that even after deleting and replacing core files, the PayPal package is still being recognized.

      Has anyone experienced this issue? What might be causing the old PayPal integration to persist, and how can I ensure my new Mpesa module is fully loaded in the system?

      Thanks in advance for any help or insights!

      1 Reply Last reply Reply Quote 0
      • Rishabh-Webkul
        Rishabh-Webkul last edited by

        Hello @brunoadul

        If Paypal is still exists you can simply disable the status from the configurations.

        Additionally there is official DevDocs of how o create a Payment methods you can take a reference from here.

        https://devdocs.bagisto.com/2.2/advanced/create-payment-method.html#introduction

        Regards
        Team Bagisto

        1 Reply Last reply Reply Quote 0
        • First post
          Last post