jjcaicedo / place-to-pay
place to pay 测试包
1.0.0
2016-06-27 09:12 UTC
Requires
- php: >=5.6
- illuminate/database: ^5.2
This package is not auto-updated.
Last update: 2024-09-14 19:04:13 UTC
README
Place To pay 包 ##先决条件 ###数据库表 数据表用于注册付款
//using illuminate migrations Schema::create('payments', function (Blueprint $table) { $table->increments('id'); $table->string('status'); $table->string('transaction_id'); $table->timestamps(); });
##使用方法 ###连接
$auth = new \JJCaicedo\PlaceToPay\Models\Authentication(<Place to pay AuthId>, <Place to pay TranKey>, <Additional Data>|null); \JJCaicedo\PlaceToPay\PlaceToPay::connect($auth, <Soap wdsl url>);
###交易请求 发送交易请求 检查模型类
$transactionResponse = \JJCaicedo\PlaceToPay\PlaceToPay::createTransaction(<PSETransactionRequest>);//If it works Payment status Sent
###获取交易信息 发送交易请求 检查模型类
$transactionInformation = \JJCaicedo\PlaceToPay\PlaceToPay::getTransactionInformation(<transactionId>); //If it works Payment status to $transactionInformation->transactionState;