Compatibility and Requirements
- Salesforce Field Service app
PaymentsService is fully functional when used in a Lightning app or Lightning site that’s run from a compatible Salesforce mobile app on a compatible iOS or Android mobile device. See Field Service Mobile App Requirements, or the requirements page for your target mobile app for specific device and operating system requirements.
PaymentsService is not fully available when running on other devices, such as a desktop, or when running in a web browser, even on a mobile device. It requires one of the listed apps. The PaymentsService API is accessible in Lightning Experience on all devices, so your code won’t fail due to missing functions. However, when your app runs in a browser—desktop or mobile—it can use only PaymentsService constants and utility functions. Attempting any payment-related operation results in failure.