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

@ -120,17 +120,17 @@ class ItemFactory {
public function from_paypal_response( \stdClass $data ): Item {
if ( ! isset( $data->name ) ) {
throw new RuntimeException(
__( 'No name for item given', 'paypal-payments-for-woocommerce' )
__( 'No name for item given', 'woocommerce-paypal-payments' )
);
}
if ( ! isset( $data->quantity ) || ! is_numeric( $data->quantity ) ) {
throw new RuntimeException(
__( 'No quantity for item given', 'paypal-payments-for-woocommerce' )
__( 'No quantity for item given', 'woocommerce-paypal-payments' )
);
}
if ( ! isset( $data->unit_amount->value ) || ! isset( $data->unit_amount->currency_code ) ) {
throw new RuntimeException(
__( 'No money values for item given', 'paypal-payments-for-woocommerce' )
__( 'No money values for item given', 'woocommerce-paypal-payments' )
);
}