bleumi/payment-sdk-php 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bleumi/payment-sdk-php

Composer 安装命令:

composer require bleumi/payment-sdk-php

包简介

A simple and powerful REST API to integrate Traditional (Credit/Debit Card, Alternative Payment Methods) and Crypto Currency (Bitcoin, Ethereum, Stablecoins) payments into your business or application. ### Getting Started 1. Create an account on [Bleumi](https://account.bleumi.com/signUp/?app=payme

README 文档

README

A simple and powerful REST API to integrate Traditional (Credit/Debit Card, Alternative Payment Methods) and Crypto Currency (Bitcoin, Ethereum, Stablecoins) payments into your business or application.

Getting Started

  1. Create an account on Bleumi
  2. Fill up your profile
  3. Complete your KYC by contacting support@bleumi.com
  4. Add your preferred payment service providers in the Bleumi Portal
  5. Create your API key on the Bleumi Integration Settings screen

Authentication

Bleumi uses API keys to authenticate requests. You can view and manage your API keys in the Bleumi Integration Settings screen. Authenticated API requests should be made with a X-Api-Key header. Your API key should be passed as the value.

Payment Methods

Use the Bleumi Portal to add your preferred payment service provider (e.g. Stripe, BitPay, Bleumi Pay) and configure the payment methods that buyers would be able to use to make payments.

For more information, please visit https://bleumi.com/contact.html.

Installation & Usage

Requirements

PHP 7.2 and later.

Composer

To install the bindings via Composer, add the following to composer.json:

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

Then run composer install

Manual Installation

Download the files and include autoload.php:

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

Getting Started

Please follow the installation procedure and then run the following:

<?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 Endpoints

All URIs are relative to https://api.bleumi.io/v1

Class Method HTTP request Description
CountriesApi listCountries GET /data/countries
CurrenciesApi listCurrencies GET /data/currencies
PaymentRequestApi getPayment GET /payment/{id}
PaymentRequestApi listPaymentReceipts GET /payment/{id}/receipts
PaymentRequestApi listPaymentRefunds GET /payment/{id}/refunds
PaymentRequestsApi createPaymentRequest POST /payment
PaymentRequestsApi listPaymentRequests GET /payment
PaymentRequestsApi updatePaymentRequest PUT /payment
StatesApi listStates GET /data/states

Models

Authorization

Authorization

  • Type: API key
  • API key parameter name: X-Api-Key
  • Location: HTTP header

Tests

To run the tests, use:

composer install
vendor/bin/phpunit

Author

support@bleumi.com

About this package

This PHP package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0.0
    • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.PhpClientCodegen

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 2
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-04-20

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固