Courtesy Notifications
After a payment or authorisation transaction is processed by the PSP, Unaric Payments automatically attempts to record the outcome in Salesforce. In cases where this update fails, a payment may have been processed successfully, but Salesforce remains unaware of the transaction's final status.
To address this potential data inconsistency, Unaric Payments sends a courtesy notification email. This email informs designated recipients that there was an issue updating data in Salesforce.
How it works
- System-generated: These notifications are automatically generated by the Unaric Payments system.
- Sender address: Emails are sent from [email protected].
- Recipient configuration: You can configure a single email address or a list of addresses to receive these notifications. Provide the desired email address(es) to your Customer Success Manager. We recommend using a distribution list to ensure notifications are seen and actioned promptly.
- Action required: Courtesy notifications indicate that manual intervention is needed to update Salesforce records.
Reasons for update failures
Payment record updates to Salesforce can fail for various reasons. The courtesy notification typically includes details about the failure. Common causes include:
- Salesforce Customisations: Faulty flows, triggers, or other customisations within your Salesforce org might prevent payment and authorisation records from being updated.
- Unaric Payments Integration Configuration: Issues with the configuration of your Unaric Payments integration can also lead to update failures.
- Salesforce Errors: Temporary Salesforce issues or errors.
- Authentication Issues: Invalid credentials or locked out user accounts as indicated by errors like "Invalid username, password, security token; or user locked out."
Example courtesy notification email
From: [email protected]
Subject: Courtesy notification from Unaric Payments: Salesforce failed to accept data from Asperato
Body:
Unaric Payments attempted to post data to your Salesforce org. Unfortunately, Salesforce was unable to accept the data.
The reason text given by Salesforce was:
A LoginFault error has occurred - Invalid username, password, security token; or user locked out.
Raw JSON request: null
Transaction Details:
If you need help interpreting the Salesforce reason text, consult with your Salesforce consultant.
To identify this transaction with your Payment Services Provider, use the Order ID or the Payment Cross Reference. Once identified, you will need to manually update Salesforce accordingly.
If you have any questions regarding this email, please contact [email protected].
Donation ID: *** Order ID: ** Cross Reference: ** Transaction Type: Payment Repeat Reference: * Repeat Cross Reference: ** Card Type: Not applicable Repeat Transaction Reference: ** Account Number: Frequency: ANN Amount: 100.00
Manual Salesforce record updates
When you receive a courtesy notification, manual Salesforce record updates are necessary. These updates must be performed by your team or System Integrator (SI).
Failure to perform manual updates based on the information in courtesy notifications can lead to:
- Data inconsistencies between Unaric Payments and Salesforce.
- Issues with processing refunds.
- Other problems related to affected payments.
Unaric Payments courtesy notifications contain all the necessary values to manually update Salesforce records. You simply need to populate these values into the correct fields for each payment record.
Field mapping for manual updates
The following table outlines the mapping between parameters in the courtesy notification and the corresponding Salesforce fields on the Unaric Payment record (asp04__Payment__c object).
Field mappings are based on customers using Unaric Payments and GoCardless as their PSP. Field names may vary based on your specific PSP and Unaric Payments configuration.
Parameter | Salesforce Field Mapping for the Payment Record |
|---|---|
asp04__Email__c | |
AsperatoRepeatReference | asp04__Asperato_Repeat_Token__c |
PaymentDate | asp04__Payment_Date__c |
FirstName | asp04__First_Name__c |
Amount | asp04__Amount__c |
SalesforceId (Repeat Ref) | Salesforce ID of the Payment record |
DonationId | Salesforce ID of the Authorisation record |
TransactionGroup | asp04__Transaction_Group__c |
AddressCountry | asp04__Billing_Address_Country__c |
AsperatoReference (Order ID) | asp04__Asperato_Reference__c |
AddressPostalCode | asp04__Billing_Address_PostalCode__c |
Source | asp04__Source__c |
Success | If True and Payment Route = Card, set asp04__Payment_Stage__c to "Collected from customer". If False, set asp04__Payment_Stage__c to "Failed" |
CurrencyCode | CurrencyIsoCode |
PaymentRoute | asp04__Payment_Route_Selected__c |
GiftCard | asp04__Is_Gift_Card__c |
PSPReference (Cross Ref) | asp04__PSP_Reference__c |
AddressCity | asp04__Billing_Address_City__c |
AddressStreet | asp04__Billing_Address_Street__c |
CardType | asp04__Card_Type__c |
StatusDescription (MessageText) | asp04__Payment_Stage_Description__c |
LastName | asp04__Last_Name__c |
AccountReference | asp04__Account_Reference__c |
AddressState | asp04__Billing_Address_State__c |
AccountName | asp04__Account_Name__c |
Manage Courtesy notification email addresses
Do not add email addresses that trigger automatic replies (such as shared support inboxes or ticketing systems). Auto-responses may generate repeated notification emails and interfere with notification delivery.
Add email address
You can update the email addresses that receive courtesy notifications directly within Unaric Payments setup.
- Go to the Unaric Payments Setup tab in Salesforce.
- Scroll down to the Error Notification section.
- Review the Existing Email Addresses list, which displays current recipients.
- Click New Email Address.
- Enter the desired email address in the provided field. Remember that courtesy notification emails should be sent to individual inboxes or distribution lists that do not have automatic replies enabled.
- Click Add Email to save the new address.
Remove email address
To remove an email address:
- Navigate to the Unaric Payments Setup tab.
- Navigate to Email Notification section.
- Click on the Delete link.
- You will get a confirmation message. Click on the Delete Email button. This will remove the email address to receive the error and courtesy notification emails from Unaric Payments installed in your Salesforce Org.