perf: PayPal退款: 优先处理IPN

webht/payment
Lei OT 9 months ago
parent b6da466e81
commit f226619289

@ -1256,11 +1256,13 @@ class Index extends CI_Controller {
if ( ! empty($notes) ) { // && strpos($notes[0]->pn_custom, 'GPA_') === false
$memo0 = json_decode($notes[0]->pn_memo);
if ( ! (isset($memo0->id) && substr($memo0->id, 0, 2)==="WH")) {
$IPN_note = $notes[0]; // 存在IPN, 本条忽略
$IPN_note = $notes[0]; // 存在IPN, 本条WH忽略
if ((isset($payment_memo->id) && substr($payment_memo->id, 0, 2)==="WH")) {
$this->Note_model->update_send($item->pn_txn_id, 'send-', $item->pn_sn);
return false;
}
}
}
// 找到原始收款交易的订单
$parent_txn_id = $payment_memo->parent_txn_id;
$parent_note = $this->Note_model->note($parent_txn_id);

Loading…
Cancel
Save