Token Charge - Flow Invocable method

This flow is an extension to existing Token Charge component on the recurring payment. In Version 10.0 we have introduced an apex method that is invocable by flow and it can be used to do a token charge on a recurring payment.

Invocable Method Details

The invocable method is available with the name "Payments2us Token Charge". It can be added to your existing or newly created flows. On passing the appropriate parameters this invocable method will do a token charge against the provided recurring payment.

Invocable Method Parameters

Following parameters can be set for the token charge invocable method:

  1. SObject Record Id : Pass recurring payment record Id in this parameter.
  2. Token : Pass Billing token of the customer from the recurring payment record in this parameter.
  3. Customer Profile Id: Pass Customer Profile Id from the recurring payment record in this parameter.
    Any of the above are required for this invocable method to work.
  4. Amount: Pass numeric amount of the token charge in this parameter.
  5. DonationAmount: If needed pass numeric donation amount of the token charge in this parameter.
  6. Description: If needed pass description or reason of the token charge in this parameter.
  7. customField1 Name: If you want to pass more custom fields and their values, then utilize the 10 customField parameters. Provide API name of the field in the customField Name parameter.
  8. customField1 Value: If you want to pass more custom fields and their values, then utilize the 10 customField parameters. Provide value of the field in the customField Value parameter.

Following type of fields can be added in the custom field parameters: Number,Currency,Percent,Phone,Email,Text,TextArea,Picklist,Multipicklist,Boolean,Lookup relationship,Date,Datetime,

Use Invocable Method

Add this invocable method in your flow, set parameters and create token charges on recurring payments as per your business requirements.