bleumi/payment-sdk-php

一个简单而强大的REST API,可以将传统支付(信用卡/借记卡、其他支付方式)和加密货币支付(比特币、以太坊、稳定币)集成到您的业务或应用程序中。### 开始使用 1. 在[Bleumi](https://account.bleumi.com/signUp/?app=payme)上创建账户

1.0.0 2021-04-20 05:49 UTC

This package is auto-updated.

Last update: 2024-09-20 13:14:12 UTC


README

一个简单而强大的REST API,可以将传统支付(信用卡/借记卡、其他支付方式)和加密货币支付(比特币、以太坊、稳定币)集成到您的业务或应用程序中。

开始使用

  1. Bleumi上创建账户
  2. 填写您的个人资料
  3. 通过support@bleumi.com联系支持以完成KYC
  4. Bleumi门户中添加您首选的支付服务提供商
  5. Bleumi集成设置屏幕上创建您的API密钥

身份验证

Bleumi使用API密钥进行请求验证。您可以在Bleumi集成设置屏幕中查看和管理您的API密钥。经过身份验证的API请求应以X-Api-Key头部进行。您的API密钥应作为值传递。

支付方式

使用Bleumi门户添加您首选的支付服务提供商(例如Stripe、BitPay、Bleumi Pay)并配置买家可用于支付的支付方式。

有关更多信息,请访问https://bleumi.com/contact.html

安装与使用

要求

PHP 7.2及更高版本。

Composer

要使用Composer安装绑定,请将以下内容添加到composer.json

{
  "require": {
    "bleumi/payment-sdk-php": "1.0.0"
  }
}

然后运行composer install

手动安装

下载文件并包含autoload.php

<?php
require_once('/path/to/payment-sdk-php/vendor/autoload.php');

开始使用

请遵循安装过程,然后运行以下命令

<?php
require_once(__DIR__ . '/vendor/autoload.php');



// Configure API key authorization: Authorization
$config = Bleumi\Payment\Configuration::getDefaultConfiguration()->setApiKey('X-Api-Key', 'YOUR_API_KEY');


$apiInstance = new Bleumi\Payment\Api\CountriesApi(
    // If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
    // This is optional, `GuzzleHttp\Client` will be used as default.
    new GuzzleHttp\Client(),
    $config
);

try {
    $result = $apiInstance->listCountries();
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CountriesApi->listCountries: ', $e->getMessage(), PHP_EOL;
}

API端点

所有URI都是相对于https://api.bleumi.io/v1

模型

授权

授权

  • 类型: API密钥
  • API密钥参数名: X-Api-Key
  • 位置: HTTP头部

测试

要运行测试,请使用

composer install
vendor/bin/phpunit

作者

support@bleumi.com

关于此包

此PHP包由OpenAPI Generator项目自动生成

  • API版本:1.0.0
    • 包版本:1.0.0
  • 构建包:org.openapitools.codegen.languages.PhpClientCodegen