LLMS_Payment_Gateway::complete_transaction_ajax( LLMS_Order $order, array $data = array() )
This should be called by AJAX-powered gateways after verifying that a transaction was completed successfully.
Parameters Parameters
- $order
-
(LLMS_Order) (Required) The order being processed.
- $data
-
(array) (Optional) Data to add to the default success return array.
Default value: array()
Return Return
(array) An array of return data. The actual return array may include additional data from the payment gateway.
- 'redirect'
(string) The complete transaction redirect URL. - 'status'
(string) The status code, always 'SUCCESS'.
Source Source
File: includes/abstracts/abstract.llms.payment.gateway.php
public function complete_transaction_ajax( $order, $data = array() ) { $data = wp_parse_args( $data, array( 'redirect' => $this->get_complete_transaction_redirect_url( $order ), 'status' => 'SUCCESS', ) ); // Ensure notification processors get dispatched since shutdown won't be called. do_action( 'llms_dispatch_notification_processors' ); return $data; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
7.0.0 | Introduced. |