本文整理汇总了PHP中EE_Transaction::gateway_response_on_transaction方法的典型用法代码示例。如果您正苦于以下问题:PHP EE_Transaction::gateway_response_on_transaction方法的具体用法?PHP EE_Transaction::gateway_response_on_transaction怎么用?PHP EE_Transaction::gateway_response_on_transaction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类EE_Transaction
的用法示例。
在下文中一共展示了EE_Transaction::gateway_response_on_transaction方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: _get_empty_payment_obj
/**
* This sets up an empty EE_Payment object for the purpose of shortcode parsing. Note that this doesn't actually get saved to the db.
* @param \EE_Transaction $txn
* @return \EE_Payment
*/
private function _get_empty_payment_obj(EE_Transaction $txn)
{
$PMT = EE_Payment::new_instance(array('STS_ID' => EEM_Payment::status_id_pending, 'PAY_timestamp' => time(), 'PMD_ID' => $txn->payment_method_ID(), 'PAY_gateway_response' => $txn->gateway_response_on_transaction()));
return $PMT;
}
示例2: _get_empty_payment_obj
/**
* This sets up an empty EE_Payment object for the purpose of shortcode parsing. Note that this doesn't actually get saved to the db.
* @return EE_Payment
*/
private function _get_empty_payment_obj(EE_Transaction $txn)
{
$PMT = EE_Payment::new_instance(array('STS_ID' => EEM_Payment::status_id_pending, 'PAY_timestamp' => (int) current_time('timestamp'), 'PAY_gateway' => $txn->selected_gateway(), 'PAY_gateway_response' => $txn->gateway_response_on_transaction()));
return $PMT;
}