Button Images
Pay Now button image
The default Pay Now image is available in the “Pay Now Image” field on the Payment record. You can use this image to create a clear call to action for your customers, encouraging them to complete their payments. You can display this field on your Payment page layouts or use it in other Salesforce configurations to show the “Pay Now” button to your customers.
Customize the Pay Now image
Personalize your customer's payment journey by using your own “Pay Now” image. The process to use a custom image is now simpler. You no longer need to create formula fields.
The displayed image width is fixed at 150 pixels. The height will adjust according to your uploaded image’s aspect ratio. Ensure your image renders correctly within this space.
- Go to Setup > Static Resources.
- Click New.
- In the Name field, enter PayNowImage. This name is case-sensitive and must be exactly as written. The customization will not work with any other name.
- Click Choose File and upload your desired image file.
- Set Cache Control to Public.
- Click Save.
- Go to Setup > Custom Settings.
- Click Manage next to Unaric Payments Settings.
- Click Edit (or New, if you have not configured settings before).
- Locate the Use custom pay now image setting. (The exact label may vary slightly in your Salesforce org).
- Select the checkbox to enable this setting.
- Click Save to finish. Your custom image named PayNowImage will automatically appear in the Pay Now Image field on your Payment records.
Benefits of the Simplified Process
This updated method simplifies the process of customizing your “Pay Now” image. You no longer need to create formula fields or manage image URLs manually. Personalize your customer's payment experience easily by uploading a Static Resource with the correct name and enabling a custom setting.
For Previous Formula Field Users
If you previously used a formula field, you can now remove it. It is no longer necessary to display a custom “Pay Now” image. The system now automatically handles the image display using the Static Resource and custom setting.
Plain Text URL
A plain text URL field is available for the Ecommerce/Pay Now link on both Payments and Authorisations. This URL, without HTML tags, simplifies integration into email templates.
To use this feature, add the asp04__eCommerce_link__c field to your desired email templates. This field contains the plain text URL, ready to be inserted directly into your email content.
Add Payment Method button image
To simplify the process of collecting customer payment information, Unaric Payments provides a default "Add Payment Method" button image. This pre-built image can be used immediately, eliminating the need for custom image creation.
Requesting payment method details is a frequent task. This pre-built button streamlines the customer experience, making it easier for them to provide their card details or set up a bank mandate.
How it works
A default Add Payment Method button image is included. This image (which can be replaced with your own) is displayed in the Authorisation Image field on the Authorisation record. Determine the best way to present this image to your customers to encourage them to provide their authorisation details with minimal clicks.
Customize the Add Payment Method Button
While the default image is readily available, you can use a custom image if desired. To do so:
- Navigate to Setup > Static Resources
- Upload your custom image. The recommended width is 150 pixels; the height will be determined by the uploaded image. Keep this in mind for proper image rendering.
- Go to Setup > Custom Settings and select Unaric Payments settings.
- Check Use Custom Auth Image.
- Create a custom formula field on the Unaric Payments Authorisation object. The formula should generate a hyperlink that includes your custom image. The following example provides a starting point, but you can adjust it to meet your specific needs:
In this formula:
- asp04__eCommerce_URL__c: Checks if an Ecommerce URL exists.
- HYPERLINK(...): Creates a link to the authorisation page.
- $Setup.asp04__AsperatoOneSettings__c.asp04__Server_URL__c: Retrieves the server URL from custom settings.
- asp04__Customer_ID__c, Id, asp04__Language__c, asp04__Data_Integrity_Token__c: Include necessary parameters in the URL.
- $Setup.asp04__AsperatoOneSettings__c.asp04__Use_Custom_Pay_Now_Image__c: Checks if the custom image setting is enabled.
- IMAGE(...): Displays either the custom image (if enabled) or the default image. Remember to replace YourCustomImageName with the actual name of your static resource.
- After completing these steps, your custom image will be displayed on the Unaric Payments Authorisation record in the custom field. You can toggle between the default and custom images using the custom setting.