Rename plugin to "WooCommerce PayPal Payments"

This commit is contained in:
Jorge A. Torres 2020-10-08 20:03:07 -03:00
parent a8c36bc260
commit 02718c6c77
60 changed files with 497 additions and 497 deletions

View file

@ -88,7 +88,7 @@ return array(
'button.url' => static function ( $container ): string {
return plugins_url(
'/modules/ppcp-button/',
dirname( __FILE__, 3 ) . '/woocommerce-paypal-commerce-gateway.php'
dirname( __FILE__, 3 ) . '/woocommerce-paypal-payments.php'
);
},
'button.request-data' => static function ( $container ): RequestData {

View file

@ -518,19 +518,19 @@ class SmartButton implements SmartButtonInterface {
>
</div>',
esc_attr( $id ),
esc_html__( 'Save your card', 'paypal-payments-for-woocommerce' )
esc_html__( 'Save your card', 'woocommerce-paypal-payments' )
) : '';
$label = 'checkout' === $this->context() ? __( 'Place order', 'paypal-payments-for-woocommerce' ) : __( 'Pay for order', 'paypal-payments-for-woocommerce' );
$label = 'checkout' === $this->context() ? __( 'Place order', 'woocommerce-paypal-payments' ) : __( 'Pay for order', 'woocommerce-paypal-payments' );
printf(
'<div id="%1$s" style="display:none;">
<button class="button alt">%6$s</button>
</div><div id="payments-sdk__contingency-lightbox"></div><style id="ppcp-hide-dcc">.payment_method_ppcp-credit-card-gateway {display:none;}</style>',
esc_attr( $id ),
esc_html__( 'Credit Card number', 'paypal-payments-for-woocommerce' ),
esc_html__( 'Expiration', 'paypal-payments-for-woocommerce' ),
esc_html__( 'CVV', 'paypal-payments-for-woocommerce' ),
esc_html__( 'Credit Card number', 'woocommerce-paypal-payments' ),
esc_html__( 'Expiration', 'woocommerce-paypal-payments' ),
esc_html__( 'CVV', 'woocommerce-paypal-payments' ),
//phpcs:ignore
$save_card,
esc_html( $label )
@ -633,14 +633,14 @@ class SmartButton implements SmartButtonInterface {
'labels' => array(
'credit_card_number' => '',
'cvv' => '',
'mm_yyyy' => __( 'MM/YYYY', 'paypal-payments-for-woocommerce' ),
'mm_yyyy' => __( 'MM/YYYY', 'woocommerce-paypal-payments' ),
'fields_not_valid' => __(
'Unfortunatly, your credit card details are not valid.',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
),
'card_not_supported' => __(
'Unfortunatly, we do not support your credit card.',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
),
),
'valid_cards' => $this->dcc_applies->valid_cards(),
@ -650,7 +650,7 @@ class SmartButton implements SmartButtonInterface {
'error' => array(
'generic' => __(
'Something went wrong. Please try again or choose another payment source.',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
),
),
),

View file

@ -116,7 +116,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
$data = $this->request_data->read_request( $this->nonce() );
if ( ! isset( $data['order_id'] ) ) {
throw new RuntimeException(
__( 'No order id given', 'paypal-payments-for-woocommerce' )
__( 'No order id given', 'woocommerce-paypal-payments' )
);
}
@ -125,7 +125,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
throw new RuntimeException(
sprintf(
// translators: %s is the id of the order.
__( 'Order %s not found.', 'paypal-payments-for-woocommerce' ),
__( 'Order %s not found.', 'woocommerce-paypal-payments' ),
$data['order_id']
)
);
@ -143,7 +143,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
throw new RuntimeException(
__(
'Unfortunately, we do not accept this card.',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
),
100
);
@ -154,7 +154,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
throw new RuntimeException(
__(
'Something went wrong. Please try again.',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
)
);
}
@ -162,7 +162,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
throw new RuntimeException(
__(
'Unfortunatly, we can\'t accept your card. Please choose a different payment method.',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
)
);
}
@ -174,7 +174,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
throw new RuntimeException(
sprintf(
// translators: %s is the id of the order.
__( 'Order %s is not approved yet.', 'paypal-payments-for-woocommerce' ),
__( 'Order %s is not approved yet.', 'woocommerce-paypal-payments' ),
$data['order_id']
)
);

View file

@ -127,7 +127,7 @@ class ChangeCartEndpoint implements EndpointInterface {
'name' => '',
'message' => __(
'Necessary fields not defined. Action aborted.',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
),
'code' => 0,
'details' => array(),
@ -166,7 +166,7 @@ class ChangeCartEndpoint implements EndpointInterface {
$message = __(
'Something went wrong. Action aborted',
'paypal-payments-for-woocommerce'
'woocommerce-paypal-payments'
);
$errors = wc_get_notices( 'error' );
if ( count( $errors ) ) {

View file

@ -150,7 +150,7 @@ class CreateOrderEndpoint implements EndpointInterface {
wp_send_json_error(
array(
'name' => 'order-not-found',
'message' => __( 'Order not found', 'paypal-payments-for-woocommerce' ),
'message' => __( 'Order not found', 'woocommerce-paypal-payments' ),
'code' => 0,
'details' => array(),
)
@ -284,7 +284,7 @@ class CreateOrderEndpoint implements EndpointInterface {
$parsed_values = wp_parse_args( $form_values );
if ( ! isset( $parsed_values['terms'] ) ) {
throw new \RuntimeException(
__( 'Please read and accept the terms and conditions to proceed with your order.', 'paypal-payments-for-woocommerce' )
__( 'Please read and accept the terms and conditions to proceed with your order.', 'woocommerce-paypal-payments' )
);
}
}

View file

@ -48,7 +48,7 @@ class RequestData {
) {
remove_filter( 'nonce_user_logged_out', array( $this, 'nonce_fix' ), 100 );
throw new RuntimeException(
__( 'Could not validate nonce.', 'paypal-payments-for-woocommerce' )
__( 'Could not validate nonce.', 'woocommerce-paypal-payments' )
);
}
$this->dequeue_nonce_fix();