Back to Top

User Guide for Laravel SaaS USPS Shipping

Laravel SaaS USPS Shipping lets SaaS tenants enable the USPS shipping method for their stores.

It calculates the shipment cost from the tenant’s origin address to the delivery location automatically.

Each tenant can enable USPS Shipping for their store and choose the allowed USPS shipping services.

Note – This is a SaaS add-on, so you need to install the Laravel eCommerce Multi Company SAAS Module first.

Looking to sell booking type products in your multi tenant SaaS Laravel store as well?

Check out the Multi Tenant Saas Booking Product extension.

Features of Laravel SaaS USPS Shipping

  • Tenants can enable or disable the USPS Shipping method for their store.
  • Tenants can set the title and description shown to customers at checkout.
  • Tenants can select which USPS shipping services are offered to customers.
  • Tenants can configure package length, width, and height for rate calculation.
  • Tenants can enable Sandbox mode to test the integration before going live.
  • Bagisto v2.4.9
  • Laravel SAAS v2.4.9.1
  • Laravel USPS Shipping v2.4.10.0

How to install the module Laravel SaaS USPS Shipping?

  • Unzip the respective extension zip and then merge “packages” folders into the project root directory.
  • Add the following PSR-4 autoload entries to the root composer.json under the autoload.psr-4 section:
"Webkul\\UspsShipping\\": "packages/Webkul/UspsShipping/src",
"Webkul\\UspsShippingSaas\\": "packages/Webkul/UspsShippingSaas/src"
  • Run the following command to refresh the autoload files:
composer dump-autoload
  • Add the following service providers to bootstrap/providers.php:
use Webkul\UspsShipping\Providers\UspsShippingServiceProvider;
use Webkul\UspsShippingSaas\Providers\UspsShippingSaasServiceProvider;
return [
    UspsShippingServiceProvider::class,
    UspsShippingSaasServiceProvider::class,
];

Now execute the project on your specified domain.

Laravel SaaS USPS Shipping: Super Admin Management

After installation, the super admin logs in and navigates to Configure > Sales > Shipping Methods > USPS Shipping.

In the SaaS environment, this area shows an informational notice about the USPS integration for tenants.

Operational settings, such as the Client ID, Client Secret, and Sandbox mode, are configured by each tenant.

Tenants set these values from their own administration panel under Configure > Sales > Shipping Methods.

Super admin configuration

Note: The USPS module uses OAuth 2.0 authentication, so it needs a USPS Client ID and USPS Client Secret.

The legacy User ID and Password fields are gone. A Sandbox toggle now switches between test and live modes.

Laravel SaaS USPS Shipping: Tenant Management

After installation, the tenant sets the origin address under Configure > Sales > Shipping Settings.

Under Shipping Methods, every shipping method is visible in the tenant panel, including USPS Shipping.

tenant_origin_configuration

On the above page, the tenant fills in all the details for the origin address, as shown above.

Under the USPS method, there are several fields:-

Status: Enable or disable the USPS Shipping method. When enabled, it appears as a shipping option for eligible orders at checkout.

Title: Enter the title that will be displayed to customers as the shipping method name during checkout.

Description: Provide a short description of the USPS Shipping method. This information is shown to help customers understand the shipping service.

Sandbox Mode: Enable this option to test USPS shipping integration using USPS sandbox credentials without affecting live shipments.

USPS Client ID: Enter the Client ID provided by USPS. This credential is required to authenticate API requests.

USPS Client Secret: Enter the Client Secret associated with your USPS account. It is used together with the Client ID for secure API authentication.

Length: Enter the package length in the configured unit of measurement. This value is used for shipping rate calculations.

Width: Enter the package width in the configured unit of measurement. This value helps USPS calculate accurate shipping rates.

Height: Enter the package height in the configured unit of measurement. USPS considers this dimension when generating shipping quotes.

Allowed Methods: Select the USPS shipping services offered to customers at checkout. Only the chosen methods appear as options.

Customer Checkout Process

After the tenant configures USPS Shipping, customers can use it for delivery at checkout.

The customer can select from the allowed services according to the requirements.

site1.bagistosaas2.com_checkout_onepagestore-screenshots

Once the order is placed, the customer views the order details by tapping the order number.

site1.bagistosaas2.com_checkout_onepage_successstore-screenshots

The customer sees the shipping method and delivery cost for the package, as shown below.

site1.bagistosaas2.com_customer_account_orders_view_3store-screenshots

Order Management

The tenant can see all the orders placed under the tenant panel by navigating to Sales > Orders, as shown below.

site1.bagistosaas2.com_admin_sales_ordersstore-screenshots

The tenant can view the details of any particular order.

order management

The tenant can generate an order invoice by clicking Invoice and setting the invoice quantity, as shown below.

invoice generating

After creating the invoice, the tenant can check the order status, which shows Processing with the invoice generated.

invoice

The invoice page opens when the tenant clicks the view action on the order page.

invoice page

After the invoice is generated, the tenant creates a new shipment by clicking Ship, as shown below.

shipment

After creating the shipment, the order status changes to Completed, as shown below.

shipment completed

The shipment page opens when the tenant clicks the view action on the shipment. The tenant sees the full shipment details there.

shipment

The tenant can refund an order by clicking Refund, then creating a refund request, as shown below.

Refund

After creating the refund request, the tenant can check it in the refund section.

refund request successfully

The tenant can view the completed order refund, as shown below.

order-refund

The tenant can view the details of any particular order after it is closed.

completed closed order

Support

That was the User Guide of the Laravel SaaS USPS Shipping module. For any queries, reach out to us at [email protected].

You can also raise a ticket at our HelpDesk System.

Please explore our Laravel Development Services and Quality Bagisto Extensions.

Current Product Version - 2.4.9

Supported Framework Version - 2.4.9

Blog Version - 2.4.9
  • Version v1.3.3
  • Version 2.4.9
  • Version 2.4.1
  • Version 2.0.0
. . .

Leave a Comment

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


Be the first to comment.

Back to Top

Message Sent!

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

Back to Home
On this page

Table of Content

Back to top