code-wallet/client
最新稳定版本:v1.0.0
Composer 安装命令:
composer require code-wallet/client
包简介
Code Wallet PHP Client
README 文档
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.
统计信息
- 总下载量: 19
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-11-06