Skip to main content
The Zentra PHP SDK provides a straightforward way to integrate Zentra payments and banking services into your PHP or Laravel application.
The reviewed public HTTP surface for SDK integrations today is transfers, webhooks, virtual accounts, payments, cards, and tenant-enabled identity. Customers, wallets, and other higher-level helpers remain compatibility or draft surfaces unless your environment explicitly enables them.

Configuration

Initialize the client with your API key.

Laravel Configuration

Publish the configuration file:
Add your keys to .env:

Resources

  • $client->customers: Customer management
  • $client->payments: Reviewed public charges, refunds, and saved payment tokens plus older compatibility helpers
  • $client->transfers: Bank transfers
  • $client->virtualAccounts: Virtual account management
  • $client->cards: Card issuing
  • $client->identity: KYC verification

Examples

Create a Virtual Account

Create And Verify A Charge

Refund A Charge

Store A Reusable Payment Token

Verify Webhook Signature

Error Handling

The SDK throws specific exceptions for better control:

Requirements

  • PHP 7.4 or higher
  • Composer
  • cURL extension

GitHub Repo

View source code

Packagist

Download package