Invalid Contact Data Causing PayJunction Transaction Errors
The fields saved in ezyVet’s Contact screen are sent to PayJunction whenever a transaction is processed.
PayJunction applies stricter validation rules to certain fields to help ensure data integrity, particularly for fields such as:
- Phone Number
- Email Address
- Website
Because of this, invalid data may go unnoticed for some time. ezyVet may allow a user to save an invalid value in the Contact screen, but when that information is later sent to PayJunction during transaction processing, the data may be rejected and cause an error in ezyVet.
Example: Invalid Website Value
If the Website field contains an invalid value such as:
and that Contact is then used to process a Smart Terminal transaction, ezyVet may display an error similar to the following:
To resolve this issue, open the Contact record and remove or correct any invalid value in the Website field so that it contains a properly formatted website URL.
Important Notes
In the example above, the issue is relatively straightforward because the transaction is stopped before processing and the error message clearly identifies the problem.
However, depending on:
- the Payment Method being used, and
- which field contains invalid data,
the behavior may vary. In some cases, the transaction may process successfully in PayJunction, but ezyVet may fail to update the invoice as paid.
Because invalid Contact data can lead to inconsistent or unpredictable results, we strongly recommend using each field only for its intended purpose.
Storing Additional Customer Information
If you need to store information about a pet owner that should not be sent to PayJunction, use the Contact Notes field instead.