<?php
/*
* This file is part of the overtrue/wechat.
*
* (c) overtrue <i@overtrue.me>
*
* This source file is subject to the MIT license that is bundled
* with this source code in the file LICENSE.
*/
/**
* Merchant.php.
*
* @author overtrue <i@overtrue.me>
* @copyright 2015 overtrue <i@overtrue.me>
*
* @see https://github.com/overtrue
* @see http://overtrue.me
*/
namespace EasyWeChat\Payment;
use EasyWeChat\Support\Attribute;
class Merchant extends Attribute
{
protected $attributes = [
'app_id',
'merchant_id',
'key',
'sub_app_id',
'sub_merchant_id',
'ssl_cert_path',
'ssl_key_path',
'fee_type',
'device_info',
];
protected $aliases = [
'app_id' => 'appid',
'key' => 'mch_key',
'merchant_id' => 'mch_id',
'sub_app_id' => 'sub_appid',
'sub_merchant_id' => 'sub_mch_id',
'cert_path' => 'sslcert_path',
'key_path' => 'sslkey_path',
];
public function __construct(array $attributes)
{
parent::__construct($attributes);
$this->with('fee_type', 'CNY');
}
}