Examples
Payment to Wallet
Automate the deposit of funds on a user wallet once a payment is received
Prerequisites
Prior to creating and executing this workflow, you’ll need to have the following:
- A payments connector set up and configured
- At least one payment object synced from the connector and created in the payments service
- A previously created wallet
Workflow definition
Let’s save this file as payment_to_wallet.yaml
. We can now create this workflow with the following command:
Now that we have a workflow, we can run a workflow instance with the following command:
Note that we’re passing in the payment ID, wallet ID, and deposit ID as variables. These variables are used in the workflow definition to reference the payment, wallet, and deposit objects. You’ll need to replace these values with the IDs of the payment, wallet you prepared in the prerequisites.