Bagisto Forum

    Bagisto

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

    Bagisto New Paymant Method

    General Discussion
    2
    8
    368
    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.
    • H
      himanshu-kmr last edited by

      Hi,
      I am trying to integrate a new payment method "CCAvenue" from looking into the documentation (https://bagisto.com/en/how-to-create-custom-payment-method-in-bagisto/) But nor on admin panel not on website that is showing.

      1 Reply Last reply Reply Quote 0
      • devansh-webkul
        devansh-webkul last edited by

        Hi @himanshu-kmr,

        Can you share with me the implementation steps so that I can check where is something wrong?

        1 Reply Last reply Reply Quote 0
        • H
          himanshu-kmr last edited by

          Thank You @devansh-webkul, Again I tries and found that I haven't created Class File so that was not working but for now in admin panel in place of label admin::app.admin.system.paypal-smart-button is showing.

          Below are the code:

          packages\Webkul\Ccavenue\src\Confif\Syatem.php

          <?php
          return [
          [
          'key' => 'sales.paymentmethods.ccavenue',
          'name' => 'admin::app.admin.system.ccavenue',
          'sort' => 3,
          'fields' => [
          [
          'name' => 'title',
          'title' => 'admin::app.admin.system.title',
          'type' => 'text',
          'validation' => 'required',
          'channel_based' => false,
          'locale_based' => true,
          ], [
          'name' => 'description',
          'title' => 'admin::app.admin.system.description',
          'type' => 'textarea',
          'channel_based' => false,
          'locale_based' => true,
          ], [
          'name' => 'business_account',
          'title' => 'admin::app.admin.system.business-account',
          'type' => 'select',
          'type' => 'text',
          'validation' => 'required',
          ], [
          'name' => 'active',
          'title' => 'admin::app.admin.system.status',
          'type' => 'boolean',
          'validation' => 'required',
          'channel_based' => false,
          'locale_based' => true
          ], [
          'name' => 'sandbox',
          'title' => 'admin::app.admin.system.sandbox',
          'type' => 'boolean',
          'validation' => 'required',
          'channel_based' => false,
          'locale_based' => true,
          ], [
          'name' => 'sort',
          'title' => 'admin::app.admin.system.sort_order',
          'type' => 'select',
          'options' => [
          [
          'title' => '1',
          'value' => 1,
          ], [
          'title' => '2',
          'value' => 2,
          ], [
          'title' => '3',
          'value' => 3,
          ], [
          'title' => '4',
          'value' => 4,
          ],
          ],
          ]
          ]
          ]
          ];

          packages\Webkul\Ccavenue\src\Config\paymentmethods.php

          <?php
          return [
          'ccavenue' => [
          'code' => 'ccavenue',
          'title' => 'Ccavenue',
          'description' => 'Ccavenue',
          'class' => 'Webkul\Ccavenue\Payment\Ccavenue',
          'sandbox' => true,
          'active' => true,
          'sort' => 4,
          ]
          ];

          Output is:-

          27de59b1-6ff0-4591-9f59-9646c1456fc7-image.png

          Please Help me..

          Thank You in advance.

          1 Reply Last reply Reply Quote 0
          • devansh-webkul
            devansh-webkul last edited by

            @himanshu-kmr said in Bagisto New Paymant Method:

            packages\Webkul\Ccavenue\src\Confif\Syatem.php

            The first problem is the pathname,
            packages\Webkul\Ccavenue\src\Confif\Syatem.php

            Please check the path names and namespace also.

            The second problem is the translation is missing.

            The third problem is to check your provider registry and composer autoloading namespace.

            And the last one is when everything is set up just run the command i.e. php artisan optimize.

            1 Reply Last reply Reply Quote 0
            • H
              himanshu-kmr last edited by

              @devansh-webkul said in Bagisto New Paymant Method:

              lease check the path names and namespace also.

              Sorry the path is packages\Webkul\Ccavenue\src\Config\Syatem.php

              I have checked the namespace and its correct

              I am worried about the translation. can you give me some reference?

              Thank a lot.

              1 Reply Last reply Reply Quote 0
              • devansh-webkul
                devansh-webkul last edited by

                @himanshu-kmr said in Bagisto New Paymant Method:

                Syatem.php

                Still, look at the name Syatem.php.

                1 Reply Last reply Reply Quote 0
                • H
                  himanshu-kmr last edited by

                  15cbd803-1068-4744-a43e-10910a56dd2c-image.png

                  This is my file and folder structure....

                  1 Reply Last reply Reply Quote 0
                  • devansh-webkul
                    devansh-webkul last edited by

                    It looks like you just copied the Paypal package.

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