All articles

Detailed payment data has to describe the purchase

Item prices, tax, discounts and product descriptions can become inconsistent even when the checkout total looks right. Give detailed payment data an owner before sending it.

In this article

Imagine a supplier selling three items at USD 20 each with an agreed USD 6 discount. Before tax and delivery, the customer owes USD 54. The invoice makes sense. The payment connection still has to decide how that purchase is represented in its detailed fields.

If it sends the original item prices but loses the discount, the detail describes USD 60 of merchandise. If it reduces the item prices and subtracts the same discount again, it describes something else. A correct total at the top of the screen does not prove that every description of the purchase agrees.

Sending more data is useful only when the business can stand behind what it says.

Reconstruct the same purchase from both records

Begin with the actual supported payment operation. Item detail can serve different purposes, and its rules depend on the provider, processor and service. An invoice API example is not automatically a specification for a card authorization or an enhanced purchasing data submission.

Cybersource defines separate fields for unit price, quantity, line total and tax. Its line total reference describes a unit price multiplied by quantity, with specified processor availability. The field’s name alone does not make it the amount due for the complete order.

Tax is especially easy to count twice. Cybersource’s line tax documentation gives an additive example and requires the tax amount and unit price to use the same currency. Copying a price that already includes tax into a field treated as excluding tax can change the purchase. The team needs the calculation rules for its actual request, including whether discounts and delivery appear at item or order level.

Have the person responsible for the merchant’s invoice agree the expected amounts with the developer. Use a representative discounted purchase and reconcile each component to the customer’s final total. A payment integration should express the agreed tax treatment, not decide the store’s tax policy while translating it.

Rounding needs the same ownership. An order discount distributed across several items may leave a cent to allocate under the store’s policy. Document that treatment and test the resulting line values. Do not alter a quantity, price or tax amount merely to silence a validation error. Our amount calculation article explains why formatting a number does not repair an incorrect calculation.

A useful test includes an edited quantity or removed item. If the order total updates while the detail still comes from an earlier cart, the request contains two versions of the sale. Build the final request from the same agreed purchase rather than assembling independently refreshed pieces.

A shorter description must still identify the item

A catalogue title can contain a brand, product, size, finish and marketing phrase. A gateway field may have less room. Cybersource documents limits for product names and descriptions, including processor-specific name limits. The developer should check the field actually being used instead of borrowing a limit from another API.

Agree a concise description that preserves the useful distinction. For a supplier selling several similar parts, the model or variant can matter more than the promotional wording at the beginning of the catalogue title. Cutting text at an arbitrary character can leave several different items looking identical.

Keep the full purchase description and customer choices in the order. A shorter payment field does not justify removing detail from the invoice or fulfillment instructions. Equally, do not move excess text into an unrelated payment field just because it has spare capacity. Each supplied value still needs to mean what that field says.

Review a long description in the supported test submission and the record staff will use afterward. Check accented characters and punctuation where relevant to the catalogue. The point is to verify the actual representation, not assume that text accepted by one screen reaches every downstream record unchanged.

If a required description cannot be represented correctly, resolve the mapping with the provider before launch. Omitting an optional field can be legitimate under the operation’s rules; omitting required information to make the request pass is a different decision.

Give the detail an owner before launch

The merchant owns the purchase facts. The web team owns their translation into the supported request. The implementation team establishes which fields and services apply to the account. Bringing those responsibilities together prevents a developer from having to guess the meaning of a discount or a finance team from assuming every field is transmitted automatically.

If detailed data is proposed for an enhanced processing program, confirm the current account and transaction requirements separately. Adding product fields does not itself establish program eligibility or a lower processing cost. Do not manufacture tax, item or purchase information to meet a hoped-for qualification.

For a Trolleys merchant, include this agreement in the order and payment acceptance checks. Compare the agreed purchase, the submitted detail and the provider record available to your team. Confirm where the full invoice remains accessible when a payment report contains only a shorter description.

The extra detail earns its place when another person can use it to understand the same purchase. A request filled with values is not complete if those values tell a different story.