Position:home  

Authorize.net: How to Customize the Denied Transaction Pop-up Window

When a customer's transaction is denied on your Authorize.net payment gateway, a pop-up window appears to display the error message. By default, this window is plain and unstyled, but you can customize its appearance to match your website's design and improve the customer experience.

Customizing the Denied Transaction Pop-up Window

To customize the denied transaction pop-up window, you need to edit the HTML and CSS code associated with the Authorize.net payment form. Here are the steps:

  1. Log in to your Authorize.net account and navigate to the "Payment Form" section.
  2. Select the payment form you want to edit and click on the "Edit" button.
  3. Scroll down to the "Advanced Settings" section and expand the "Custom Window" option.
  4. In the "Custom Window" section, you can customize the following settings:
  • Width: Set the width of the pop-up window in pixels.
  • Height: Set the height of the pop-up window in pixels.
  • Position: Choose whether the pop-up window should appear at the top or bottom of the page.
  • Background Color: Set the background color of the pop-up window.
  • Text Color: Set the color of the text in the pop-up window.
  • Font: Choose the font used in the pop-up window.
  • Custom CSS: Add custom CSS code to further customize the appearance of the pop-up window.

Example CSS Code

Here is an example CSS code that you can use to customize the denied transaction pop-up window:

.AuthorizeNetWindow {
  width: 400px;
  height: 200px;
  position: bottom;
  background-color: #f5f5f5;
  text-color: #333333;
  font-family: Arial, sans-serif;
}

.AuthorizeNetWindowTitle {
  font-size: 16px;
  font-weight: bold;
  padding: 10px 15px;
  background-color: #f0f0f0;
}

.AuthorizeNetWindowContent {
  padding: 10px 15px;
}

.AuthorizeNetWindowButton {
  padding: 5px 10px;
  background-color: #333333;
  color: #ffffff;
  border: none;
  cursor: pointer;
}

Previewing and Testing the Pop-up Window

Once you have made the necessary changes to the HTML and CSS code, click on the "Preview" button to see how the pop-up window will appear. You can also test the pop-up window by submitting a test transaction with a declined credit card number.

authorize.net how to style pop up window denied transaction

Additional Tips for Customizing the Pop-up Window

  • Use clear and concise language in the error message.
  • Provide helpful information to the customer, such as why the transaction was declined.
  • Offer the customer an opportunity to correct the error and resubmit the transaction.
  • Make sure the pop-up window is responsive so that it displays correctly on all devices.

By customizing the denied transaction pop-up window, you can improve the customer experience and make it more likely that customers will complete their purchases.

Time:2024-12-16 08:47:38 UTC

invest   

TOP 10
Related Posts
Don't miss