Symptoms

As Provider I want to configure BA to send notifications about events related to processing of credit card payments. For example, in case of:

  • Credit card has been charged
  • An attempt to charge a credit card has failed
  • Preauthorization of a credit card has failed
  • Payment was aborted
  • Credit card preauthorization has successfully completed

Resolution

Notification for failed credit card charges can only be configured from the Order Flow in BA. The request PBA-43924 to make it possible to configure notifications from event handlers was already submitted.

Note: This instruction is applicable for the paytool type "Credit Card" and "Custom" only due to the logic of the System

  1. Create a new notification template in BA provider control panel at System > Settings > Notifications > Notification Templates, Message type  to be set to "Order Notification"

  2. Configure the notification to be sent in the Order Flow of the Payment Order:

    1. Go to System > Settings > Order Processing > All Order Flows > Select required order flow
    2. Click on the Payment Order
    3. Switch to the Order Flow Transitions tab
    4. In the 'CA -> CF/WT' transition set the created notification template in the 'Success Template Name' field

      So, when the the number of possible attempts to charge customer's credit card will be exceeded, the customer will receive the notification indicated.

    5. In the 'CC -> PP/CA' transition configure BA to send 'charge failed' notifications on each failed attempt to charge credit card - set the created notification template in the 'Fail Template Name' field.

    6. Review the rest existing transitions and choose those you would like to notify your customers about.

Internal content

Link on internal Article