Bagisto Forum

    Bagisto

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

    Problem with new payment package

    Modules
    2
    2
    195
    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.
    • A
      asdomar last edited by

      Hello,
      I'm working on two new payment modules.
      Everything is working correctly except Config loading.
      I created a Config folder the two files paymentmethods.php and system.php but when I access the Configuration admin page admin/configuration/sales/paymentmethods no new payment method appear.
      I tried to add the same code to the existing Config files in Webkul/Payment/src/Config files and the new payment method appear.
      Do I forget something?

      1 Reply Last reply Reply Quote 0
      • R
        rahul last edited by

        Hi @asdomar

        Did you merge your these files to main file of configuration inside your service provider like -

        $this->mergeConfigFrom(
                    dirname(__DIR__) . '/Config/paymentmethods.php', 'paymentmethods'
                );
        
                $this->mergeConfigFrom(
                    dirname(__DIR__) . '/Config/system.php', 'core'
                );
        
        1 Reply Last reply Reply Quote 0
        • First post
          Last post