Skip to content

Commit

Permalink
Merge pull request #96 from SUMO-Kwiatkowski/SP-1103
Browse files Browse the repository at this point in the history
SP 1103- Remove Modal
  • Loading branch information
p-maguire authored Jan 7, 2025
2 parents 974b5e9 + 9a47fa3 commit caf8cb7
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 113 deletions.
53 changes: 0 additions & 53 deletions BitPayLib/class-bitpaypages.php

This file was deleted.

6 changes: 0 additions & 6 deletions BitPayLib/class-bitpaypluginsetup.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ public function execute(): void {
add_action( 'template_redirect', array( $this, 'create_bitpay_invoice' ) );
add_action( 'admin_notices', array( $this, 'update_db' ) );
add_action( 'admin_notices', array( $this, 'bitpay_checkout_check_token' ) );
add_action( 'woocommerce_thankyou', array( $this, 'bitpay_checkout_thankyou_page' ), 10, 1 );
add_action( 'woocommerce_thankyou', array( $this, 'bitpay_checkout_custom_message' ) );
add_filter( 'woocommerce_payment_gateways', array( $this, 'wc_bitpay_checkout_add_to_gateways' ) );
add_filter( 'woocommerce_order_button_html', array( $this, 'bitpay_checkout_replace_order_button_html' ), 10, 2 );
Expand Down Expand Up @@ -189,11 +188,6 @@ public function cancel_order( WP_REST_Request $request ): void {
$this->bitpay_cancel_order->execute( $request );
}

public function bitpay_checkout_thankyou_page( $order_id ): void {
$page = new BitPayPages( $this->bitpay_payment_settings );
$page->checkout_thank_you( (int) $order_id );
}

public function bitpay_checkout_custom_message( $order_id ): void {
$this->bitpay_payment_settings->redirect_after_purchase( $order_id );
}
Expand Down
3 changes: 3 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@
],
"phpcbf": [
"./vendor/bin/phpcbf BitPayLib"
],
"test:codeception": [
"./vendor/bin/codecept run"
]
},
"config": {
Expand Down
54 changes: 0 additions & 54 deletions js/bitpay_thank_you.js

This file was deleted.

0 comments on commit caf8cb7

Please sign in to comment.