-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Hello,
When I perform a test transaction with a flat total value ($1.00, $5.00) the return data from the listener is 1 or 5 in the total field, it isn't a valid long or float.
<script type="text/javascript">
ATHM_Checkout = {
env: 'sandbox',
publicToken: 'sandboxtoken01875617264',
timeout: 600,
theme: 'btn',
lang: 'en',
total: 1.00,
tax: 1.00,
subtotal: 1.00,
metadata1: 'metadata1 test',
metadata2: 'metadata2 test',
items: [
{
"name":"First Item",
"description":"This is a description.",
"quantity":"1",
"price":"1.00",
"tax":"1.00",
"metadata":"metadata test"
},
{
"name":"Second Item",
"description":"This is another description.",
"quantity":"1",
"price":"1.00",
"tax":"1.00",
"metadata":"metadata test"
}
]
}
Example returned value:
{
dailyTransactionID: 2,
date: '2023-06-26 13:38:39.000',
email: 'exampl@gmail.com',
fee: 0.11,
items: [
{
description: '',
name: 'Example',
price: 1,
quantity: '1',
tax: 0
}
],
message: '',
metadata1: 'Example',
metadata2: 'Empty',
name: 'Example Customer',
netAmount: 0.93,
phoneNumber: 7877750000,
referenceNumber: 'example reference',
status: 'COMPLETED',
subtotal: 0,
tax: 0,
total: 1,
totalRefundedAmount: 0,
transactionType: 'ECOMMERCE'
}
The expected behavior should be a long value of 100 or a valid money value: decimal or a fixed-point numeric type.
RFL0WGitPR
Metadata
Metadata
Assignees
Labels
No labels