diff --git a/changelog.txt b/changelog.txt index fc791d0dd..c98ab1e3a 100644 --- a/changelog.txt +++ b/changelog.txt @@ -159,7 +159,7 @@ * Fix - Shipping methods during callback not updated correctly #2421 * Fix - Preserve subscription renewal processing when switching Subscriptions Mode or disabling gateway #2394 * Fix - Remove shipping callback for Venmo express button #2374 -* Fix - Google Pay: Fix issuse with data.paymentSource being undefined #2390 +* Fix - Google Pay: Fix issue with data.paymentSource being undefined #2390 * Fix - Loading of non-Order as a WC_Order causes warnings and potential data corruption #2343 * Fix - Apple Pay and Google Pay buttons don't appear in PayPal Button stack on multi-step Checkout #2372 * Fix - Apple Pay: Fix when shipping is disabled #2391 diff --git a/modules/ppcp-button/src/Helper/ThreeDSecure.php b/modules/ppcp-button/src/Helper/ThreeDSecure.php index 1991112b5..e853d7ad9 100644 --- a/modules/ppcp-button/src/Helper/ThreeDSecure.php +++ b/modules/ppcp-button/src/Helper/ThreeDSecure.php @@ -20,7 +20,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Factory\CardAuthenticationResultFactory class ThreeDSecure { const NO_DECISION = 0; - const PROCCEED = 1; + const PROCEED = 1; const REJECT = 2; const RETRY = 3; @@ -84,7 +84,7 @@ class ThreeDSecure { $this->logger->info( '3DS Authentication Result: ' . wc_print_r( $result->to_array(), true ) ); if ( $result->liability_shift() === AuthResult::LIABILITY_SHIFT_POSSIBLE ) { - return $this->return_decision( self::PROCCEED, $order ); + return $this->return_decision( self::PROCEED, $order ); } if ( $result->liability_shift() === AuthResult::LIABILITY_SHIFT_UNKNOWN ) { @@ -124,19 +124,19 @@ class ThreeDSecure { $result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_BYPASS && ! $result->authentication_result() ) { - return self::PROCCEED; + return self::PROCEED; } if ( $result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_UNAVAILABLE && ! $result->authentication_result() ) { - return self::PROCCEED; + return self::PROCEED; } if ( $result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_NO && ! $result->authentication_result() ) { - return self::PROCCEED; + return self::PROCEED; } if ( $result->authentication_result() === AuthResult::AUTHENTICATION_RESULT_REJECTED ) { diff --git a/modules/ppcp-paypal-subscriptions/resources/js/paypal-subscription.js b/modules/ppcp-paypal-subscriptions/resources/js/paypal-subscription.js index 01f242053..f2015194e 100644 --- a/modules/ppcp-paypal-subscriptions/resources/js/paypal-subscription.js +++ b/modules/ppcp-paypal-subscriptions/resources/js/paypal-subscription.js @@ -83,7 +83,7 @@ document.addEventListener( 'DOMContentLoaded', () => { if (! price || parseInt( price ) <= 0 ) { linkBtn.setAttribute('title', __( 'Prices must be above zero for PayPal Subscriptions!', 'woocommerce-paypal-subscriptions' ) ); } else { - linkBtn.setAttribute('title', __( 'Not allowed period intervall combination for PayPal Subscriptions!', 'woocommerce-paypal-subscriptions' ) ); + linkBtn.setAttribute('title', __( 'Not allowed period interval combination for PayPal Subscriptions!', 'woocommerce-paypal-subscriptions' ) ); } } else { diff --git a/modules/ppcp-settings/resources/js/data/features/action-types.js b/modules/ppcp-settings/resources/js/data/features/action-types.js index dc21c5110..91050d97f 100644 --- a/modules/ppcp-settings/resources/js/data/features/action-types.js +++ b/modules/ppcp-settings/resources/js/data/features/action-types.js @@ -8,7 +8,7 @@ export default { // Transient data SET_TRANSIENT: 'ppcp/features/SET_TRANSIENT', - // Persistant data + // Persistent data SET_FEATURES: 'ppcp/features/SET_FEATURES', HYDRATE: 'ppcp/features/HYDRATE', }; diff --git a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php index 4bc4dad1c..439e27029 100644 --- a/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php +++ b/modules/ppcp-wc-gateway/src/Gateway/PayPalGateway.php @@ -57,7 +57,7 @@ class PayPalGateway extends \WC_Payment_Gateway { const FRAUD_RESULT_META_KEY = '_ppcp_paypal_fraud_result'; /** - * List of payment sources wich we are expected to store the payer email in the WC Order metadata. + * List of payment sources for which we are expected to store the payer email in the WC Order metadata. */ const PAYMENT_SOURCES_WITH_PAYER_EMAIL = array( 'paypal', 'paylater', 'venmo' ); diff --git a/modules/ppcp-wc-gateway/src/Helper/CardPaymentsConfiguration.php b/modules/ppcp-wc-gateway/src/Helper/CardPaymentsConfiguration.php index 8f1420428..0c6c9ba4f 100644 --- a/modules/ppcp-wc-gateway/src/Helper/CardPaymentsConfiguration.php +++ b/modules/ppcp-wc-gateway/src/Helper/CardPaymentsConfiguration.php @@ -376,7 +376,7 @@ class CardPaymentsConfiguration { * * Note: This setting is planned but not implemented yet. * - * @retun bool True means, the default watermark is displayed to customers. + * @return bool True means, the default watermark is displayed to customers. */ public function show_fastlane_watermark() : bool { $this->ensure_resolved_values(); diff --git a/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php b/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php index a64c0314f..53d84e035 100644 --- a/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php +++ b/modules/ppcp-wc-gateway/src/Processor/OrderProcessor.php @@ -403,7 +403,7 @@ class OrderProcessor { $this->threed_secure->proceed_with_order( $order ), array( ThreeDSecure::NO_DECISION, - ThreeDSecure::PROCCEED, + ThreeDSecure::PROCEED, ), true ); diff --git a/modules/ppcp-webhooks/src/Handler/PaymentCaptureRefunded.php b/modules/ppcp-webhooks/src/Handler/PaymentCaptureRefunded.php index eab1defc0..e304b6bb1 100644 --- a/modules/ppcp-webhooks/src/Handler/PaymentCaptureRefunded.php +++ b/modules/ppcp-webhooks/src/Handler/PaymentCaptureRefunded.php @@ -1,6 +1,6 @@ [ - ThreeDSecure::PROCCEED, + ThreeDSecure::PROCEED, CardAuthenticationResult::LIABILITY_SHIFT_POSSIBLE, CardAuthenticationResult::AUTHENTICATION_RESULT_YES, CardAuthenticationResult::ENROLLMENT_STATUS_YES, @@ -75,7 +75,7 @@ class ThreeDSecureTest extends TestCase CardAuthenticationResult::ENROLLMENT_STATUS_YES, ], 'test_4' => [ - ThreeDSecure::PROCCEED, + ThreeDSecure::PROCEED, CardAuthenticationResult::LIABILITY_SHIFT_POSSIBLE, CardAuthenticationResult::AUTHENTICATION_RESULT_ATTEMPTED, CardAuthenticationResult::ENROLLMENT_STATUS_YES, @@ -105,13 +105,13 @@ class ThreeDSecureTest extends TestCase CardAuthenticationResult::ENROLLMENT_STATUS_YES, ], 'test_9' => [ - ThreeDSecure::PROCCEED, + ThreeDSecure::PROCEED, CardAuthenticationResult::LIABILITY_SHIFT_NO, '', CardAuthenticationResult::ENROLLMENT_STATUS_NO, ], 'test_10' => [ - ThreeDSecure::PROCCEED, + ThreeDSecure::PROCEED, CardAuthenticationResult::LIABILITY_SHIFT_NO, '', CardAuthenticationResult::ENROLLMENT_STATUS_UNAVAILABLE, @@ -123,7 +123,7 @@ class ThreeDSecureTest extends TestCase CardAuthenticationResult::ENROLLMENT_STATUS_UNAVAILABLE, ], 'test_12' => [ - ThreeDSecure::PROCCEED, + ThreeDSecure::PROCEED, CardAuthenticationResult::LIABILITY_SHIFT_NO, '', CardAuthenticationResult::ENROLLMENT_STATUS_BYPASS, diff --git a/woocommerce-paypal-payments.php b/woocommerce-paypal-payments.php index 8296ab824..eea2fca01 100644 --- a/woocommerce-paypal-payments.php +++ b/woocommerce-paypal-payments.php @@ -142,7 +142,7 @@ define( 'PPCP_PAYPAL_BN_CODE', 'Woo_PPCP' ); * Add "Settings" link to Plugins screen. * * @param array $links - * @retun array + * @return array */ function( $links ) { if ( ! is_woocommerce_activated() ) { @@ -169,7 +169,7 @@ define( 'PPCP_PAYPAL_BN_CODE', 'Woo_PPCP' ); * * @param array $links * @param string $file - * @retun array + * @return array */ function( $links, $file ) { if ( plugin_basename( __FILE__ ) !== $file ) {