Using Decimals and Strings
Cybersource
uses decimal points in all amount and tax rate fields; Cybersource
does not use implied decimal points. For example, if the amount of the product being purchased is 29.95, set that field to 29.95
. Barclays
does not support fractional quantities. You
must use whole numbers only. For tax rates used with Level III transactions, you must include
a decimal point in the value. For example, if a tax rate is 1%, you should set that field to
1.00
.For many of the fields described in this document, Visa and Mastercard permit different
lengths for alphanumeric (string) input.
Cybersource
accepts any length you
provide. If the value you provide is longer than the payment card company permits, Cybersource
truncates the value, keeping the left-most portion of the value. If the
value you provide is shorter than the payment card company requires, Cybersource
pads the field before sending it to the processor.