You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
677 B

<?php
namespace app\callback\controller;
use app\callback\BaseController;
use asc\line\LinePay as LPay;
// use think\facade\View;
// use think\facade\Db;
class LinePay extends BaseController
{
public function confirm()
{
$r_data = [
'amount' => 250,
'currency' => 'TWD'
];
$lp = new LPay('1657811805','53a912dfa167b5e767847c7e9fca4ea1');
$result = $lp->confirm(input('transactionId'),$r_data);
print_r($result);
// if(!$result['returnCode']=='0000'){
// return $this->Error('付款失敗');
// }
}
public function cancel()
{
return 'cancel';
}
}