Skip to content

Commit 9a47fa3

Browse files
committed
SP-1103 Removed unused modal code, added test:codeception composer script
1 parent 8cdd257 commit 9a47fa3

File tree

4 files changed

+3
-113
lines changed

4 files changed

+3
-113
lines changed

BitPayLib/class-bitpaypages.php

-53
This file was deleted.

BitPayLib/class-bitpaypluginsetup.php

-6
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ public function execute(): void {
6363
add_action( 'template_redirect', array( $this, 'create_bitpay_invoice' ) );
6464
add_action( 'admin_notices', array( $this, 'update_db' ) );
6565
add_action( 'admin_notices', array( $this, 'bitpay_checkout_check_token' ) );
66-
add_action( 'woocommerce_thankyou', array( $this, 'bitpay_checkout_thankyou_page' ), 10, 1 );
6766
add_action( 'woocommerce_thankyou', array( $this, 'bitpay_checkout_custom_message' ) );
6867
add_filter( 'woocommerce_payment_gateways', array( $this, 'wc_bitpay_checkout_add_to_gateways' ) );
6968
add_filter( 'woocommerce_order_button_html', array( $this, 'bitpay_checkout_replace_order_button_html' ), 10, 2 );
@@ -189,11 +188,6 @@ public function cancel_order( WP_REST_Request $request ): void {
189188
$this->bitpay_cancel_order->execute( $request );
190189
}
191190

192-
public function bitpay_checkout_thankyou_page( $order_id ): void {
193-
$page = new BitPayPages( $this->bitpay_payment_settings );
194-
$page->checkout_thank_you( (int) $order_id );
195-
}
196-
197191
public function bitpay_checkout_custom_message( $order_id ): void {
198192
$this->bitpay_payment_settings->redirect_after_purchase( $order_id );
199193
}

composer.json

+3
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@
4040
],
4141
"phpcbf": [
4242
"./vendor/bin/phpcbf BitPayLib"
43+
],
44+
"test:codeception": [
45+
"./vendor/bin/codecept run"
4346
]
4447
},
4548
"config": {

js/bitpay_thank_you.js

-54
This file was deleted.

0 commit comments

Comments
 (0)