• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Register
  • Login
Bagisto Forum

Bagisto

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

Payment methods

General Discussion
2
3
243
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.
  • T
    Thapelo last edited by 18 Dec 2023, 11:02

    Hi, I tried to add payment. Methods to my bagisto website but all of them don't work. I followed the instructions to create a payment method but they don't work.

    Can someone help. I want to integrate PayFast or Paystack

    1 Reply Last reply Reply Quote 0
    • admin
      admin last edited by 18 Dec 2023, 12:49

      There's payfast payment gateway extension in bagisto: https://bagisto.com/en/extensions/laravel-ecommerce-payfast-payment-gateway/

      If you are looking to create integration from scratch, could you let us know what issue you are getting and at which step.

      1 Reply Last reply Reply Quote 0
      • T
        Thapelo last edited by 18 Dec 2023, 13:17

        i ran the create package script:

        php artisan package:make-payment-method Webkul/Payfast
        

        then i added this to my composer.json

        "autoload": {
            ...
            "psr-4": {
                // Other PSR-4 namespaces
                "Webkul\\Payfast\\": "packages/Webkul/Payfast/src"
            }
        }
        
        

        i also added this to my Config/app.php

        <?php
        
        return [
            // Other configuration options
        
            'providers' => ServiceProvider::defaultProviders()->merge([
                // Other service providers
                Webkul\Payfast\Providers\PayfastServiceProvider::class,
            ])->toArray(),
            
            // Other configuration options
        ];
        
        

        and at last i ran these 2 comands

        composer dump-autoload
        
        

        and

        php artisan config:cache
        
        

        then when i check in my websites configuration->sales->payment methods.
        the payment method does not appear

        1 Reply Last reply Reply Quote 0
        3 out of 3
        • First post
          3/3
          Last post