====== ====== 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 [[cloud_payment_system_online_payments|Online Payments Wiki]]. ===== Caution ===== For the **Pay Online** button to work, * The customer must have a valid Terminal ID and Store ID in Setup > Accounting Setup > Credit Card Options. * The customer must have the Cyrious Cloud Connector option enabled and it must have a valid Root Path entered in Setup > System Setup. * The customer must have the UDF **C^3 Module Authorized** checked in internal Control. ===== Steps ===== In the steps below, I'll refer to an invoice report. You can use the exact same steps on other reports as well. - Open the invoice in Crystal Reports. - Create a new string parameter called ApplicationProperty_CloudRootPath. Enter the settings shown below: {{::onlinepay-reportparameter.png?nolink&|}} - Add the **Pay Online** button to your report. You can use the one supplied below or any image of your choice. {{::payonline-01.png?nolink&|}}
{{ :payonline.bmp|}}
- Right click on the image and select Format Graphic. - Go to the Hyperlink tab. - The Hyperlink Type that we need to use is **A Website on the Internet**. - 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, "")
- 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