code-wallet/client

Code Wallet PHP Client

v1.0.0 2023-11-06 23:32 UTC

This package is not auto-updated.

Last update: 2024-11-20 03:02:46 UTC


README

Code SDK - PHP

Code SDK - PHP

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

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.