Back to Top

Laravel eCommerce Authorize.net Setup

Updated 4 May 2026

In Bagisto, with the Laravel eCommerce Authorize.net Payment Gateway module, the admin can easily integrate the Authorize.net payment gateway into the eCommerce website.

Authorize.net is a payment gateway based in the United States. It is widely used in the USA, UK, Canada, and Australia. Additionally, Authorize.net is PCI DSS level 1 certified.

Features Of Laravel eCommerce Authorize.net payment gateway

  • Direct payments to the admin account.
  • Accepts all cards supported by Authorize.net.
  • Buyers can save Authorize.net cards for future payments.
  • PCI (Payment Card Industry) compliance.
  • 3D Secure for added security.

How to install the module?

For Laravel eCommerce Authorize.net Setup module, follow the steps below:

Step 1: Extract and Merge Files

After purchasing the extension, download the zip folder. Extract it and merge the “packages/Webkul” directory into your project root directory.

Step 2: Configure Autoload

Open the composer.json file. Add this line under the “psr-4” section:

"Webkul\\AuthorizeNet\\": "packages/Webkul/AuthorizeNet/src"

Step 3: Register Service Provider

Go to the bootstrap/provider.php file. Add these lines under the ‘providers’ section:

use Webkul\AuthorizeNet\Providers\AuthorizeNetServiceProvider;

return [
    AuthorizeNetServiceProvider::class,
];

Step 4: Install Frontend Dependencies

Navigate to the module directory packages/Webkul/AuthorizeNet. Use the following commands to install and build the assets:

npm install
npm run build

Step 5: Complete Setup

Run these commands to finish the installation:

composer require authorizenet/authorizenet:^2.0
composer dump-autoload

After completing these steps, the module will be successfully installed and ready for configuration.

Admin configuration for the Laravel eCommerce Authorize.net payment gateway

After the Laravel eCommerce Authorize.net setup, the admin needs to configure the module.

Click on Configure >> Sales >> Payment Methods. Under Authorize.net Payment, fill in several fields:

Laravel eCommerce Authorize.net Setup

  • Status: Enable or disable the Authorize.net payment method.
  • Title: Sets the payment method name shown to customers at checkout.
  • Description: Adds a short description of the payment method.
  • Logo: Upload a logo to display for this payment option.
  • Sandbox: Toggle between test (sandbox) and live (production) mode.
  • API Login ID: Enter the production API Login ID from your Authorize.net account.
  • Transaction Key: Provide the production transaction key for secure transactions.
  • Signature Key: Used to verify webhook responses from Authorize.net.
  • Sandbox API Login ID: Enter the API Login ID for sandbox/testing mode.
  • Sandbox Transaction Key: Provide the transaction key for sandbox/testing mode.
  • Sandbox Signature Key: Used to verify webhook responses in sandbox mode.
  • Sort Order: Defines the display order of this payment method on the frontend.

How to get the keys?

First of all the user need to create an account on Authorize.net. After creating the account, click on Account.

To get the Client key click on Manage Public Client Key under the Security setting section after clicking a page will generate where the client key will be visible as shown in the image below:-

Laravel eCommerce Authorize.net Setup
Source:-www.authorize.net

To get the API Login ID and Transaction Key, go to Security Settings → API Credentials and Keys, where both will be displayed.

Laravel eCommerce Authorize.net Setup
Source:- www.authorize.net

To generate a Transaction Key, select “New Transaction Key,” submit the request, verify your email with the PIN, and click “Verify PIN.”

Laravel eCommerce Authorize.net Setup
Source:- www.authorize.net

After clicking on the Verify Pin button the Transaction Key will be generated as shown below:-

Laravel eCommerce Authorize.net Setup
Source:- www.authorize.net

Authorize.net Payment Gateway :- Front End

Now the customers can select the Authorize Net Payment method that is visible under the Select Payment Method.

Laravel eCommerce Authorize.net Setup

Then click on Place Order, by which the Authorise Net payment pop-up will display as shown below, enter the credentials, and click on the Pay now button.

Laravel eCommerce Authorize.net Setup

After clicking on the Pay now button the Oder Summary page will generate, then click on the Continue button.

Laravel eCommerce Authorize.net Setup

Now the order has been placed successfully using the Authorize.net payment gateway

 

remove index panel use headin and paragraph

Current Product Version - 2.4.2

Supported Framework Version - Bagisto v2.4.2

Blog Version - Bagisto v2.4.2
  • Version Bagisto v2.4.2
  • Version Bagisto v1.2.0
. . .

Leave a Comment

Your email address will not be published. Required fields are marked*


2 comments

  • Sharif
    • Nishad Bhan (Moderator)
  • Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home