If you’re using Sage 200 Professional Spring 2018 and above, follow the Sage 200 - Adding a PayNow button to a custom layout.
In Sage 200 Professional 2016, you can use the Pay Now button on invoices, statements and chase letters sent as PDF emails through Opayo.
When your customer views the PDF document, they can click the Pay Now button to make a payment straight away through Opayo.
The Pay Now button is an embedded image with the following settings in Properties > Drill Down:
The Pay Now buttons use conditional formatting to ensure they only appear on layouts when appropriate. The button doesn't appear on a layout if:
These are steps that explain how to add a Pay Now button and Opayo information to your statement or invoice.
This article assumes that you’ve located the report or layout that you want to amend and opened it in Sage Report Designer. Read more >
Two image files are available. Right-click the one you want, then save it to a suitable location.
Image one 
Image two 

| Place holder name | Choose fields or add text | Expression |
| PaymentVendorName | SysCompanies > PaymentVendorName | SYSCompanies.PaymentVendorName |
| customerRef | SLCustomerAccounts > CustomerAccountNumber | SLCustomerAccounts.CustomerAccountNumber |
| address1 | SOPInvCredAddresses > AddressLine1 | SOPInvCredAddresses.AddressLine1 |
| address2 | SOPInvCredAddresses > AddressLine2 | SOPInvCredAddresses.AddressLine2 |
| address3 | SOPInvCredAddresses > City | SOPInvCredAddresses.City |
| address4 | SOPInvCredAddresses > County | SOPInvCredAddresses.County |
| address5 | SOPInvCredAddresses > Postcode | SOPInvCredAddresses.Postcode |
| country | SOPInvCredAddresses > Country | SOPInvCredAddresses.Country |
| InvoiceNumber | SOPInvoiceCredits > DocumentN | SOPInvoiceCredits.DocumentNo |
| amount | SOPInvoiceCredits > InvoicedGrossValue | SOPInvoiceCredits.InvoicedGrossValue |
| date | SOPInvoiceCredits > DocumentDate | SOPInvoiceCredits.DocumentDate |
| currency | SLCustomerAccounts > CurrencyISOCode | SLCustomerAccounts.CurrencyISOCode |
| format | Replace with the following text: "invoice" | "invoice" |
| tenantID | SYSCompanies > TenantID | SYSCompanies.TenantID |
| companyID | SYSCompanies > CompanyNumber | SYSCompanies.CompanyNumbe |
| CreateSagePayButton(SYSCompanies.PaymentVendorName, SLCustomerAccounts.CustomerAccountNumber, SOPInvoiceCredits.DocumentNo, SOPInvoiceCredits.InvoicedGrossValue, SOPInvoiceCredits.DocumentDate, SLCustomerAccounts.CurrencyISOCode, "invoice", SYSCompanies.TenantID, SYSCompanies.CompanyNumber) |
|---|
With Address:
| CreateSagePayButtonWithAddress(SYSCompanies.PaymentVendorName, SLCustomerAccounts.CustomerAccountNumber, SOPInvCredAddresses.AddressLine1, SOPInvCredAddresses.AddressLine2, SOPInvCredAddresses.City, SOPInvCredAddresses.County, SOPInvCredAddresses.Postcode, SOPInvCredAddresses.Country, SOPInvoiceCredits.DocumentNo, SOPInvoiceCredits.InvoicedGrossValue, SOPInvoiceCredits.DocumentDate, SLCustomerAccounts.CurrencyISOCode, "invoice", SYSCompanies.TenantID, SYSCompanies.CompanyNumber) |
|---|
If you’re viewing this article from the Sage website, a list of Sage 200 Report Designer articles are available now.