Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SP 1103 #96

Merged
merged 1 commit into from
Jan 7, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.