code-wallet / client
Code Wallet PHP Client
Requires
- paragonie/sodium_compat: ^1.14
- stephenhill/base58: ^1.1
Requires (Dev)
- phpunit/phpunit: ^9.5
This package is not auto-updated.
Last update: 2024-12-18 03:20:57 UTC
README
Code SDK - PHP
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.
What is Code?
Code is a mobile wallet app that utilizes self-custodial blockchain technology to offer instant, global, and private payment services.
Installation
You can install the Code PHP SDK via Composer:
composer require code-wallet/client
Usage
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;
Getting Help
If you have any questions or need help integrating Code into your website or application, please reach out to us on Discord or Twitter.
Contributing
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.