mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
Fix first batch of typos
This commit is contained in:
parent
2aa89eb88c
commit
a0a7d042b4
11 changed files with 20 additions and 20 deletions
|
@ -159,7 +159,7 @@
|
||||||
* Fix - Shipping methods during callback not updated correctly #2421
|
* Fix - Shipping methods during callback not updated correctly #2421
|
||||||
* Fix - Preserve subscription renewal processing when switching Subscriptions Mode or disabling gateway #2394
|
* Fix - Preserve subscription renewal processing when switching Subscriptions Mode or disabling gateway #2394
|
||||||
* Fix - Remove shipping callback for Venmo express button #2374
|
* 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 - 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 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
|
* Fix - Apple Pay: Fix when shipping is disabled #2391
|
||||||
|
|
|
@ -20,7 +20,7 @@ use WooCommerce\PayPalCommerce\ApiClient\Factory\CardAuthenticationResultFactory
|
||||||
class ThreeDSecure {
|
class ThreeDSecure {
|
||||||
|
|
||||||
const NO_DECISION = 0;
|
const NO_DECISION = 0;
|
||||||
const PROCCEED = 1;
|
const PROCEED = 1;
|
||||||
const REJECT = 2;
|
const REJECT = 2;
|
||||||
const RETRY = 3;
|
const RETRY = 3;
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ class ThreeDSecure {
|
||||||
$this->logger->info( '3DS Authentication Result: ' . wc_print_r( $result->to_array(), true ) );
|
$this->logger->info( '3DS Authentication Result: ' . wc_print_r( $result->to_array(), true ) );
|
||||||
|
|
||||||
if ( $result->liability_shift() === AuthResult::LIABILITY_SHIFT_POSSIBLE ) {
|
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 ) {
|
if ( $result->liability_shift() === AuthResult::LIABILITY_SHIFT_UNKNOWN ) {
|
||||||
|
@ -124,19 +124,19 @@ class ThreeDSecure {
|
||||||
$result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_BYPASS
|
$result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_BYPASS
|
||||||
&& ! $result->authentication_result()
|
&& ! $result->authentication_result()
|
||||||
) {
|
) {
|
||||||
return self::PROCCEED;
|
return self::PROCEED;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
$result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_UNAVAILABLE
|
$result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_UNAVAILABLE
|
||||||
&& ! $result->authentication_result()
|
&& ! $result->authentication_result()
|
||||||
) {
|
) {
|
||||||
return self::PROCCEED;
|
return self::PROCEED;
|
||||||
}
|
}
|
||||||
if (
|
if (
|
||||||
$result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_NO
|
$result->enrollment_status() === AuthResult::ENROLLMENT_STATUS_NO
|
||||||
&& ! $result->authentication_result()
|
&& ! $result->authentication_result()
|
||||||
) {
|
) {
|
||||||
return self::PROCCEED;
|
return self::PROCEED;
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $result->authentication_result() === AuthResult::AUTHENTICATION_RESULT_REJECTED ) {
|
if ( $result->authentication_result() === AuthResult::AUTHENTICATION_RESULT_REJECTED ) {
|
||||||
|
|
|
@ -83,7 +83,7 @@ document.addEventListener( 'DOMContentLoaded', () => {
|
||||||
if (! price || parseInt( price ) <= 0 ) {
|
if (! price || parseInt( price ) <= 0 ) {
|
||||||
linkBtn.setAttribute('title', __( 'Prices must be above zero for PayPal Subscriptions!', 'woocommerce-paypal-subscriptions' ) );
|
linkBtn.setAttribute('title', __( 'Prices must be above zero for PayPal Subscriptions!', 'woocommerce-paypal-subscriptions' ) );
|
||||||
} else {
|
} 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 {
|
} else {
|
||||||
|
|
|
@ -8,7 +8,7 @@ export default {
|
||||||
// Transient data
|
// Transient data
|
||||||
SET_TRANSIENT: 'ppcp/features/SET_TRANSIENT',
|
SET_TRANSIENT: 'ppcp/features/SET_TRANSIENT',
|
||||||
|
|
||||||
// Persistant data
|
// Persistent data
|
||||||
SET_FEATURES: 'ppcp/features/SET_FEATURES',
|
SET_FEATURES: 'ppcp/features/SET_FEATURES',
|
||||||
HYDRATE: 'ppcp/features/HYDRATE',
|
HYDRATE: 'ppcp/features/HYDRATE',
|
||||||
};
|
};
|
||||||
|
|
|
@ -57,7 +57,7 @@ class PayPalGateway extends \WC_Payment_Gateway {
|
||||||
const FRAUD_RESULT_META_KEY = '_ppcp_paypal_fraud_result';
|
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' );
|
const PAYMENT_SOURCES_WITH_PAYER_EMAIL = array( 'paypal', 'paylater', 'venmo' );
|
||||||
|
|
||||||
|
|
|
@ -376,7 +376,7 @@ class CardPaymentsConfiguration {
|
||||||
*
|
*
|
||||||
* Note: This setting is planned but not implemented yet.
|
* 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 {
|
public function show_fastlane_watermark() : bool {
|
||||||
$this->ensure_resolved_values();
|
$this->ensure_resolved_values();
|
||||||
|
|
|
@ -403,7 +403,7 @@ class OrderProcessor {
|
||||||
$this->threed_secure->proceed_with_order( $order ),
|
$this->threed_secure->proceed_with_order( $order ),
|
||||||
array(
|
array(
|
||||||
ThreeDSecure::NO_DECISION,
|
ThreeDSecure::NO_DECISION,
|
||||||
ThreeDSecure::PROCCEED,
|
ThreeDSecure::PROCEED,
|
||||||
),
|
),
|
||||||
true
|
true
|
||||||
);
|
);
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
/**
|
/**
|
||||||
* Handels the Webhook PAYMENT.CAPTURE.REFUNDED
|
* Handles the Webhook PAYMENT.CAPTURE.REFUNDED
|
||||||
*
|
*
|
||||||
* @package WooCommerce\PayPalCommerce\Webhooks\Handler
|
* @package WooCommerce\PayPalCommerce\Webhooks\Handler
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -315,7 +315,7 @@ If you encounter issues with the PayPal buttons not appearing after an update, p
|
||||||
* Fix - Shipping methods during callback not updated correctly #2421
|
* Fix - Shipping methods during callback not updated correctly #2421
|
||||||
* Fix - Preserve subscription renewal processing when switching Subscriptions Mode or disabling gateway #2394
|
* Fix - Preserve subscription renewal processing when switching Subscriptions Mode or disabling gateway #2394
|
||||||
* Fix - Remove shipping callback for Venmo express button #2374
|
* 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 - 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 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
|
* Fix - Apple Pay: Fix when shipping is disabled #2391
|
||||||
|
|
|
@ -57,7 +57,7 @@ class ThreeDSecureTest extends TestCase
|
||||||
{
|
{
|
||||||
$matrix = [
|
$matrix = [
|
||||||
'test_1' => [
|
'test_1' => [
|
||||||
ThreeDSecure::PROCCEED,
|
ThreeDSecure::PROCEED,
|
||||||
CardAuthenticationResult::LIABILITY_SHIFT_POSSIBLE,
|
CardAuthenticationResult::LIABILITY_SHIFT_POSSIBLE,
|
||||||
CardAuthenticationResult::AUTHENTICATION_RESULT_YES,
|
CardAuthenticationResult::AUTHENTICATION_RESULT_YES,
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
||||||
|
@ -75,7 +75,7 @@ class ThreeDSecureTest extends TestCase
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
||||||
],
|
],
|
||||||
'test_4' => [
|
'test_4' => [
|
||||||
ThreeDSecure::PROCCEED,
|
ThreeDSecure::PROCEED,
|
||||||
CardAuthenticationResult::LIABILITY_SHIFT_POSSIBLE,
|
CardAuthenticationResult::LIABILITY_SHIFT_POSSIBLE,
|
||||||
CardAuthenticationResult::AUTHENTICATION_RESULT_ATTEMPTED,
|
CardAuthenticationResult::AUTHENTICATION_RESULT_ATTEMPTED,
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
||||||
|
@ -105,13 +105,13 @@ class ThreeDSecureTest extends TestCase
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
CardAuthenticationResult::ENROLLMENT_STATUS_YES,
|
||||||
],
|
],
|
||||||
'test_9' => [
|
'test_9' => [
|
||||||
ThreeDSecure::PROCCEED,
|
ThreeDSecure::PROCEED,
|
||||||
CardAuthenticationResult::LIABILITY_SHIFT_NO,
|
CardAuthenticationResult::LIABILITY_SHIFT_NO,
|
||||||
'',
|
'',
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_NO,
|
CardAuthenticationResult::ENROLLMENT_STATUS_NO,
|
||||||
],
|
],
|
||||||
'test_10' => [
|
'test_10' => [
|
||||||
ThreeDSecure::PROCCEED,
|
ThreeDSecure::PROCEED,
|
||||||
CardAuthenticationResult::LIABILITY_SHIFT_NO,
|
CardAuthenticationResult::LIABILITY_SHIFT_NO,
|
||||||
'',
|
'',
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_UNAVAILABLE,
|
CardAuthenticationResult::ENROLLMENT_STATUS_UNAVAILABLE,
|
||||||
|
@ -123,7 +123,7 @@ class ThreeDSecureTest extends TestCase
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_UNAVAILABLE,
|
CardAuthenticationResult::ENROLLMENT_STATUS_UNAVAILABLE,
|
||||||
],
|
],
|
||||||
'test_12' => [
|
'test_12' => [
|
||||||
ThreeDSecure::PROCCEED,
|
ThreeDSecure::PROCEED,
|
||||||
CardAuthenticationResult::LIABILITY_SHIFT_NO,
|
CardAuthenticationResult::LIABILITY_SHIFT_NO,
|
||||||
'',
|
'',
|
||||||
CardAuthenticationResult::ENROLLMENT_STATUS_BYPASS,
|
CardAuthenticationResult::ENROLLMENT_STATUS_BYPASS,
|
||||||
|
|
|
@ -142,7 +142,7 @@ define( 'PPCP_PAYPAL_BN_CODE', 'Woo_PPCP' );
|
||||||
* Add "Settings" link to Plugins screen.
|
* Add "Settings" link to Plugins screen.
|
||||||
*
|
*
|
||||||
* @param array $links
|
* @param array $links
|
||||||
* @retun array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function( $links ) {
|
function( $links ) {
|
||||||
if ( ! is_woocommerce_activated() ) {
|
if ( ! is_woocommerce_activated() ) {
|
||||||
|
@ -169,7 +169,7 @@ define( 'PPCP_PAYPAL_BN_CODE', 'Woo_PPCP' );
|
||||||
*
|
*
|
||||||
* @param array $links
|
* @param array $links
|
||||||
* @param string $file
|
* @param string $file
|
||||||
* @retun array
|
* @return array
|
||||||
*/
|
*/
|
||||||
function( $links, $file ) {
|
function( $links, $file ) {
|
||||||
if ( plugin_basename( __FILE__ ) !== $file ) {
|
if ( plugin_basename( __FILE__ ) !== $file ) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue