fix: test command
This commit is contained in:
@@ -39,6 +39,9 @@ class ItPayClient(IItPayService):
|
||||
'service_fee': str(order.service_fee) if order.service_fee is not None else None,
|
||||
'amount': amount_str,
|
||||
}
|
||||
if order.total_price is not None and order.service_fee is not None:
|
||||
principal = (Decimal(str(order.total_price)) - Decimal(str(order.service_fee))).quantize(Decimal('0.01'))
|
||||
metadata['principal_amount'] = str(principal)
|
||||
metadata = {k:v for k,v in metadata.items() if v is not None and v != ''}
|
||||
payload: dict[str, Any] = {
|
||||
'amount': amount_str,
|
||||
|
||||
Reference in New Issue
Block a user