php 海关对接 进口商品_php 对接国外支付 ipay88支付

本文详细介绍了如何使用PHP进行海关对接和进口商品支付,特别是如何与ipay88支付平台进行交互,包括正常支付、订阅支付和终止订阅等交易类型,以及关键参数和签名生成方法。
摘要由CSDN通过智能技术生成

classIpay extends CApplicationComponent {/**

* Normal iPay88 payment method*/

const TRANSACTION_TYPE_PAYMENT = 'payment';/**

* Normal iPay88 recurring payment subscription*/

const TRANSACTION_TYPE_RECURRING_SUBSCRIPTION = 'recurring_subscription';/**

* Normal iPay88 recurring payment termination*/

const TRANSACTION_TYPE_RECURRING_TERMINATION = 'recurring_termination';/**

* Merchant code assigned by iPay88*/

public$merchantCode;/**

* Merchant Key assigned by iPay88*/

public$merchantKey;/**

* Currency Code max length 5*/

public$currencyCode;/**

* Merchant code assigned by iPay88*/

public$responseUrl;/** Response Url or Return Url after payment*/

public$paymentUrl;/** Backend Url or Notify Url after payment (Send response by iPay88 server)*/

public$backendUrl;/** Requery from iPay88 server regarding bill details*/

public$requeryUrl;/** ipay88 Recurring Payment Url*/

public$recurringUrlSubscription;/** ipay88 Recurring Payment Termination Url*/

public$recurringUrlTermination;/** Details to be sent to IPay88 for payment request.*/

private $paymentRequest =array('MerchantCode', //Merchant code assigned by iPay88. (length 20)

'PaymentId', //(Optional) (int)

'RefNo', //Unique merchant transaction number / Order ID (Retry for same RefNo only valid for 30 mins). (length 20)

'Amount', //Payment amount with two decimals.

'Currency', //(length 5)

'ProdDesc', //Product description. (length 100)

'UserName', //Customer name. (length 100)

'UserEmail', //Customer email. (length 100)

'UserContact', //Customer contact. (length 20)

'Remark', //(Optional) Merchant remarks. (length 100)

'Lang', //(Optional) Encoding type:- ISO-8859-1 (English), UTF-8 (Unicode), GB2312 (Chinese Simplified), GD18030 (Chinese Simplified), BIG5 (Chinese Traditional)

'Signature','ResponseURL','BackendURL',

);/** Details to be sent to iPay88 for recurring subscription payment request.*/

private $recurringSubscriptionRequest =array('MerchantCode', //Merchant code assigned by iPay88. (length 20)

'RefNo', //Unique merchant transaction number / Order ID. (length 20)

'FirstPaymentDate', //(ddmmyyyy)

'Currency', //MYR only. (length 5)

'Amount', //Payment amount with two decimals.

'NumberOfPayments', //(int)

'Frequency', //Frequency type; 1 - Monthly, 2 - Quarterly, 3 - Half-Yearly, 4 - Yearly. (int)

'Desc', //Product description. (length 100)

'CC_Name', //Name printed on credit card. (len

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值