Bagisto New Paymant Method
-
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. -
Hi @himanshu-kmr,
Can you share with me the implementation steps so that I can check where is something wrong?
-
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:-
Please Help me..
Thank You in advance.
-
@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
. -
@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.
-
-
This is my file and folder structure....
-
It looks like you just copied the
Paypal
package.