Skip to main content
The Paydios PHP SDK integrates cleanly into Laravel applications. Configure credentials in your .env file and instantiate the client anywhere in your application using Laravel’s config helper. No service provider is required — the SDK works with standard Laravel conventions out of the box.

Requirements

Installation

Install the SDK with Composer:

Configuration

1

Add credentials to .env

Add your Paydios API base URL and secret key to your .env file. Retrieve your secret key from the merchant dashboard:
Never commit this file to version control.
2

Register in config/services.php

Add a paydios entry to your config/services.php file so the SDK config is accessible via Laravel’s config helper:
3

Instantiate the client

Wherever you need the SDK, create a Client instance by passing the registered config:

Using in a Controller

The example below shows a controller method that creates a Paydios checkout session and redirects the customer to the payment page:
Add your Merchant ID to your .env and config/services.php alongside your secret key:

Listing Products

Use the same pattern to call any SDK method. The example below lists your first 20 products:
Bind Paydios\Client in your AppServiceProvider as a singleton to avoid re-instantiating the client on every request:
You can then resolve it via dependency injection or app(\Paydios\Client::class).
See the PHP SDK reference for the full list of available methods, including product management, checkout sessions, and error handling.