Skip to content

Commit

Permalink
Apply cosmetic changes to variable names and scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
Timur Karimov committed Oct 28, 2022
1 parent 53e37c9 commit 6304292
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions client/checkout/blocks/fields.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ const WCPayFields = ( {
shouldSavePayment,
} ) => {
const [ errorMessage, setErrorMessage ] = useState( null );
const testMode = getConfig( 'testMode' );
const testCopy = (
const isTestMode = getConfig( 'testMode' );
const testingInstructions = (
<p>
<strong>Test mode:</strong> use the test VISA card 4242424242424242
with any expiry date and CVC, or any test card numbers listed{ ' ' }
Expand Down Expand Up @@ -99,7 +99,7 @@ const WCPayFields = ( {

return (
<>
{ testMode ? testCopy : '' }
{ isTestMode ? testingInstructions : '' }
<div className="wc-block-gateway-container wc-inline-card-element">
<CardElement
options={ elementOptions }
Expand Down
1 change: 0 additions & 1 deletion includes/class-wc-payment-gateway-wcpay.php
Original file line number Diff line number Diff line change
Expand Up @@ -1334,7 +1334,6 @@ public function process_payment_for_order( $cart, $payment_information, $additio
$intent_meta_order_id = is_numeric( $intent_meta_order_id_raw ) ? intval( $intent_meta_order_id_raw ) : 0;

if ( $intent_meta_order_id !== $order_id ) {

throw new Intent_Authentication_Exception(
__( "We're not able to process this payment. Please try again later.", 'woocommerce-payments' ),
'order_id_mismatch'
Expand Down
2 changes: 1 addition & 1 deletion includes/class-wc-payments-blocks-payment-method.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class WC_Payments_Blocks_Payment_Method extends AbstractPaymentMethodType {
*
* @var WC_Payment_Gateway_WCPay
*/
protected $gateway;
private $gateway;

/**
* Initializes the class.
Expand Down

0 comments on commit 6304292

Please sign in to comment.