Actions
Feature proposal #9147
closedImplement trigger for payment complete page
Description
Currently there's no way to output custom rendering or redirects to the payment complete page. Integration triggers would interrupt processes for example if a redirect was made.
Updated by krileon almost 2 years ago
- Status changed from Assigned to Resolved
- % Done changed from 0 to 100
Implemented in MR !303
The following trigger is the proposed implementation.
$_PLUGINS->trigger( 'onCPayDisplayBasketResult', [ $paymentBasket, &$newMsg ] )
This will append any trigger return values to $newMsg and allow you to modify the $newMsg (the Result) before the trigger was executed. Additionally this is a "final" step. So you could check if the basket payment_status is Completed and trigger a redirect if desired.
Actions