Table of Contents

This wiki describes how to add the Pay Online button to a report. The Pay Online button is used in conjunction with the online payments feature in Control. When clicked, the customer is directed to a webpage where they can enter their credit card information to pay an invoice. For more info, see the Online Payments Wiki.

Caution

For the Pay Online button to work,

Steps

In the steps below, I'll refer to an invoice report. You can use the exact same steps on other reports as well.

  1. Open the invoice in Crystal Reports.
  2. Create a new string parameter called ApplicationProperty_CloudRootPath. Enter the settings shown below:

  1. Add the Pay Online button to your report. You can use the one supplied below or any image of your choice.

{{ :payonline.bmp|}}

  1. Right click on the image and select Format Graphic.
    1. Go to the Hyperlink tab.
    2. The Hyperlink Type that we need to use is A Website on the Internet.
    3. Under Hyperlink Information, click the formula edit button and paste the below code:

> 'https://payments.cyrious.com/' + {?APPLICATIONPROPERTY_CloudRootPath} + '/payment/' + ToText({Command_Invoice.OrderNumber}, 0, "")

  1. Save your report changes and test the new button.

Most customers will not want to display the Pay Online button on every invoice. The solution would be to add a parameter that suppresses the section that displays the Pay Online button. Then the customer can decide when the button is displayed and when it isn't.

Source

Contributor: Cyrious Software

Date: 06/28/2016

Version: Control 05.70