added strtoupper to control possible errors on payment status

This commit is contained in:
jouls 2024-05-08 14:20:14 +08:00
parent fd8016afd0
commit d0e49d0ea4
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ function renewToken() {
$orderArray = json_encode($order, true);
$orderItems = json_decode($orderArray, true);
if ($orderItems['payment']['status'] === 'PAID') {
if (strtoupper($orderItems['payment']['status']) === 'PAID') {
foreach ($orderItems['items'] as $item) {
$displayDate = date('m-d-Y, g:i A', strtotime($orderItems['updatedAt']));
$isPayoutCompleted = !empty($orderItems['payout_status']);