本文整理匯總了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;
}