- 11 Oct 2022
- 1 Minute to read
- Updated on 11 Oct 2022
- 1 Minute to read
Add Mobile Pay Action to Transaction Page Layout
The Mobile Pay action can be added to the Transaction page layout to link from the Field Service Lightning (FSL) Mobile app to the Blackthorn Mobile Payments app. This is useful for FSL Mobile app users that want to accept a mobile payment.
Complete the following setup steps to enable the feature.
- In Salesforce go to Setup > Customize > Custom Objects.
- Click on the Transaction object.
- On the Transaction object, create a custom formula field.
- Give it any name you'd like, such as "Mobile Pay" and use this formula:
HYPERLINK("btmobilepmt://mobilepayments.blackthorn.io/transaction?id=" & Id & "&orgid=" & $Organization.Id & "&app=fieldService","Mobile Pay")
- Add the new field to the Charge Transaction layout.
- Click Save.
This will create a hyperlinked field in your mobile app. You can use this approach and/or the App Extension below to launch Blackthorn Mobile Payments app from the FSL Mobile app.
Create an App Extension
Create an App Extension for each mobile app device type (iOS and/or Android) that you support. On iOS, this creates the blue lightning bolt button action for a single button click from the Work Order. It's a two-step configuration once our FSL extension package is installed.
Navigate to Field Service Mobile Settings in Setup.
In the section titled "App Extension," click the Add button.
Add the required fields. They will be similar to what is displayed in the screenshot below.
Copy/paste the text below into the Launch Value field shown above.
- Click Save to add the App Extension.
Once completed, the App Extension will show up in the FSL Mobile app. Be sure to clear your cached data for the button to appear. You may also have to log out and log in.