ipaylinks 对账单下载, 保存
parent
e0acb71ee2
commit
4f6f96f0c5
@ -0,0 +1,25 @@
|
|||||||
|
<?php
|
||||||
|
// ycc sanbox
|
||||||
|
// $config['client_id'] = "AVfErlDftQcNj22239jNQmTV-J-rLqBdNf3HZO0-McmElUDxadiF8vAQdeXmZAnB_nKy06ZwFazs1kKU";
|
||||||
|
// $config['secret'] = "EJUmlpxrNHkm3Kv4xBd1Qm2_kLGAmAcS8hbYKarYGAvQrDaJT-HrPgx_AEXL12-mt_3EM2KqM_E2eJtt";
|
||||||
|
// lyt sandbox
|
||||||
|
// $config['client_id'] = "AcMk2gic4iPAILnAuJnTQ4ndyz3k35APxNrqtqtG8-stjj7LykAkdPwmMG_AFvopDJCCt0Z-LQawoL9f";
|
||||||
|
// $config['secret'] = "EBPs37WgdYMLtrTTRv6usynF4eT-xGuk42VmvjePKxsQU6PfIk9aKe0zF8yIEo02vqP6oqkLWMdtJnU8";
|
||||||
|
// ycc live
|
||||||
|
$config['client_id'] = "Af8wR2_0NnDo3hf8axMkI-5TFd_UccjP4fZzsKz7136pBe6pj69QQIodqYAOjKr0wE-gpAE7Ilo4i_eh";
|
||||||
|
$config['secret'] = "EMp7oGhy8wX8pvJHC2Ey0_hnAxl2Oh559mSrbcnAqO526BhgxDR0gauTwYjY99DD7OBw0zeo4CIBWEfx";
|
||||||
|
|
||||||
|
$config['locale'] = "en_US";
|
||||||
|
$config['currency'] = "USD";
|
||||||
|
|
||||||
|
$config['token_url'] = "https://api.paypal.com/v1/oauth2/token";
|
||||||
|
$config['web_profiles_url'] = "https://api.paypal.com/v1/payment-experience/web-profiles/";
|
||||||
|
$config['webhooks_url'] = "https://api.paypal.com/v1/notifications/webhooks";
|
||||||
|
$config['payment_url'] = "https://api.paypal.com/v1/payments/payment";
|
||||||
|
$config['sale_url'] = "https://api.paypal.com/v1/payments/sale";
|
||||||
|
$config['activities_url'] = "https://api.paypal.com/v1/activities/activities";
|
||||||
|
|
||||||
|
$config['return_url'] = "https://www.chinahighlights.com";
|
||||||
|
$config['cancel_url'] = "https://www.chinahighlights.com";
|
||||||
|
|
||||||
|
$config['notify_url'] = "https://www.mycht.cn/webht.php/apps/paypal/index/paypal_note";
|
@ -0,0 +1,61 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
if (!defined('BASEPATH'))
|
||||||
|
exit('No direct script access allowed');
|
||||||
|
|
||||||
|
class Report_model extends CI_Model {
|
||||||
|
|
||||||
|
function __construct() {
|
||||||
|
parent::__construct();
|
||||||
|
$this->INFO = $this->load->database('INFO', TRUE);
|
||||||
|
}
|
||||||
|
|
||||||
|
/** 插入对账单记录 */
|
||||||
|
public function new_report($warrant_arr = array())
|
||||||
|
{
|
||||||
|
$sql = "INSERT INTO PaymentReports
|
||||||
|
(
|
||||||
|
PR_payType
|
||||||
|
,PR_orderType
|
||||||
|
,PR_COLI_SN
|
||||||
|
,PR_orderId
|
||||||
|
,PR_dealType
|
||||||
|
,PR_AccreditNo
|
||||||
|
,PR_currency
|
||||||
|
,PR_amount
|
||||||
|
,PR_rate
|
||||||
|
,PR_entryCurrency
|
||||||
|
,PR_entryAmount
|
||||||
|
,PR_fee
|
||||||
|
,PR_status
|
||||||
|
,PR_buyerName
|
||||||
|
,PR_buyerEmail
|
||||||
|
,PR_paymentTime
|
||||||
|
,PR_time
|
||||||
|
)
|
||||||
|
VALUES
|
||||||
|
(?,?,?,?,N?,?,?,?,?,?,?,?,N?,N?,N?,?
|
||||||
|
,GETDATE()
|
||||||
|
)";
|
||||||
|
$query = $this->INFO->query($sql,array(
|
||||||
|
$warrant_arr["PR_payType"]
|
||||||
|
,$warrant_arr["PR_orderType"]
|
||||||
|
,$warrant_arr["PR_COLI_SN"]
|
||||||
|
,$warrant_arr["PR_orderId"]
|
||||||
|
,$warrant_arr["PR_dealType"]
|
||||||
|
,$warrant_arr["PR_AccreditNo"]
|
||||||
|
,$warrant_arr["PR_currency"]
|
||||||
|
,$warrant_arr["PR_amount"]
|
||||||
|
,$warrant_arr["PR_rate"]
|
||||||
|
,$warrant_arr["PR_entryCurrency"]
|
||||||
|
,$warrant_arr["PR_entryAmount"]
|
||||||
|
,$warrant_arr["PR_fee"]
|
||||||
|
,$warrant_arr["PR_status"]
|
||||||
|
,$warrant_arr["PR_buyerName"]
|
||||||
|
,$warrant_arr["PR_buyerEmail"]
|
||||||
|
,$warrant_arr["PR_paymentTime"]
|
||||||
|
));
|
||||||
|
return $query;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
Loading…
Reference in New Issue