We are implementing a deployment freeze on the following dates: Nov 20th - Dec 2nd and Dec 18th - Jan 4th

Prepare a subscription

Prev Next

Mary Evans, Cloud Kicks' accountant, is preparing a subscription for direct debit.


As described in the previous article, Stripe recurring: Generate a direct debit link, you first need to send a direct debit link to the account so that the bank details used for the direct debit are retrieved automatically in Salesforce.

  1. On the account, click the Generate direct debit link button. The link is stored in the Direct Debit Link field (sofactoapp__DirectDebitLink__c).

  2. Send this link to your customer using the Frisbii email template.

  3. This direct debit link asks your customer for the bank details to be used for debiting their invoices.

  4. Once the customer has completed the form, a PSP Payment Method record is created automatically. Linda, the Salesforce administrator, adds the PSP Payment Method related list to the account page layout. Mary can then see all PSP payment methods associated with this account.

The PSP Payment Method is a new Frisbii object that stores your customer's bank details.

This is the information stored for a recurring credit card:

As you can see, credit card numbers are encrypted and the CVV is not accessible.

This is the information stored for a SEPA direct debit:

None of the PSP Payment Method fields can be edited.
Only the Status: Active / Inactive field can be edited.

Use case: My customer is changing banks starting next month. I send them a new direct debit link (by clicking Generate direct debit link). The account then has two PSP Payment Method records.
The following month, I can set the first PSP payment method to Inactive and the second one, which will be used for the direct debit, to Active.

You can now create a subscription that uses this payment method.


Create the subscription using this payment method

Linda first configures the page layouts:
No new fields need to be added to the subscription page.
However, the following fields must be added to the Invoice and Payment page layouts:

  • The Payment Date field (sofactoapp__PaymentDate__c), which stores the calculated debit date on the invoice.

  • The PSP Payment Method field.

  • The Payment Status field (sofactoapp__PaymentStatus__c), which shows the status of the payment.

Let's go through the steps Mary follows to prepare her subscription for direct debit:

  1. Create a subscription: it can be created from scratch (the example used in this article), generated from a Closed Won opportunity, or created from an opportunity with a quote in the Won stage:

  2. Add a subscription item:

  3. Enter the payment terms and, above all, the payment method. For subscriptions to be debited, select Stripe Recurring. The PSP Payment Method and Debit Day fields appear dynamically. These fields are mandatory to link the payment information to the direct debit of the subscription's invoices.

    • PSP payment method of the account: used to debit the customer's invoices. In other words, these are the bank details used to debit their invoices. Note that this drop-down list only shows PSP payment methods with the status Active, and only those of the account linked to this subscription.

    • Debit day: for example, direct debits take place on the 5th of each month. Values range from 1 to 31. For months that do not have 31 days, the direct debit automatically moves to the following month. Example: direct debit on March 1 instead of February 31.

  4. Activate the subscription and generate the schedule.

Result: on the generated invoices, I see:

  • The payment method Stripe Recurring

  • The PSP payment method

  • The payment date: the date has been calculated automatically on all invoices of my schedule, based on the invoice date.

Example: on the M+2 invoice, the payment date is the 5th of month M+2.

  • The invoices automatically have an associated payment record with the payment method Stripe Recurring.

  • This payment record automatically created a cash flow record with Stripe Recurring.

Note

Since Winter '25, recurring payment is compatible with a payment schedule. Installment payments are debited on the date of their milestone.

  1. You generate a payment schedule from the invoice.

  2. The Payment Date field (sofactoapp__PaymentDate__c) on Invoice and Payment is cleared.

  3. The direct debit takes place on the Payment/Milestone date