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

What are some very useful class libraries or tool libraries for PHP? What are some very useful class libraries or tool libraries for PHP?

06 Jul 2016

What are some very useful class libraries or tool libraries for PHP?

How Do I Link Static Libraries That Depend on Other Static Libraries? How Do I Link Static Libraries That Depend on Other Static Libraries?

13 Dec 2024

Linking Static Libraries to Other Static Libraries: A Comprehensive ApproachStatic libraries provide a convenient mechanism to package reusable...

Why Do PHP Developers Use Leading Underscores in Class Methods? Why Do PHP Developers Use Leading Underscores in Class Methods?

11 Nov 2024

Hidden Truths: The Leading Underscore in PHP Class MethodsWhen browsing PHP libraries, one might stumble upon class methods prefixed with a...

laravel - What should the standardized PHP class library naming look like? laravel - What should the standardized PHP class library naming look like?

06 Jul 2016

I have seen many open source projects in the form of class.classname.php, but I have also seen many frameworks in the form of classname.class.php. Where should I place this class? I personally prefer the .class.php form, because in some frameworks, after importing third-party class libraries and specifying class libraries...

Why Do Some PHP Class Methods Start with an Underscore? Why Do Some PHP Class Methods Start with an Underscore?

09 Nov 2024

Why Do Some PHP Class Methods Begin with an Underscore?While exploring PHP libraries, you might have noticed that certain developers prefer to...

PHP WeChat payment development example, PHP payment example PHP WeChat payment development example, PHP payment example

06 Jul 2016

PHP WeChat payment development example, PHP payment example. PHP WeChat payment development example, PHP payment example PHP WeChat payment development process, shared with everyone for your reference, the specific content is as follows 1. Development environment Thinkphp 3.2.3 WeChat: service account,

See all articles