Paypages
Post-Payment Redirection URLs
control where customers are redirected after using your paypages how it works unaric payments supports redirection based on three distinct outcomes success payment completed successfully failure payment was unsuccessful cancellation the customer exited the payment page without completing or attempting payment this can be managed at both the organization level, using custom settings, and the individual record level, with dedicated fields for each outcome to determine which url to use, unaric payments follows a specific order of operations record level if an endpoint field on the specific record is populated, the system uses that url (overriding the default) org default if the record field is blank, the system pulls the url from custom settings fallback if neither is populated, the user journey continues without a specific redirect (standard behaviour) limitations redirection to these endpoints only occurs when processing payments via the ecommerce url payments processed directly within the unaric payments application will not trigger these redirections redirection to endpoints will not take effect when the paypage is iframed postmessages should be used with iframes by default, customers will see a brief unaric payments confirmation screen before redirecting if you wish to bypass this and immediately visit your url, contact our support team at https //payment support\@unaric com setup enable record level overrides if you want to manually change urls on specific records in salesforce, navigate to setup > object manager locate and select either the payment or authorisation object in the left hand navigation menu, click page layouts select the page layout you want to modify drag one of these fields from the palette onto the desired section of the layout field name api name description success endpoint asp04 success endpoint long c redirect after successful completion fail endpoint asp04 fail endpoint long c redirect after a failed attempt cancel endpoint asp04 cancel endpoint long c redirect if the user exits the page click save to apply the changes repeat these steps for the other object (either payment or authorisation) once the fields are on the page layouts, users can edit them on individual records to override the organization level settings set o rg level defaults to use org level defaults for the endpoint fields go to setup > custom code > custom settings select settings enter the desired url values in the following settings authorisation cancel authorisation fail authorisation success payment cancel payment fail payment success when you create payment or authorisation records, the corresponding endpoint fields will automatically populate with the values from the custom settings