How the payment link works
There are two scenarios:
With a single payment
If you generate only one payment per invoice, there is a 1:1 relationship between the invoice and the payment.
The link shown on the invoice, in the invoice PDF and in the email template is the same as the one on the payment.
With a payment schedule
If you use payment schedules, the use case is more complex. The Customer Payment URL field on the invoice is filled in as follows:
After the schedule has been generated, the invoice has several pending payments.
Initially, the payment link comes from the payment whose payment date is closest to the invoice date.
As soon as that payment is no longer pending, the system pushes the payment link of the next payment (based on its date).
If there are more than two payments, the link is updated in the same way up to the last payment.
Now let's see how you can send this payment link to your customers.
Find the new email templates
Linda goes back to her sandbox to check the email templates and, sure enough, finds a new folder: PSP.
Here are the steps she followed.
Steps
Open Setup using the gear icon at the top right.
Type template to find Classic Email Templates.
Open the PSP folder.

Five templates are available for you to use!
Add the payment link to your custom templates
Warning: To add invoice merge fields to an email template, you need to rename the Invoice object. Salesforce also has a native object with this name, and only the merge fields of that Salesforce object are available in the classic email template interface. For more information, see Rename a Frisbii object.
Important: Once renamed, you cannot change the object name back to Invoice, because a Salesforce object with the same name already exists. If you try to reset the object name, you get an error message.
Linda anticipates the team's question of whether the link can be added to a custom template. After renaming the Invoice object, she proceeds as follows:

Steps
Open Setup using the gear icon at the top right.
Type template to find Classic Email Templates.
Open the template you want to edit.
Use the merge fields available in the interface:
.png?sv=2026-02-06&spr=https&st=2026-12-02T18%3A06%3A38Z&se=2026-12-02T18%3A17%3A38Z&sr=b&sp=r&sig=FH2wMqUkENwFsSyDMvNDx70N%2BO9lPhqA6DbEv15QE5U%3D)
Select a field type: the name you chose for the Invoice object (here, Frisbii Invoice) Fields.
Select a field: Customer Payment URL.
Copy the suggested value
{!sofactoapp__Factures_Client__c.sofactoapi__clientPaymentPspURL__c}into your message body.
That's how you add the payment link to your emails.