PHP SDK · MIT

Crypto payments for your PHP app.

Connect your PHP backend to your own Wholly Crypto merchant API. Install with Composer and use the examples to get started.

Install with Composer

Requires PHP 7.4+, cURL and JSON.

composer require whollycrypto/php-sdk

Build your payment flow

  • Create invoices and open the hosted checkout
  • Read invoice status, stores and payment methods
  • Verify IPN and webhook signatures from the raw body
  • Handle API errors and idempotent invoice creation

Three things to connect.

Use your API URL, a project-restricted API credential, and your Project/Store API IDs from Store → Basic. Store keys on your server. Never send them to a browser or include them in a public repository.

Use the store IPN secret for IPN, or the endpoint’s webhook secret for webhooks. Verify the signed raw request before updating orders. A return URL alone is not proof of payment.

API reference → · IPN & webhooks → · Ready-made shop plugins →