Skip to content

Integrating Payment Provider

JustOn Cash Management can integrate your Salesforce org with payment service providers (PSP) in order to exchange payment information – namely, to provide your buyers the option to pay their purchases (represented as entries) via the payment page.

Administrators use Payment Provider records to configure and activate payment providers for business entities. The system then retrieves active configurations in order to interact with the PSPs.

The configuration holds both feature configurations like future payments and provider-specific data like access keys. The same PSP may be configured multiple times for a business entity, but you can create only one active payment provider setting per business entity and payment provider. Before creating a new setting for an entity/provider combination that already exists, you must deactivate the existing setting.

Configuring Payment Page Integrating Mollie Using JustOn Test Payments

Creating Payment Provider

To create a new payment provider configuration:

  1. Click to access the App Launcher, and select Setup Cash Management.
  2. Open the Payment Providers tab.
  3. Click New.
  4. Specify the configuration details as necessary.

    Field Description
    Name The name for this configuration record.
    Business Entity The business entity for which this PSP configuration is applicable.
    Type The payment service provider for which this configuration is applicable.
    If the intended type is not available, you may have to add it to the picklist beforehand.
  5. Click Save.

    This creates the new payment provider record.

    Note that the PSP configuration is not functional until you specify the provider-specific data.

Configuring Payment Provider

Payment provider data involves

  • Provider-specific public data

    PSP-specific public information like account IDs, hostnames, etc.

  • Provider-specific secret data

    PSP-specific secret information like API keys, passwords, etc.

  • Payment token storage

    Controls the option offered to users for saving their payment instrument.The available options include Disabled, Explicit Consent, Explicit Opt-out and Indirect Consent.

    For details, see Payment Automation.

  • Payment provider activation

    Enables/disables the PSP for payment users.

To modify payment provider data:

  1. Open the payment provider record you want to modify.
  2. Click Configure Payment Provider.

    1. Modify the provider-specific public information and secret information as necessary.

      For details about individual payment provider integrations, see

    2. Select the payment token storage option as necessary.

    3. Select (or deselect) the Active checkbox to enable (or disable) the payment provider.
  3. Click Save.

    This completes the screen flow, saving the specified information as required, and returns you to Payment Provider detail view.

    Once the provider-specific data is complete, the PSP configuration is fully functional and available to payment users.

Reactivating Payment Provider

The payment run deactivates a payment provider automatically if the payment provider could not be reached in too many consecutive payment runs (Communication Failures has reached the retry threshold), or immediately if the connection to the payment provider is broken – for example, because the payment provider rejects the access data. For details, see Payment Provider Deactivation.

As long as the payment provider is inactive, its payment instruments are not eligible for the payment run, and buyers cannot pay via this provider.

Note

JustOn Cash Management does not automatically send notifications when it deactivates a payment provider. If the payment page displays the line items but no Pay button and no error message, check whether the payment provider is still active. To detect a deactivation early, see Monitoring Payment Providers.

An automatic deactivation by the payment run can be recognized as follows:

  • An error report of the type payment-run/payment-provider-deactivated has been created at the time of the deactivation. Its message specifies the reason: Payment Provider deactivated due to too many communication failures or Payment Provider deactivated due to a broken connection.
  • The field history of the payment provider shows that the user who has scheduled the payment run has deselected Active at the time of the payment run.
  • If the payment run had further captures for this payment provider, their payments show the status Failed with the message Skipped: Payment Provider deactivated.

