Skip to main content

PHP Examples

Illustrative PHP examples for integrating with the LuxCore API using cURL. Save the client below in LuxCoreClient.php for the examples. It covers API v1; see Authentication for API v2 signing.

LuxCore Client Class

The webhook helpers below use the default HMAC-SHA256 algorithm. Use the configured algorithm and verify a test delivery before enabling business actions. These examples are clients for API v1, not official SDK packages.

Usage Examples

Create a Deposit Payment

Create a Withdrawal (Payout)

List Payments

Webhook Handler

Laravel Integration

Error Handling