Skip to content

Commit ec07af0

Browse files
committed
[filters] Independent checkout page purchase completed filter.
1 parent 418adcd commit ec07af0

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

start.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
*
1616
* @var string
1717
*/
18-
$this_sdk_version = '2.11.0.1';
18+
$this_sdk_version = '2.11.0.2';
1919

2020
#region SDK Selection Logic --------------------------------------------------------------------
2121

templates/checkout/process-redirect.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151

5252
$loader.show();
5353

54+
// This remains compatible with the same filter in /templates/checkout/frame.php.
55+
(<?php echo $fs->apply_filters('checkout/purchaseCompleted', 'function (data) {
56+
console.log("checkout", "purchaseCompleted");
57+
}'); ?>)(data);
58+
5459
switch ( action ) {
5560
case 'install':
5661
processInstall( data );

0 commit comments

Comments
 (0)