Home PHP Libraries Other libraries Bitcoin payment php class
Bitcoin payment php class
namespace Org\Pay;
class BtcPay{
  const API='https://api.btcchina.com/api.php/payment';  //支付网关
  const NOTIFYURL ='http://www.xxx.com/notify.html';
  const CALLBACKURL ='http://www.xxx.com/callback.html';
  const ACCESSKEY=''; //
  const SECRETKEY='';
  /*其他参数*/
  public function __construct(){
    /*其他参数初始化*/
  }
  /**
   * 商户自己创建订单
   */
  public function order(){
    /**
     * 创建订单流程
     */
    $order_id='ORDER_ID'; //订单号

//$param['price']=''; //The price of the product

//$param['currency']='CNY'; //Currency type

//$param['notificationURL']=self::NOTIFYURL; //https security mode

//$param['returnURL']=self::CALLBACKURL;

/ /$param['externalKey']=$order_id; //The external key used by the merchant to identify this shopping order. It must be unique. Our order number

//$param['itemDesc'] =''; //Order description

//$param['phoneNumber']=''; //Customer mobile phone number

//$param['settlementType']=0;


Disclaimer

All resources on this site are contributed by netizens or reprinted by major download sites. Please check the integrity of the software yourself! All resources on this site are for learning reference only. Please do not use them for commercial purposes. Otherwise, you will be responsible for all consequences! If there is any infringement, please contact us to delete it. Contact information: admin@php.cn

Related Article

24 useful PHP class libraries to share, 24php class libraries_PHP tutorial 24 useful PHP class libraries to share, 24php class libraries_PHP tutorial

13 Jul 2016

24 useful PHP libraries to share, 24php libraries. 24 useful PHP libraries to share, 24php libraries Currently, PHP is the most popular scripting language used for web development. You can easily find a lot of information about PHP on the Internet, including documentation, tutorials,

15 Very Practical Open Source PHP Class Libraries, 15 Open Source Class Libraries_PHP Tutorial 15 Very Practical Open Source PHP Class Libraries, 15 Open Source Class Libraries_PHP Tutorial

13 Jul 2016

15 very practical open source PHP libraries, 15 open source libraries. 15 very practical open source PHP class libraries, 15 open source class libraries The PHP library provides developers with a standard interface, which helps developers make full use of object-oriented programming in PHP. These libraries are specific

20 Very Useful PHP Class Libraries_PHP Tutorial 20 Very Useful PHP Class Libraries_PHP Tutorial

15 Jul 2016

20 extremely useful PHP libraries. Below are some very useful PHP libraries, which I believe can provide a better and faster method for your WEB development. Chart libraries The following libraries allow you to easily create complex charts.

PHP common class organization_PHP tutorial PHP common class organization_PHP tutorial

21 Jul 2016

Compilation of common php classes. Chart Libraries The following libraries make it easy to create complex charts and graphics. Of course, they require support from the GD library. pChart - A library for creating statistical charts. Libchart -

PHP calls the dll class library method developed by C#, _PHP tutorial PHP calls the dll class library method developed by C#, _PHP tutorial

13 Jul 2016

PHP calls the dll class library method developed in C#. PHP calls dll class library methods developed in C#. Sometimes, we need to use dll class libraries written in other languages ​​in php, such as dlls written in C#. The method is to use the PHP new COM method to call.

Recommended 25 very useful class libraries in PHP, 25 non-Chinese class libraries in PHP_PHP Tutorial Recommended 25 very useful class libraries in PHP, 25 non-Chinese class libraries in PHP_PHP Tutorial

13 Jul 2016

Recommend 25 very useful class libraries in PHP and 25 non-Chinese class libraries in PHP. Recommended 25 very useful class libraries in php, 25 non-class libraries in php Snappy Snappy is PHP5 used to generate thumbnails, snapshots, PDF, URL or HTML pages. It uses the excellent WebKit-based wkht

See all articles