mirror of
https://github.com/woocommerce/woocommerce-paypal-payments.git
synced 2025-09-05 08:59:14 +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
|
@ -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' );
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue