Skip to content
Faith Forge LabsJordan

Check the currency that reaches the record, not only the currency on screen

A form can display JOD clearly and still create a draft in a different currency. The useful investigation follows the approved order value through the submitted fields and the receiver's decision. It should happen before any live payment is attempted.

This fictional example concerns a supplier application preparing an unissued payment draft. The organisation's approved order is the authority for amount and currency. The exercise contains no charge, refund or conclusion about invoice or tax requirements.

Establish the source record

Order O-62 belongs to customer C-4. Its approved amount is 18.500 JOD in the fictional system's agreed representation. The customer page displays the amount and a disabled currency selector showing JOD. Staff intended the disabled selector to communicate that the customer cannot change the order currency.

The receiving draft D-62, however, shows the amount as USD. The customer has not selected USD, and the approved order has not changed. Do not begin by changing number formatting: the mismatch concerns the currency relationship, not the decimal separator.

The initial evidence is:

Boundary Value inspected
Approved O-62 Customer C-4; amount 18.500; currency JOD
Visible page 18.500 beside disabled selector JOD
Form entry list order_id=O-62 and the other enabled named fields; no currency entry
Receiver rule Missing submitted currency falls back to USD
Unissued draft D-62 O-62; amount 18.500; currency USD

This establishes a complete route from a correct visible value to a wrong stored value. The missing field and the fallback both matter.

Understand what disabling the control does

The HTML Standard's entry-list algorithm excludes disabled controls. A selected option can remain visible while its disabled control contributes no value to form submission. The inspected form uses that ordinary behaviour; it has no separate code adding the currency afterward.

Simply enabling the selector would make it submit, but it would also create a customer-editable value that the business did not intend to offer. Adding a hidden field could carry a value, but hidden fields are still client-supplied input. Neither change establishes the approved order currency as the receiver's authority.

The chosen repair therefore addresses the receiving rule rather than relying on presentation to protect the amount.

Derive the draft from the authorised order

The inspected application supports server-side lookup of the customer's approved order. The revised receiver first verifies the acting customer's access to O-62 and its eligible state. It then obtains the approved amount and currency from that record when preparing the draft.

The disabled selector can remain a display of the order currency. It is no longer treated as the source the server needs. The new contract does not silently fall back to USD when an order or currency cannot be established.

If a submitted currency field is present and contradicts the approved order, the fictional application rejects the inconsistent request for review. If the order reference is absent, unknown or belongs to another customer, it creates no draft. Those decisions are explicit parts of this inspected application's contract, not assumptions about every provider API.

Resolve the wrong test draft explicitly

D-62 is unissued and unpaid. In the supported test workflow, the authorised operator marks it superseded with the reason “currency derived from submitted-field fallback” and creates replacement D-63 from O-62. The earlier draft remains inspectable in test history and is not sent to a provider.

The operator opens D-63 independently of the customer page. Its stored order is O-62, amount 18.500 and currency JOD. The preview displays the same values. This verifies the replacement record; it does not claim a provider has accepted a transaction.

A separate new order O-64 for the same customer uses the business's approved USD amount in this fixture. Its new draft remains USD. That control shows the correction is not a rule that forces every request into JOD.

Verify the boundaries around the repair

Test Recorded outcome
C-4 requests an eligible draft for O-62 D-63 derives JOD and amount from O-62
Client sends currency=USD with O-62 Inconsistent request refused; no new draft
Client omits order_id No order established and no draft created
C-4 submits another customer's order O-65 Access refused; neither order changes
C-4 requests approved USD order O-64 Draft retains O-64's USD currency
Reviewer reopens old D-62 Superseded, unissued history is still identifiable

Also repeat the original customer journey with keyboard and pointer input in the supported setup. The page should still explain the currency without suggesting it is selectable. Staff need a useful message for a refused request and a reference for investigating it.

Keep provider and professional checks separate

Before connecting this application to a payment service, inspect the actual provider account, supported amount representation, currency conditions and test route. The supplier's approved internal record does not establish account eligibility or provider acceptance. Finance and appropriate advisers still determine invoicing, tax and refund requirements.

The lesson for a project brief is concrete: record the approved amount and currency, inspect the fields that actually arrive, identify the receiver's authority and open the resulting draft. The payment-connection service builds on that evidence when a supported provider integration is part of the agreed scope.