14-04-2026
This commit is contained in:
parent
f58c709945
commit
0f82fea88a
72 changed files with 7414 additions and 148 deletions
|
|
@ -6,6 +6,7 @@ use App\Http\Controllers\Controller;
|
|||
use App\Models\PaymentTransaction;
|
||||
use App\Models\ShoppingOrder;
|
||||
use App\Models\ShoppingPayment;
|
||||
use App\Services\CheckoutFunnelTracker;
|
||||
use App\Services\MyLog;
|
||||
use App\Services\Payment;
|
||||
use App\Services\ShoppingUserService;
|
||||
|
|
@ -152,6 +153,9 @@ class PayoneController extends Controller
|
|||
'txaction' => $data['txaction'],
|
||||
'transmitted_data' => Util::utf8ize($data),
|
||||
'mode' => $data['mode'],
|
||||
'errorcode' => $data['errorcode'] ?? null,
|
||||
'errormessage' => $data['errormessage'] ?? null,
|
||||
'customermessage' => $data['customermessage'] ?? null,
|
||||
]);
|
||||
|
||||
// Define txaction priority (higher number = higher priority)
|
||||
|
|
@ -219,6 +223,20 @@ class PayoneController extends Controller
|
|||
);
|
||||
throw $e;
|
||||
}
|
||||
|
||||
CheckoutFunnelTracker::confirmedPayment(
|
||||
shoppingPaymentId: $shopping_payment->id,
|
||||
txaction: 'paid',
|
||||
metadata: ['mode' => $data['mode'] ?? null, 'txid' => $data['txid'] ?? null],
|
||||
);
|
||||
}
|
||||
|
||||
if ($data['txaction'] === 'appointed') {
|
||||
CheckoutFunnelTracker::confirmedPayment(
|
||||
shoppingPaymentId: $shopping_payment->id,
|
||||
txaction: 'appointed',
|
||||
metadata: ['mode' => $data['mode'] ?? null],
|
||||
);
|
||||
}
|
||||
|
||||
$data['send_link'] = $send_link;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue