Project

General

Profile

Actions

Feature proposal #9147

closed

Implement trigger for payment complete page

Added by krileon about 1 year ago. Updated 9 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
15 March 2023
Due date:
% Done:

100%

Estimated time:

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.

https://www.joomlapolis.com/forum/cb-paid-subscriptions-support/245702-paypal-purchases-on-shared-computer-problem-no-auto-logout#333209

Actions #1

Updated by krileon about 1 year 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 #2

Updated by beat 9 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF