- 06 Oct 2023
- 2 Minutes to read
- Print
- DarkLight
PayLink: Automated PayLink with Opportunities
- Updated on 06 Oct 2023
- 2 Minutes to read
- Print
- DarkLight
Scenario
A common use case is that a salesperson will close an Opportunity and send the customer a link to the payment request.
To do this, you can build three things without using code.
- A Process Builder process to automatically create a Transaction record when the Opportunity Stage = "Closed Won".
- A Process Builder process to automatically roll-up the PayLink on to the Opportunity record.
- A Workflow Rule with an Email Alert to automatically email the PayLink to the customer.
Instructions
Step One
- Create a custom URL type field on the Opportunity object called PayLink.
- Create a lookup type field on the Opportunity object called Billing Contact that looks to the Contact object and is filtered by the Account record on the Opportunity. This is for sending a Workflow email all from one object (Opportunity).
- Alternatively, roll-up a related Opportunity Contact Role record from the Opportunity to populate this value too.
Step Two
Auto-create the Blackthorn Payments Transaction from the "Closed Won" Opportunity.
- Create a new Process Builder.
- Set The process starts when to "A record changes".
- Click + Add Object.
- Type in "Opportunity", and select "when a record is created or edited".
- Click Save.
- Click + Add Criteria.
- Enter a Criteria Name and select "Conditions are met" for Criteria for Executing Actions.
- Under Field, find the Opportunity Stage, set Operator to "Equals", and pick "Closed Won" for the Value.
- Under IMMEDIATE ACTIONS, click + Add Action.
- Action Type = "Create a Record"
- Ender an Action Name and set Record Type to "Transaction".
- Under Set Field Values, enter the following information.
Field | Type | Value |
---|---|---|
Amount | Formula | [Opportunity].Amount |
Opportunity | Field Reference | [Opportunity].Id |
Description | Formula | [Opportunity].Description |
Due Date | Formula | [Opportunity].CloseDate |
Contact | Field Reference | [Opportunity].Billing_Contact |
- Activate the Process Builder.
As an alternative to the Contact field, you can populate the Account lookup field on the Transaction object with the Opportunity Account Name field. However, if you want both lookup fields on the Transaction, the Account lookup will supersede the Account Name lookup when viewing the PayLink form.
Step Three
Auto roll-up the PayLink from Transaction to Opportunity. This will allow you to use the PayLink in the Email Alert.
- Create a new Process Builder.
- Set The process starts when to "A record changes".
- Click + Add Object, type in "Transaction", and select "only when a record is created".
- Click Save.
- Click + Add Criteria, name your criteria and select " Conditions are met".
- Under field, find Transaction Opportunity, set operator to "IS NULL", type to "Boolean" and pick "False" for the value.
This criteria tells the process to only fire when the Transaction has a related Opportunity. - Under Immediate Actions, click + Add Action.
- Action Type = Update Records, enter your Action Name and set Record Type = "Opportunity".
- No criteria-just update the records!
- Field = PayLink; Type = Formula; Value = "[bt_stripeTransactionc].bt_paylinkPayLinkc".
- Activate the Process Builder.
Step Four
Create a Workflow Rule with an Email Alert to automatically email the PayLink to the customer.
Create the Email Template.
Here is an example Email Template.
Create the Workflow Rule and Email Alert. This will email your customer when the Opportunity Stage = "Closed Won", and there is a PayLink value.
Here is an example Workflow Rule and Email Alert.
When PayLink field is not empty and the Opportunity Stage = "Closed Won" then send PayLink to customer.
Boom! Done.
Additional Use Cases
If you have any suggestions for a use case with Blackthorn Payments please contact Blackthorn Support and provide details on your use case. We always appreciate hearing the solutions our customers create and love sharing that with our other customers!