
The Code PHP SDK is a library that empowers PHP developers to easily integrate Code payments into their applications. With just a few lines of code and minimal setup, you can start accepting payments effortlessly.
See the documentation for detailed information.
Code is a mobile wallet app that utilizes self-custodial blockchain technology to offer instant, global, and private payment services.
You can install the Code PHP SDK via Composer:
composer require code-wallet/client
Here is a quick example demonstrating how to create and verify a payment intent using the PHP SDK:
<?php
require 'vendor/autoload.php';
use CodeWallet\Client\PaymentIntents;
$testData = [
'destination' => "E8otxw1CVX9bfyddKu3ZB3BVLa4VVF9J7CTPdnUwT9jR",
'amount' => 0.05,
'currency' => 'usd',
];
// Create a payment request intent
$response = PaymentIntents::create($testData);
// After some time, you can verify the status of the intent
$status = PaymentIntents::getStatus($response['id']);
echo $status;
If you have any questions or need help integrating Code into your website or application, please reach out to us on Discord or Twitter.
For now the best way to contribute is to share feedback on Discord. This will evolve as we continue to build out the platform and open up more ways to contribute.