To reactivate a payment provider that the payment run has deactivated:

  1. Identify the cause of the deactivation.

    • Check the error reports. The error report of the type payment-run/payment-provider-deactivated specifies the reason and, for a broken connection, the payment or refund that has triggered the deactivation and the payment provider's response. In addition, the payment run creates one error report of the type payment-run/capture-temporary-failure or payment-run/refund-temporary-failure per failed capture or refund, which specifies the payment or refund, the payment provider, the error message and, if available, the payment provider's response.

      The error reports are available in the Error Reports tab. You may have to add it to the navigation bar first.

    • Check the Last Capture Message field of the involved payment instruments. It holds the error message returned by the payment provider, or Internal Error if the capture has failed within JustOn Cash Management or because Salesforce could not be reached during the capture. For internal errors, the corresponding error report holds the actual cause.

  2. Fix the cause.

    Typical causes include

    • for a broken connection: invalid or expired access data, like API keys, or issues with your account at the payment provider – see Configuring Payment Provider
    • for too many communication failures: a longer outage of the payment provider or network issues – check the status page of your payment provider

    If the error reports point to an error within JustOn Cash Management, contact JustOn Support.

  3. Set the payment provider's Communication Failures value to 0, regardless of the deactivation reason.

    Use, for example, a custom list view that shows the field or a data management tool.

    Selecting Active alone leaves the count in place. In this case, the next payment run in which the payment provider cannot be reached deactivates it again.

  4. Open the payment provider record, and click Configure Payment Provider.

  5. Select the Active checkbox.
  6. Click Save.

    This reactivates the payment provider, making it available to the payment run and the payment page again.

Monitoring Payment Providers

JustOn Cash Management does not automatically send notifications when the payment run deactivates a payment provider. The payment run notifications only cover permanent failures and go to your customers.

To detect failures and deactivated payment providers early, we recommend monitoring the following:

  • Payment provider status

    Set up a flow or another alert that informs your administrators when the Active checkbox of a payment provider is deselected.

  • Failure count

    Create a report on payment providers with a Communication Failures value greater than 0, as an early warning.

  • Error reports

    Regularly review recent error reports. The Details field specifies the type of the error report:

    Type Created when
    payment-run/payment-provider-deactivated The payment run has deactivated a payment provider.
    payment-run/capture-temporary-failure A capture has failed temporarily.
    payment-run/capture-permanent-failure The payment provider has rejected a capture.
    payment-run/refund-temporary-failure A refund has failed temporarily.
    payment-run/refund-permanent-failure The payment provider has rejected a refund.
    payment-run/capture-internal-error Processing a capture has failed within JustOn Cash Management, for example while settling the payment or sending the customer notification.
    payment-run/refund-internal-error Processing a refund has failed within JustOn Cash Management.
    error.salesforce/persist Saving the results of the payment run in Salesforce has failed – for example, because of a custom automation in your org. The payment run aborts.
  • Failed payments and captures

    Create reports on payments with the status Failed, and on payment instruments with the Last Capture Message value Internal Error (or with Last Capture Is Success set to false).

  • Deactivated payment instruments

    Create a report on inactive payment instruments with the Deactivation Reason value Too many failed payments. These payment instruments have failed repeatedly, for example because of insufficient funds, and your customers may need to provide a new payment method.

  • Org automation

    Monitor failed flow interviews and flow error emails for automation on the Payment, Entry, Entry Item and Balance objects. If such automation rejects the updates of the payment run, the payment run aborts without deactivating the payment provider or the payment instrument. The issue shows in an error report of the type error.salesforce/persist, and the payments of the affected chunk stay Pending until the payment provider's notification updates them.

Deleting Payment Provider

Deleting a payment provider configuration removes the relevant payment provider from the system, together with the associated payment methods, saved secrets, etc.

To delete a payment provider:

  1. Open the Payment Providers tab.
  2. Click and select Delete next to the payment provider record you want to delete.

    This removes the complete payment provider configuration.

Enabling Payment Provider Types

To enable specific payment provider types, you may have to add the required Type values manually if you have upgraded JustOn Cash Management from an older version. To do so:

  1. Click to enter Setup, then navigate to the object management settings of the Payment Provider object.
  2. Click Fields & Relationships.
  3. Click the name of the Type field.
  4. In the Values section, click New.

    Add the relevant payment provider, like Mollie, JustonTestPayments, each in a new line.

    pay_app_psp_type_values

  5. Click Save.

    This saves the specified type values as required.

    For details about modifying the values of picklist fields, see Add or Edit Picklist Values in the Salesforce Help.