Skip to content

Commit

Permalink
Remove token validation
Browse files Browse the repository at this point in the history
  • Loading branch information
dimaspolohov@yandex.ru authored and dimaspolohov@yandex.ru committed Nov 16, 2023
1 parent 2ea6d6d commit 4901871
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions includes/Actions/Subscriptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,6 @@ public function add_subscription_payment_meta( array $payment_meta, WC_Subscript
*/
public function validate_subscription_payment_meta( string $payment_method_id, array $payment_meta, WC_Subscription $subscription ) {
if ( in_array( $payment_method_id, self::PAYMENT_METHODS, true ) ) {
if ( empty( $payment_meta['post_meta']['_reepay_token']['value'] ) ) {
throw new Exception( 'A "Billwerk+ Token" value is required.' );
}

$tokens = explode( ',', $payment_meta['post_meta']['_reepay_token']['value'] );
if ( count( $tokens ) > 1 ) {
Expand Down

0 comments on commit 4901871

Please sign in to comment.