A valid address can still become a bad payment request
A checkout can accept the customer’s name and address, then damage them on the way to the gateway. Test the mapping before asking the buyer to change correct information.
In this article
Consider a customer whose billing address includes a long building name and a suite. The checkout accepts the complete address. Somewhere between the saved order and the payment request, the connection cuts off the end of a field. The customer sees an address problem and types the same correct address again.
In this hypothetical order, better instructions to the shopper would not repair the connection. The merchant needs to know what the customer supplied, what the store retained and what the gateway received. Those can be three different answers even when the checkout looks finished.
Find where the customer’s answer changed
Start with the purpose of the information. The billing address belongs to the card account; the delivery address tells the merchant where to send the purchase. A connection should not silently substitute one for the other because its sample request has only one address. Our billing address article explains why the difference matters when interpreting a payment result.
Then examine the translation. A single address box in the storefront may feed several fields in the request. A long line may exceed the limit of the actual processor. Putting the overflow into a spare field is not automatically a supported solution, especially if that field serves another purpose.
Cybersource’s billing street field lists different limits by processor. Its Visa Platform Connect guidance also describes downstream truncation that can affect address verification. A complete address displayed in the merchant’s order therefore does not establish that the issuer received the same detail. Have the web team confirm the applicable mapping and its limits before choosing abbreviations or splitting lines.
Names deserve the same attention. W3C’s guidance explains why assumptions about name order, spaces and permitted characters exclude legitimate people. Test accented names, apostrophes and longer family names in the store’s supported flow. Inspect the saved order and the submitted values, rather than stopping when the browser accepts them.
Preserving text in the store does not establish that every payment processor transmits it unchanged. Cybersource documents processor-specific character handling for billing addresses. Establish what the chosen connection supports, preserve the customer’s original information where it belongs and make any necessary correction understandable. Do not silently invent a different name or address to get a request through.
A postal code is an identifier
A ZIP code beginning with zero can lose that zero when a system treats it as an ordinary number. The screen may have collected the right five characters while an intermediate calculation or import stores four. Adding a zero later by guesswork is not a sound repair for the general problem.
Keep postal codes as text through the order and request mapping. Cybersource defines its billing postal code as a string and documents country-specific formats. Canadian postal codes include letters; a numeric-only rule cannot represent them. A phone’s numeric keyboard can be convenient for a particular country without determining the underlying data type or every country’s validation.
Country and state selections need an equally explicit connection. The shopper can see a familiar country name while the payment request uses the required code. Cybersource’s billing country field expects a two-character ISO country code, and its administrative area field has its own state or province requirements. A translated display label is not necessarily the value the API accepts.
Check what happens when the customer changes countries after choosing a state. The visible form, saved order and request should describe the same place. Keeping a previous state selection behind a newly chosen country is a mapping error, not an invitation for the shopper to try a different card.
Optional belongs to a particular request
An unfilled box on a demonstration page does not establish that the corresponding payment field can be omitted. Cybersource makes some billing fields optional when an account is configured for relaxed address requirements. Other services can impose their own requirements. The team must establish the rules for this account, operation and payment method.
Where information is legitimately unavailable, have the developer follow the documented omission rules. Do not assume that leaving a field out, sending an empty string and supplying a placeholder mean the same thing. A made-up postal code gives the system an answer while removing its connection to the customer.
Explain a genuine requirement at the point of entry. If the operation cannot proceed without a detail, a field marked optional sets the buyer up for a later failure. If the account permits omission, collecting extra information merely because it appeared in sample code adds work without an established purpose.
Approve the connection with realistic details
A launch test should include the kinds of names and addresses the business intends to serve, using appropriate test data rather than customer records. Include a long address, a unit, a leading postal zero and a country change. Follow each value through the supported test flow and inspect the actual request mapping and resulting records.
For a Trolleys merchant, bring a reproducible field problem to the web team and integration support with the affected operation, field and safe error details. Keep personal addresses and payment credentials out of ordinary troubleshooting messages. If a payment may already exist, establish its result before inviting another attempt.
The acceptance question is whether the connection can carry a real customer’s answer accurately within its documented constraints. The customer should be correcting their own mistake, not compensating for yours.