Table of contents
Overview
This section describes how transaction errors are handled with the Z-Payments Page.
Page Submission is Unsuccessful
If the page submission is unsuccessful, you can retain the values entered into the iFrame when it is reloaded to save the end-user from re-typing in the information. You can preload the new page with the page with the previously entered information that was saved in the browser cookie by appending the parameter &retainValues=true. You can preload the page with the previously entered information that was saved in the cookie.
For example, a URL for a reloaded iFrame would look like the following:
https://apisandbox.zuora.com/apps/PublicHostedPaymentMethodPage.do?method=requestPage&id=4028e697325f8e970132603326446b33&tenantId=10514×tamp=1316846722596&token=gDVbLHaIYGWbGgAraMxP6cbxIwJzRmWx&signature=h8zD4RyIjnouOu6O03NEIA=&retainValues=true
Note a few items:
- &retainValues=true should only be appended to "reloaded" iFrame URLs that are called after an unsuccessful submission. The first generation of the iFrame on the webpage should not include &retainValues.
- Sensitive information, including the credit card number and card security code (CVV), will not be saved and will always be empty when reloaded.
- Zuora only uses cookie for "single use" so the values are not persisted in our database for future use.
Z-Payment Page Error Codes
| Code Name | Description | Used In |
|---|---|---|
| GeneralSystemError | One or more general system errors have occurred. For example, Zuora’s system defect. | errorCode |
| BusinessValidationError | One or more business validation errors have occurred, such as when certain business rules in the Zuora applicatoin have not been met. An error message is typically returned from Zuora. | errorCode |
| GatewayTransactionError | One or more gateway transaction errors have occurred. For example, an invalid account number, or an invalid username / password configured in Gateway Settings page. An error message is typically returned from the payment gateway. | errorCode |
| HostedPageFieldValidationError | One or more field validation errors have occurred. These are the errors that occur from submitting the hosted page without filling in one or more "required" fields. One or more | errorCode |
| NullValue | Field is required but no value has been entered. | errorField |
| InvalidFormat | Format of value does not match its definition. | errorField |
| ExceededMaxLength | Length of value entered exceeds the maximum length. | errorField |

Comments