Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 38 Next »

Congratulations on installing PosiPay! After your initial installation, you are now able to configure the features to make them accessible.

Note: Do this after installing the latest package.

Grant Access to PosiPay

To have access to the PosiPay features, assign PosiPay’s Permission Set to a User with a System Administrator profile.

  • Go to Setup > Home page > Click Users under the Users section > Choose the user with the System Administrator profile

  • After clicking the User, click the Permission Set Assignment > Edit Assignments

image-20240312-073710.png
  • Choose PosiPay and click Add to Enabled Permissions Sets then click Save. The System Administrator now has access to all of the PosiPay objects and fields.

    11.03.2024_15.26.50_REC.png

Enable Guest Access

For Stripe to be able to engage with PosiPay, we need to create the right environment that allows Stripe to speak to certain objects within PosiPay.

Enable Communities

Enable the Experience Cloud communities.
Setup > Digital Experiences > Settings > tick Enable Digital Experiences > click Save

image-20240115-025736.png

Create Community Site

  • Go to Setup > All Sites > Click New

image-20240312-025438.png
  • Choose a template, for our Site, we choose Build Your Own (Aura).

  • Fill in the necessary information then click Create.

For example:

  • After doing so, click Builder.

  • Display the Stripe Form component.

  • Fill out the following fields below:

    • Required Fields

      • Gateway Account = Gateway ID

      • Payment Method = Credit Card; Direct Debit

      • Require CVC = TRUE

image-20240320-231617.png
  • Click the Publish button in the upper right corner and it will show a confirmation message and click Publish.

After creating the Community Sites do the following configuration:

  1. Go to Setup > Home page

  2. In the Quick Find box search All Sites and click Builder

image-20240312-075651.png

  1. The Community page should be accessible by Guest User

image-20240312-075811.png

Webhook Guest User Profile Config

Enable Webhook Listener

In the next step, we will set up the webhooks from Stripe’s end, but first, you need to make sure you are configured to be able to listen to them correctly.

Create a new site for the Webhook List

  • In All Sites, click Builder next to the site you want to access.

  • Click Settings and select General.

  • Under Guest User Profile, click the profile name.

  • Click Apex Class.

image-20240312-012640.png
  • Click Edit.

image-20240312-025018.png
  • Enabled these Apex Classes

    • PosiPay.CommonFunction

    • PosiPay.StripeFormComponentController

    • PosiPay.WebhookListener

image-20240312-024940.png

Webhook Object Access

Go to Setup > Click All Sites

  • In All Sites, click Builder next to the site you want to access.

  • Click Settings and select General.

  • Under Guest User Profile, click the profile name.

  • Click Object Settings.

image-20240312-080052.png
  • Search for the Objects that you want to configure for the Guest User.

image-20240131-030833.png
  • Gateway Event
    Click Edit and tick Read and Create under the Object Permissions as well as in Fields Permissions and click Save.

    image-20240312-080253.png

    image-20240312-080327.png

  • Gateway Account

    image-20240131-031029.pngimage-20240131-031039.png
  • PosiPay Log

    image-20240131-031121.png

Set up the Smart Retries on a Stripe account

There are various reasons why payments may fail, but many of them are fixable. If you are using Stripe Billing you can use Stripe to automatically retry failed payments by configuring the settings in the Retries tab of the Revenue Recovery Dashboard.

Open your Stripe Account and then locate and click on the “Revenue Recovery” option in the navigation menu.

image-20240312-021804.png

In the Revenue recovery Dashboard navigate to the Retries tab, and in the Card payment retries select Use a Smart Retry policy for subscriptions (note that you don’t need to use subscriptions to access Smart Retries on Invoices).

Sharing Settings

Enabling the guest user to obtain access to the gateway account and gateway events records.

  1. Go to Set up

  2. In the Quick Find box search for Sharing Settings

    image-20240314-015323.png
  3. Under the Sharing Rule section, look for Gateway Account Sharing Rules and click New.

After setting up Gateway Account Sharing Rules, do the same process with Gateway Event Sharing Rules.

image-20240320-232830.png

Gateway Account and Gateway Event

Note: The same process will be set up in Gateway Account and Gateway Event.

Step 1: Rule Name

  • Label: Guest User Access

  • Rule Name: Guest_User_Access (Once the label is entered, the form should be automatically populated.)

image-20240314-061027.png

Step 2: Select your rule type

  • Rule Type: Guest user access based on criteria

image-20240314-061211.png

Step 3: Select which records to be shared

  • Field: Owner ID

  • Operator: equals

  • Value: Guest User ID

image-20240314-061254.png

Step 4: Select the users to share with

  • Share with: Select the Guest User site (where the Webhook is setup)

image-20240314-061348.png

Step 5: Select the level of access for the users

  • Access Level: Read Only

image-20240314-061509.png
  1. Click Save.

Next place to go: Step 4 - Stripe Setup

  • No labels