rename plugin and slug to PayPal Payments for WooCommerce

This commit is contained in:
David Remer 2020-09-11 10:20:12 +03:00
parent 806c211e35
commit 5e011b4f95
54 changed files with 470 additions and 470 deletions

View file

@ -141,13 +141,13 @@ class OrderProcessor {
if ( ! $order || ! $this->order_is_approved( $order ) ) {
$error_message = __(
'The payment has not been approved yet.',
'paypal-for-woocommerce'
'paypal-payments-for-woocommerce'
);
}
if ( $error_message ) {
$this->last_error = sprintf(
// translators: %s is the message of the error.
__( 'Payment error: %s', 'paypal-for-woocommerce' ),
__( 'Payment error: %s', 'paypal-payments-for-woocommerce' ),
$error_message
);
return false;
@ -165,18 +165,18 @@ class OrderProcessor {
$wc_order->update_status(
'on-hold',
__( 'Awaiting payment.', 'paypal-for-woocommerce' )
__( 'Awaiting payment.', 'paypal-payments-for-woocommerce' )
);
if ( $order->status()->is( OrderStatus::COMPLETED ) && $order->intent() === 'CAPTURE' ) {
$wc_order->update_status(
'processing',
__( 'Payment received.', 'paypal-for-woocommerce' )
__( 'Payment received.', 'paypal-payments-for-woocommerce' )
);
}
if ( $this->capture_authorized_downloads( $order ) && $this->authorized_payments_processor->process( $wc_order ) ) {
$wc_order->add_order_note(
__( 'Payment successfully captured.', 'paypal-for-woocommerce' )
__( 'Payment successfully captured.', 'paypal-payments-for-woocommerce' )
);
$wc_order->update_meta_data( PayPalGateway::CAPTURED_META_KEY, 'true' );
$wc_order->update_status( 'processing' );