Skip to content

Collecting Payment Methods in Salesforce

A screen flow is included in the iDialogue managed package for collecting payment methods directly from Salesforce records.

Examples include: receiving a donation or payment over the phone, and manually entering a credit card for processing.

The credit card flow is PCI compliant. Only credit card tokens are stored in Salesforce.

A Stripe account is required. Visit https://stripe.com/

Configure

  1. Begin by editing a page and adding a Flow component to the page layout.
  2. Select flow “Credit Card Payment Method” and pass the record Id to the currentRecordId variable.
  1. From the Stripe Developer API console, generate a Stripe Publishable Key.

This will appear if the image fails to load

  1. Paste the Publishable Key into the iDialogue Custom Setting SETTING_STRIPE_PRIVATE_KEY

This will appear if the image fails to load

Return to the record page layout where screen flow was added in step 1.

The flow is now ready for use.

This will appear if the image fails to load

Usage

The Credit Card screen flow guides users through 3 steps.

Step 1:

Select the billing contact. This can be any pre-existing Contact record in Salesforce.

This will appear if the image fails to load

Step 2:

Cardholder Address. The screen flow pre-populates Contact and Account addreses. The user may manually enter a separate address unique to the card holder (this should be the address on file for the card).

This will appear if the image fails to load

Step 3:

Card entry, expiration date, CVC, and zipcode.

This will appear if the image fails to load

Result

The final result is a Payment Method record created in Salesforce, accessible from the iDialogue Payments app and available for use in charges. This will appear if the image fails to load