LLMS_Payment_Gateway::complete_transaction( LLMS_Order $order, null $deprecated = null )
This should be called by the gateway after verifying the transaction was completed successfully
Parameters Parameters
- $order
-
(LLMS_Order) (Required) Instance of an LLMS_Order object.
- $deprecated
-
(null) (Optional) Deprecated.
Default value: null
Return Return
(void)
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
public function complete_transaction( $order, $deprecated = null ) {
$this->log( $this->get_admin_title() . ' `complete_transaction()` started', $order );
$redirect = $this->get_complete_transaction_redirect_url( $order );
$this->log( $this->get_admin_title() . ' `complete_transaction()` finished', $redirect, $order );
// Ensure notification processors get dispatched since shutdown wont be called.
do_action( 'llms_dispatch_notification_processors' );
// Execute a redirect.
llms_redirect_and_exit(
$redirect,
array(
'safe' => false,
)
);
}
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
| Version | Description |
|---|---|
| 3.37.18 | Allow redirection to external domains by disabling "safe" redirects. |
| 3.34.3 | Use llms_redirect_and_exit() instead of wp_redirect() and exit(). |
| 3.30.0 | Added access plan and query string checkout redirect settings. |
| 3.0.0 | Introduced. |