mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-04 08:47:23 +08:00
rename plugin and slug to PayPal Payments for WooCommerce
This commit is contained in:
parent
806c211e35
commit
5e011b4f95
54 changed files with 470 additions and 470 deletions
|
@ -494,7 +494,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
>
|
||||
</div>',
|
||||
esc_attr( $id ),
|
||||
esc_html__( 'Save your card', 'paypal-for-woocommerce' )
|
||||
esc_html__( 'Save your card', 'paypal-payments-for-woocommerce' )
|
||||
) : '';
|
||||
|
||||
printf(
|
||||
|
@ -514,12 +514,12 @@ class SmartButton implements SmartButtonInterface {
|
|||
</div>
|
||||
</form><div id="payments-sdk__contingency-lightbox"></div>',
|
||||
esc_attr( $id ),
|
||||
esc_html__( 'Credit Card number', 'paypal-for-woocommerce' ),
|
||||
esc_html__( 'Expiration', 'paypal-for-woocommerce' ),
|
||||
esc_html__( 'CVV', 'paypal-for-woocommerce' ),
|
||||
esc_html__( 'Credit Card number', 'paypal-payments-for-woocommerce' ),
|
||||
esc_html__( 'Expiration', 'paypal-payments-for-woocommerce' ),
|
||||
esc_html__( 'CVV', 'paypal-payments-for-woocommerce' ),
|
||||
//phpcs:ignore
|
||||
$save_card,
|
||||
esc_html__( 'Place order', 'paypal-for-woocommerce' )
|
||||
esc_html__( 'Place order', 'paypal-payments-for-woocommerce' )
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -617,10 +617,10 @@ class SmartButton implements SmartButtonInterface {
|
|||
'labels' => array(
|
||||
'credit_card_number' => '',
|
||||
'cvv' => '',
|
||||
'mm_yyyy' => __( 'MM/YYYY', 'paypal-for-woocommerce' ),
|
||||
'mm_yyyy' => __( 'MM/YYYY', 'paypal-payments-for-woocommerce' ),
|
||||
'fields_not_valid' => __(
|
||||
'Unfortunatly, your credit card details are not valid.',
|
||||
'paypal-for-woocommerce'
|
||||
'paypal-payments-for-woocommerce'
|
||||
),
|
||||
),
|
||||
),
|
||||
|
@ -629,7 +629,7 @@ class SmartButton implements SmartButtonInterface {
|
|||
'error' => array(
|
||||
'generic' => __(
|
||||
'Something went wrong. Please try again or choose another payment source.',
|
||||
'paypal-for-woocommerce'
|
||||
'paypal-payments-for-woocommerce'
|
||||
),
|
||||
),
|
||||
),
|
||||
|
|
|
@ -94,7 +94,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-for-woocommerce' )
|
||||
__( 'No order id given', 'paypal-payments-for-woocommerce' )
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -103,7 +103,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
|
|||
throw new RuntimeException(
|
||||
sprintf(
|
||||
// translators: %s is the id of the order.
|
||||
__( 'Order %s not found.', 'paypal-for-woocommerce' ),
|
||||
__( 'Order %s not found.', 'paypal-payments-for-woocommerce' ),
|
||||
$data['order_id']
|
||||
)
|
||||
);
|
||||
|
@ -115,7 +115,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
|
|||
throw new RuntimeException(
|
||||
__(
|
||||
'Something went wrong. Please try again.',
|
||||
'paypal-for-woocommerce'
|
||||
'paypal-payments-for-woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -123,7 +123,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
|
|||
throw new RuntimeException(
|
||||
__(
|
||||
'Unfortunatly, we can\'t accept your card. Please choose a different payment method.',
|
||||
'paypal-for-woocommerce'
|
||||
'paypal-payments-for-woocommerce'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
@ -135,7 +135,7 @@ class ApproveOrderEndpoint implements EndpointInterface {
|
|||
throw new RuntimeException(
|
||||
sprintf(
|
||||
// translators: %s is the id of the order.
|
||||
__( 'Order %s is not approved yet.', 'paypal-for-woocommerce' ),
|
||||
__( 'Order %s is not approved yet.', 'paypal-payments-for-woocommerce' ),
|
||||
$data['order_id']
|
||||
)
|
||||
);
|
||||
|
|
|
@ -127,7 +127,7 @@ class ChangeCartEndpoint implements EndpointInterface {
|
|||
'name' => '',
|
||||
'message' => __(
|
||||
'Necessary fields not defined. Action aborted.',
|
||||
'paypal-for-woocommerce'
|
||||
'paypal-payments-for-woocommerce'
|
||||
),
|
||||
'code' => 0,
|
||||
'details' => array(),
|
||||
|
@ -166,7 +166,7 @@ class ChangeCartEndpoint implements EndpointInterface {
|
|||
|
||||
$message = __(
|
||||
'Something went wrong. Action aborted',
|
||||
'paypal-for-woocommerce'
|
||||
'paypal-payments-for-woocommerce'
|
||||
);
|
||||
$errors = wc_get_notices( 'error' );
|
||||
if ( count( $errors ) ) {
|
||||
|
|
|
@ -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-for-woocommerce' )
|
||||
__( 'Could not validate nonce.', 'paypal-payments-for-woocommerce' )
|
||||
);
|
||||
}
|
||||
$this->dequeue_nonce_fix();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue