This repository contains example code to integrate the FinDock payment API with Salesforce Communities, in support of 2 blogs on the FinDock website. They are free to use and extend as-is. FinDock does not provide support on LWC, Apex or Flow development, but can help you with questions on the FinDock API.
The example code was intentionally left very basic (e.g. little proper error handling, no test code) to keep it easy to understand. Please make sure to implement proper coding standards yourself!
For more information on the API, please visit:
This repository contains code for 3 examples:
- A LWC component
communitypayments
with Apex ControllerFinDockCommunityController.cls
that can be added to a Salesforce Community page. - A Flow action Apex class
FinDockCommunityAction.cls
you can integrate in a Flow, by passing a JSON object as String from the Flow to anInvocableMethod
in the Apex class. You can then embed this Flow in a Lightning Component (Aura)aura/FinDockCommunityPaymentActionFlow
and add that to a Salesforce Community page. Example Flow that you can deploy to your org:flows/FinDock_Community_Payment.flow-meta.xml
- A Flow action Apex class
FinDockCommunityActionInvocables.cls
that can be integrated in a Flow by just setting the@InvocableVariables
to pass to the API. You can then embed this Flow in a Lightning Component (Aura)aura/FinDockCommunityPaymentActionInvocablesFlow
and add that to a Salesforce Community page. Example Flow that you can deploy to your org:flows/FinDock_Community_Payment_Invocables.flow-meta.xml
These examples are described in two blogs:
- Collect Payments in Salesforce Experience Cloud (Part 1) describes example 1.
- Collect Payments in Salesforce Experience Cloud (Part 2) describes examples 2 and 3.
Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.
Do you want to deploy a set of changes, or create a self-contained application? Choose a development model.
The sfdx-project.json
file contains useful configuration information for your project. See Salesforce DX Project Configuration in the Salesforce DX Developer Guide for details about this file.
- Salesforce Extensions Documentation
- Salesforce CLI Setup Guide
- Salesforce DX Developer Guide
- Salesforce CLI Command Reference
When contributing to this repository, please first discuss the change you wish to make via an issue or any other method with FinDock before making a change.
FinDock Labs is a non-supported group in FinDock that releases applications. Despite the name, assistance for any of these applications is not provided by FinDock Support because they are not officially supported features. For a list of these apps, visit the FinDock Labs account on Github.
This project is licensed under the MIT License - see the LICENSE file for details