Align merchant settlement and booking checkout with the updated Ladill Pay sales tier. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -27,7 +27,7 @@ class QrSaleOrder extends Model
|
||||
self::FULFILLMENT_CANCELLED => 'Cancelled',
|
||||
];
|
||||
|
||||
public const PLATFORM_FEE_RATE = 0.15;
|
||||
public const PLATFORM_FEE_RATE = 0.09;
|
||||
|
||||
protected $fillable = [
|
||||
'pay_order_id',
|
||||
|
||||
@@ -297,7 +297,7 @@ class MerchantSaleService
|
||||
}
|
||||
|
||||
$paidAmount = round(($data['amount'] ?? 0) / 100, 2);
|
||||
$platformFee = round($paidAmount * 0.15, 2);
|
||||
$platformFee = round($paidAmount * QrSaleOrder::PLATFORM_FEE_RATE, 2);
|
||||
$merchantAmount = round($paidAmount - $platformFee, 2);
|
||||
|
||||
$booking->update([
|
||||
|
||||
Reference in New Issue
Block a user