Update tranlation text domain
This commit is contained in:
@ -614,18 +614,18 @@ abstract class Base_Gateway {
|
||||
public function get_amount_update_message($to_customer = false) {
|
||||
|
||||
if ( ! $this->supports_amount_update()) {
|
||||
$message = __('The current payment integration will be cancelled.', 'wp-ultimo');
|
||||
$message = __('The current payment integration will be cancelled.', 'wp-multisite-waas');
|
||||
|
||||
if ($to_customer) {
|
||||
$message .= ' ' . __('You will receive a new invoice on the next billing cycle.', 'wp-ultimo');
|
||||
$message .= ' ' . __('You will receive a new invoice on the next billing cycle.', 'wp-multisite-waas');
|
||||
} else {
|
||||
$message .= ' ' . __('The customer will receive a new invoice on the next billing cycle.', 'wp-ultimo');
|
||||
$message .= ' ' . __('The customer will receive a new invoice on the next billing cycle.', 'wp-multisite-waas');
|
||||
}
|
||||
|
||||
return $message;
|
||||
}
|
||||
|
||||
return __('The current payment integration will be updated.', 'wp-ultimo');
|
||||
return __('The current payment integration will be updated.', 'wp-multisite-waas');
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -214,7 +214,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
if ( ! empty($s_subscription_id)) {
|
||||
$actions['change_payment_method'] = [
|
||||
'label' => __('Change Payment Method', 'wp-ultimo'),
|
||||
'label' => __('Change Payment Method', 'wp-multisite-waas'),
|
||||
'icon_classes' => 'dashicons-wu-edit wu-align-middle',
|
||||
'href' => add_query_arg(
|
||||
[
|
||||
@ -250,7 +250,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
$customer = wu_get_current_customer();
|
||||
|
||||
if ( ! is_super_admin() && (! $customer || $customer->get_id() !== $membership->get_customer_id())) {
|
||||
wp_die(__('You are not allowed to modify this membership.', 'wp-ultimo'));
|
||||
wp_die(__('You are not allowed to modify this membership.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$gateway_id = $membership->get_gateway();
|
||||
@ -315,7 +315,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
],
|
||||
],
|
||||
'business_profile' => [
|
||||
'headline' => __('Manage your membership payment methods.', 'wp-ultimo'),
|
||||
'headline' => __('Manage your membership payment methods.', 'wp-multisite-waas'),
|
||||
],
|
||||
]
|
||||
);
|
||||
@ -348,7 +348,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
$gateway_id = wu_replace_dashes($this->id);
|
||||
|
||||
return wu_get_setting("{$gateway_id}_public_title", __('Credit Card', 'wp-ultimo'));
|
||||
return wu_get_setting("{$gateway_id}_public_title", __('Credit Card', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -365,7 +365,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
"{$gateway_id}_enable_portal",
|
||||
[
|
||||
'title' => __('Use Stripe Billing Portal', 'wp-ultimo'),
|
||||
'title' => __('Use Stripe Billing Portal', 'wp-multisite-waas'),
|
||||
'desc' => 'Add a link to the Billing Portal in the site actions widget so your customer can change the payment method used in Stripe (additional charges from Stripe could be applied).',
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
@ -514,7 +514,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
* The secret key is invalid;
|
||||
*/
|
||||
$t = "{$id}_{$stripe_mode}_sk_key_status";
|
||||
wu_save_setting("{$id}_{$stripe_mode}_sk_key_status", __('Invalid API Key provided', 'wp-ultimo'));
|
||||
wu_save_setting("{$id}_{$stripe_mode}_sk_key_status", __('Invalid API Key provided', 'wp-multisite-waas'));
|
||||
}
|
||||
}
|
||||
|
||||
@ -538,7 +538,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
/**
|
||||
* The public key is invalid;
|
||||
*/
|
||||
wu_save_setting("{$id}_{$stripe_mode}_pk_key_status", __('Invalid API Key provided', 'wp-ultimo'));
|
||||
wu_save_setting("{$id}_{$stripe_mode}_pk_key_status", __('Invalid API Key provided', 'wp-multisite-waas'));
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -664,7 +664,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
$gateway_subscription_id = $membership->get_gateway_subscription_id();
|
||||
|
||||
if (empty($gateway_subscription_id)) {
|
||||
return new \WP_Error('wu_stripe_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-ultimo'));
|
||||
return new \WP_Error('wu_stripe_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$this->setup_api_keys();
|
||||
@ -748,7 +748,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
if (count($credits) > 1) {
|
||||
$credit = [
|
||||
'amount' => array_sum(wp_list_pluck($credits, 'amount')),
|
||||
'description' => __('Amount adjustment based on custom deal.', 'wp-ultimo'),
|
||||
'description' => __('Amount adjustment based on custom deal.', 'wp-multisite-waas'),
|
||||
];
|
||||
} else {
|
||||
$credit = $credits[0];
|
||||
@ -1033,7 +1033,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
$start_date = $datetime->getTimestamp() - HOUR_IN_SECONDS; // Reduce by 60 seconds to account for inaccurate server times.
|
||||
|
||||
if (empty($payment_method)) {
|
||||
throw new \Exception(__('Invalid payment method', 'wp-ultimo'));
|
||||
throw new \Exception(__('Invalid payment method', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1238,7 +1238,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
$coupon_data = [
|
||||
'id' => sprintf('%s-%s-%s', $s_amount, $currency, 'once'),
|
||||
'name' => __('Account credit and other discounts', 'wp-ultimo'),
|
||||
'name' => __('Account credit and other discounts', 'wp-multisite-waas'),
|
||||
'amount_off' => $s_amount,
|
||||
'duration' => 'once',
|
||||
'currency' => $currency,
|
||||
@ -1707,7 +1707,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
$gateway_payment_id = $payment->get_gateway_payment_id();
|
||||
|
||||
if (empty($gateway_payment_id)) {
|
||||
throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-ultimo'));
|
||||
throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -1726,7 +1726,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
$gateway_payment_id = $invoice->charge;
|
||||
} else {
|
||||
throw new Exception(__('Gateway payment ID not valid.', 'wp-ultimo'));
|
||||
throw new Exception(__('Gateway payment ID not valid.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -1859,7 +1859,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
$wp_error->add($error['code'], $this->get_localized_error_message($error['code'], $e->getMessage()));
|
||||
} else {
|
||||
$wp_error->add('unknown_error', __('An unknown error has occurred.', 'wp-ultimo'));
|
||||
$wp_error->add('unknown_error', __('An unknown error has occurred.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
return $wp_error;
|
||||
@ -1886,7 +1886,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
} else {
|
||||
|
||||
// translators: 1 is the error code and 2 the message.
|
||||
return sprintf(__('An error has occurred (code: %1$s; message: %2$s).', 'wp-ultimo'), $error_code, $error_message);
|
||||
return sprintf(__('An error has occurred (code: %1$s; message: %2$s).', 'wp-multisite-waas'), $error_code, $error_message);
|
||||
}
|
||||
}
|
||||
|
||||
@ -1928,7 +1928,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
// for extra security, retrieve from the Stripe API
|
||||
if ( ! isset($received_event->id)) {
|
||||
throw new \Exception(__('Event ID not found.', 'wp-ultimo'));
|
||||
throw new \Exception(__('Event ID not found.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
// Set the right mode for this request
|
||||
@ -2031,7 +2031,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
if ($this->get_id() !== $membership->get_gateway()) {
|
||||
|
||||
// translators: %s is the customer ID.
|
||||
throw new Ignorable_Exception(sprintf(__('Exiting Stripe webhook - This call must be handled by %s webhook', 'wp-ultimo'), $membership->get_gateway()));
|
||||
throw new Ignorable_Exception(sprintf(__('Exiting Stripe webhook - This call must be handled by %s webhook', 'wp-multisite-waas'), $membership->get_gateway()));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2309,7 +2309,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
* Throws to inform that
|
||||
* we have a duplicate payment.
|
||||
*/
|
||||
throw new Ignorable_Exception(__('Duplicate payment.', 'wp-ultimo'));
|
||||
throw new Ignorable_Exception(__('Duplicate payment.', 'wp-multisite-waas'));
|
||||
}
|
||||
}
|
||||
|
||||
@ -2326,13 +2326,13 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
$payment = wu_get_payment($payment_id);
|
||||
|
||||
if (empty($payment)) {
|
||||
throw new Ignorable_Exception(__('Payment not found on refund webhook call.', 'wp-ultimo'));
|
||||
throw new Ignorable_Exception(__('Payment not found on refund webhook call.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$is_refundable = in_array($payment->get_status(), wu_get_refundable_payment_types(), true);
|
||||
|
||||
if ( ! $is_refundable) {
|
||||
throw new Ignorable_Exception(__('Payment is not refundable.', 'wp-ultimo'));
|
||||
throw new Ignorable_Exception(__('Payment is not refundable.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2383,7 +2383,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
if ($membership->is_active()) {
|
||||
$membership->cancel();
|
||||
|
||||
$membership->add_note(__('Membership cancelled via Stripe webhook.', 'wp-ultimo'));
|
||||
$membership->add_note(__('Membership cancelled via Stripe webhook.', 'wp-multisite-waas'));
|
||||
} else {
|
||||
wu_log_add('stripe', sprintf('Membership #%d is not active - not cancelling account.', $membership->get_id()));
|
||||
}
|
||||
@ -2416,7 +2416,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
foreach ($saved_payment_methods as $saved_payment_method) {
|
||||
$options[ $saved_payment_method->id ] = sprintf(
|
||||
// translators: 1 is the card brand (e.g. VISA), and 2 is the last 4 digits.
|
||||
__('%1$s ending in %2$s', 'wp-ultimo'),
|
||||
__('%1$s ending in %2$s', 'wp-multisite-waas'),
|
||||
strtoupper((string) $saved_payment_method->card->brand),
|
||||
$saved_payment_method->card->last4
|
||||
);
|
||||
@ -2446,7 +2446,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
<fieldset id="wu-card-name-wrapper" class="wu_card_fieldset">
|
||||
<p id="wu_card_name_wrap">
|
||||
<label for="wu-update-card-name"><?php _e('Name on Card', 'wp-ultimo'); ?></label>
|
||||
<label for="wu-update-card-name"><?php _e('Name on Card', 'wp-multisite-waas'); ?></label>
|
||||
<input type="text" size="20" id="wu-update-card-name" name="wu_card_name" class="wu_card_name card-name" />
|
||||
</p>
|
||||
</fieldset>
|
||||
@ -2592,7 +2592,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
// Name and price are required.
|
||||
if (empty($args['name']) || empty($args['price'])) {
|
||||
return new \WP_Error('missing_name_price', __('Missing plan name or price.', 'wp-ultimo'));
|
||||
return new \WP_Error('missing_name_price', __('Missing plan name or price.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/*
|
||||
@ -2613,7 +2613,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
}
|
||||
|
||||
if (empty($plan_id)) {
|
||||
return new \WP_Error('empty_plan_id', __('Empty plan ID.', 'wp-ultimo'));
|
||||
return new \WP_Error('empty_plan_id', __('Empty plan ID.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
// Convert price to Stripe format.
|
||||
@ -2694,7 +2694,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
// Name are required.
|
||||
if (empty($name)) {
|
||||
return new \WP_Error('missing_name', __('Missing product name.', 'wp-ultimo'));
|
||||
return new \WP_Error('missing_name', __('Missing product name.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
if (empty($id)) {
|
||||
@ -2706,7 +2706,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
}
|
||||
|
||||
if (empty($product_id)) {
|
||||
return new \WP_Error('empty_product_id', __('Empty product ID.', 'wp-ultimo'));
|
||||
return new \WP_Error('empty_product_id', __('Empty product ID.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
// First check to see if a product exists with this ID. If so, return that.
|
||||
|
@ -87,8 +87,8 @@ class Manual_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'manual_header',
|
||||
[
|
||||
'title' => __('Manual', 'wp-ultimo'),
|
||||
'desc' => __('Use the settings section below to configure the manual payment method. This method allows your customers to manually pay for their memberships, but those payments require manual confirmation on your part.', 'wp-ultimo'),
|
||||
'title' => __('Manual', 'wp-multisite-waas'),
|
||||
'desc' => __('Use the settings section below to configure the manual payment method. This method allows your customers to manually pay for their memberships, but those payments require manual confirmation on your part.', 'wp-multisite-waas'),
|
||||
'type' => 'header',
|
||||
'show_as_submenu' => true,
|
||||
'require' => [
|
||||
@ -101,11 +101,11 @@ class Manual_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'manual_payment_instructions',
|
||||
[
|
||||
'title' => __('Payment Instructions', 'wp-ultimo'),
|
||||
'desc' => __('This instructions will be shown to the customer on the thank you page, as well as be sent via email.', 'wp-ultimo'),
|
||||
'title' => __('Payment Instructions', 'wp-multisite-waas'),
|
||||
'desc' => __('This instructions will be shown to the customer on the thank you page, as well as be sent via email.', 'wp-multisite-waas'),
|
||||
'type' => 'wp_editor',
|
||||
'allow_html' => true,
|
||||
'default' => __('Payment instructions here.', 'wp-ultimo'),
|
||||
'default' => __('Payment instructions here.', 'wp-multisite-waas'),
|
||||
'require' => [
|
||||
'active_gateways' => 'manual',
|
||||
],
|
||||
@ -141,9 +141,9 @@ class Manual_Gateway extends Base_Gateway {
|
||||
public function get_amount_update_message($to_customer = false) {
|
||||
|
||||
if ($to_customer) {
|
||||
$message = __('You will receive a updated invoice on the next billing cycle.', 'wp-ultimo');
|
||||
$message = __('You will receive a updated invoice on the next billing cycle.', 'wp-multisite-waas');
|
||||
} else {
|
||||
$message = __('The customer will receive a updated invoice on the next billing cycle.', 'wp-ultimo');
|
||||
$message = __('The customer will receive a updated invoice on the next billing cycle.', 'wp-multisite-waas');
|
||||
}
|
||||
|
||||
return $message;
|
||||
@ -352,7 +352,7 @@ class Manual_Gateway extends Base_Gateway {
|
||||
*/
|
||||
public function fields() {
|
||||
|
||||
$message = __('After you finish signing up, we will send you an email with instructions to finalize the payment. Your account will be pending until the payment is finalized and confirmed.', 'wp-ultimo');
|
||||
$message = __('After you finish signing up, we will send you an email with instructions to finalize the payment. Your account will be pending until the payment is finalized and confirmed.', 'wp-multisite-waas');
|
||||
|
||||
return sprintf('<p v-if="!order.has_trial" class="wu-p-4 wu-bg-yellow-200">%s</p>', $message);
|
||||
}
|
||||
@ -385,7 +385,7 @@ class Manual_Gateway extends Base_Gateway {
|
||||
|
||||
<h4 class="wu-m-0 <?php echo wu_env_picker('', 'wu-widget-title'); ?>">
|
||||
|
||||
<?php _e('Instructions for Payment', 'wp-ultimo'); ?>
|
||||
<?php _e('Instructions for Payment', 'wp-multisite-waas'); ?>
|
||||
|
||||
</h4>
|
||||
|
||||
|
@ -189,8 +189,8 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_header',
|
||||
[
|
||||
'title' => __('PayPal', 'wp-ultimo'),
|
||||
'desc' => __('Use the settings section below to configure PayPal Express as a payment method.', 'wp-ultimo'),
|
||||
'title' => __('PayPal', 'wp-multisite-waas'),
|
||||
'desc' => __('Use the settings section below to configure PayPal Express as a payment method.', 'wp-multisite-waas'),
|
||||
'type' => 'header',
|
||||
'show_as_submenu' => true,
|
||||
'require' => [
|
||||
@ -203,8 +203,8 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_sandbox_mode',
|
||||
[
|
||||
'title' => __('PayPal Sandbox Mode', 'wp-ultimo'),
|
||||
'desc' => __('Toggle this to put PayPal on sandbox mode. This is useful for testing and making sure PayPal is correctly setup to handle your payments.', 'wp-ultimo'),
|
||||
'title' => __('PayPal Sandbox Mode', 'wp-multisite-waas'),
|
||||
'desc' => __('Toggle this to put PayPal on sandbox mode. This is useful for testing and making sure PayPal is correctly setup to handle your payments.', 'wp-multisite-waas'),
|
||||
'type' => 'toggle',
|
||||
'default' => 0,
|
||||
'html_attr' => [
|
||||
@ -220,10 +220,10 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_test_username',
|
||||
[
|
||||
'title' => __('PayPal Test Username', 'wp-ultimo'),
|
||||
'title' => __('PayPal Test Username', 'wp-multisite-waas'),
|
||||
'desc' => '',
|
||||
'tooltip' => __('Make sure you are placing the TEST username, not the live one.', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. username_api1.username.co', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the TEST username, not the live one.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. username_api1.username.co', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -238,10 +238,10 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_test_password',
|
||||
[
|
||||
'title' => __('PayPal Test Password', 'wp-ultimo'),
|
||||
'title' => __('PayPal Test Password', 'wp-multisite-waas'),
|
||||
'desc' => '',
|
||||
'tooltip' => __('Make sure you are placing the TEST password, not the live one.', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the TEST password, not the live one.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -256,10 +256,10 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_test_signature',
|
||||
[
|
||||
'title' => __('PayPal Test Signature', 'wp-ultimo'),
|
||||
'title' => __('PayPal Test Signature', 'wp-multisite-waas'),
|
||||
'desc' => '',
|
||||
'tooltip' => __('Make sure you are placing the TEST signature, not the live one.', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the TEST signature, not the live one.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -274,10 +274,10 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_live_username',
|
||||
[
|
||||
'title' => __('PayPal Live Username', 'wp-ultimo'),
|
||||
'title' => __('PayPal Live Username', 'wp-multisite-waas'),
|
||||
'desc' => '',
|
||||
'tooltip' => __('Make sure you are placing the LIVE username, not the test one.', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. username_api1.username.co', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the LIVE username, not the test one.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. username_api1.username.co', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -292,10 +292,10 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_live_password',
|
||||
[
|
||||
'title' => __('PayPal Live Password', 'wp-ultimo'),
|
||||
'title' => __('PayPal Live Password', 'wp-multisite-waas'),
|
||||
'desc' => '',
|
||||
'tooltip' => __('Make sure you are placing the LIVE password, not the test one.', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the LIVE password, not the test one.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. IUOSABK987HJG88N', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -310,10 +310,10 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'payment-gateways',
|
||||
'paypal_live_signature',
|
||||
[
|
||||
'title' => __('PayPal Live Signature', 'wp-ultimo'),
|
||||
'title' => __('PayPal Live Signature', 'wp-multisite-waas'),
|
||||
'desc' => '',
|
||||
'tooltip' => __('Make sure you are placing the LIVE signature, not the test one.', 'wp-ultimo'),
|
||||
'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the LIVE signature, not the test one.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('e.g. AFcpSSRl31ADOdqnHNv4KZdVHEQzdMEEsWxV21C7fd0v3bYYYRCwYxqo', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -341,7 +341,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$gateway_subscription_id = $membership->get_gateway_subscription_id();
|
||||
|
||||
if (empty($gateway_subscription_id)) {
|
||||
return new \WP_Error('wu_paypal_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-ultimo'));
|
||||
return new \WP_Error('wu_paypal_no_subscription_id', __('Error: No gateway subscription ID found for this membership.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$original = $membership->_get_original();
|
||||
@ -349,7 +349,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$has_duration_change = $membership->get_duration() !== absint(wu_get_isset($original, 'duration')) || $membership->get_duration_unit() !== wu_get_isset($original, 'duration_unit');
|
||||
|
||||
if ($has_duration_change) {
|
||||
return new \WP_Error('wu_paypal_no_duration_change', __('Error: PayPal does not support changing the duration of a subscription.', 'wp-ultimo'));
|
||||
return new \WP_Error('wu_paypal_no_duration_change', __('Error: PayPal does not support changing the duration of a subscription.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -367,7 +367,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
'VERSION' => '124',
|
||||
'METHOD' => 'UpdateRecurringPaymentsProfile',
|
||||
'PROFILEID' => $gateway_subscription_id,
|
||||
'NOTE' => __('Membership update', 'wp-ultimo'),
|
||||
'NOTE' => __('Membership update', 'wp-multisite-waas'),
|
||||
'DESC' => $description,
|
||||
'AMT' => $temp_payment->get_total() - $temp_payment->get_tax_total(),
|
||||
'TAXAMT' => $temp_payment->get_tax_total(),
|
||||
@ -399,7 +399,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
}
|
||||
|
||||
if ('failure' === strtolower((string) $body['ACK'])) {
|
||||
return new \WP_Error($body['L_ERRORCODE0'], __('PayPal Error:', 'wp-ultimo') . ' ' . $body['L_LONGMESSAGE0']);
|
||||
return new \WP_Error($body['L_ERRORCODE0'], __('PayPal Error:', 'wp-multisite-waas') . ' ' . $body['L_LONGMESSAGE0']);
|
||||
}
|
||||
|
||||
return true;
|
||||
@ -504,7 +504,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
|
||||
$date = wp_date(get_option('date_format'), strtotime($membership->get_date_trial_end(), wu_get_current_time('timestamp', true)));
|
||||
|
||||
$notes[] = sprintf(__('Your trial period will end on %1$s.', 'wp-ultimo'), $date);
|
||||
$notes[] = sprintf(__('Your trial period will end on %1$s.', 'wp-multisite-waas'), $date);
|
||||
}
|
||||
|
||||
if ($is_recurring && $should_auto_renew) {
|
||||
@ -522,21 +522,21 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
if ($recurring_total !== $cart_total) {
|
||||
if ('downgrade' === $type) {
|
||||
if ($is_trial_setup) {
|
||||
$notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s every month.', 'wp-ultimo'), $date, $recurring_total_format);
|
||||
$notes[] = sprintf(__('Your updated membership will start on $1$s, from that date you will be billed %2$s every month.', 'wp-multisite-waas'), $date, $recurring_total_format);
|
||||
} else {
|
||||
$date_renew = wp_date(get_option('date_format'), strtotime($membership->get_date_expiration(), wu_get_current_time('timestamp', true)));
|
||||
|
||||
$notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'wp-ultimo'), $date_renew, $recurring_total_format, $desc);
|
||||
$notes[] = sprintf(__('Your updated membership will start on %1$s, from that date you will be billed %2$s %3$s.', 'wp-multisite-waas'), $date_renew, $recurring_total_format, $desc);
|
||||
}
|
||||
} elseif ($is_trial_setup) {
|
||||
$notes[] = sprintf(__('After the first payment you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc);
|
||||
$notes[] = sprintf(__('After the first payment you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc);
|
||||
} else {
|
||||
$notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc);
|
||||
$notes[] = sprintf(__('After this payment you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc);
|
||||
}
|
||||
} elseif ($is_trial_setup) {
|
||||
$notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'wp-ultimo'), $recurring_total_format, $desc);
|
||||
$notes[] = sprintf(__('From that date, you will be billed %1$s %2$s.', 'wp-multisite-waas'), $recurring_total_format, $desc);
|
||||
} else {
|
||||
$notes[] = sprintf(__('After this payment you will be billed %1$s.', 'wp-ultimo'), $desc);
|
||||
$notes[] = sprintf(__('After this payment you will be billed %1$s.', 'wp-multisite-waas'), $desc);
|
||||
}
|
||||
}
|
||||
|
||||
@ -576,12 +576,12 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$discounts_total = $cart->get_total_discounts();
|
||||
|
||||
if ( ! empty($discounts_total)) {
|
||||
__('Account credit and other discounts', 'wp-ultimo');
|
||||
__('Account credit and other discounts', 'wp-multisite-waas');
|
||||
|
||||
$args = array_merge(
|
||||
$args,
|
||||
[
|
||||
"L_PAYMENTREQUEST_0_NAME{$product_index}" => __('Account credit and other discounts', 'wp-ultimo'),
|
||||
"L_PAYMENTREQUEST_0_NAME{$product_index}" => __('Account credit and other discounts', 'wp-multisite-waas'),
|
||||
"L_PAYMENTREQUEST_0_AMT{$product_index}" => $discounts_total,
|
||||
"L_PAYMENTREQUEST_0_QTY{$product_index}" => 1,
|
||||
]
|
||||
@ -652,7 +652,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
/*
|
||||
* If we get here, something went wrong.
|
||||
*/
|
||||
throw new \Exception(__('Something has gone wrong, please try again', 'wp-ultimo'));
|
||||
throw new \Exception(__('Something has gone wrong, please try again', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -712,7 +712,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$gateway_payment_id = $payment->get_gateway_payment_id();
|
||||
|
||||
if (empty($gateway_payment_id)) {
|
||||
throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-ultimo'));
|
||||
throw new \Exception(__('Gateway payment ID not found. Cannot process refund automatically.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
$refund_type = 'Partial';
|
||||
@ -774,7 +774,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
return true;
|
||||
}
|
||||
|
||||
throw new \Exception(__('Something went wrong.', 'wp-ultimo'));
|
||||
throw new \Exception(__('Something went wrong.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
/**
|
||||
@ -789,7 +789,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
*/
|
||||
public function fields() {
|
||||
|
||||
$message = __('You will be redirected to PayPal to complete the purchase.', 'wp-ultimo');
|
||||
$message = __('You will be redirected to PayPal to complete the purchase.', 'wp-multisite-waas');
|
||||
|
||||
return sprintf('<p class="wu-p-4 wu-bg-yellow-200">%s</p>', $message);
|
||||
}
|
||||
@ -825,7 +825,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$details = $this->get_checkout_details(wu_request('token'));
|
||||
|
||||
if (empty($details)) {
|
||||
$error = new \WP_Error(__('PayPal token no longer valid.', 'wp-ultimo'));
|
||||
$error = new \WP_Error(__('PayPal token no longer valid.', 'wp-multisite-waas'));
|
||||
|
||||
wp_die($error);
|
||||
}
|
||||
@ -841,7 +841,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
* Bail.
|
||||
*/
|
||||
if (empty($payment)) {
|
||||
$error = new \WP_Error(__('Pending payment does not exist.', 'wp-ultimo'));
|
||||
$error = new \WP_Error(__('Pending payment does not exist.', 'wp-multisite-waas'));
|
||||
|
||||
wp_die($error);
|
||||
}
|
||||
@ -855,7 +855,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$original_cart = $payment->get_meta('wu_original_cart');
|
||||
|
||||
if (empty($original_cart)) {
|
||||
$error = new \WP_Error('no-cart', __('Original cart does not exist.', 'wp-ultimo'));
|
||||
$error = new \WP_Error('no-cart', __('Original cart does not exist.', 'wp-multisite-waas'));
|
||||
|
||||
wp_die($error);
|
||||
}
|
||||
@ -869,7 +869,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$is_recurring = $original_cart->has_recurring();
|
||||
|
||||
if (empty($membership) || empty($customer)) {
|
||||
$error = new \WP_Error('no-membership', __('Missing membership or customer data.', 'wp-ultimo'));
|
||||
$error = new \WP_Error('no-membership', __('Missing membership or customer data.', 'wp-multisite-waas'));
|
||||
|
||||
wp_die($error);
|
||||
}
|
||||
@ -923,7 +923,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
}
|
||||
|
||||
if (empty($membership)) {
|
||||
throw new \Exception(__('Exiting PayPal Express IPN - membership ID not found.', 'wp-ultimo'));
|
||||
throw new \Exception(__('Exiting PayPal Express IPN - membership ID not found.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
wu_log_add('paypal', sprintf('Processing IPN for membership #%d.', $membership->get_id()));
|
||||
@ -1041,15 +1041,15 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
if ('failed' === strtolower((string) $posted['payment_status'])) {
|
||||
|
||||
// Recurring payment failed.
|
||||
$membership->add_note(sprintf(__('Transaction ID %s failed in PayPal.', 'wp-ultimo'), $posted['txn_id']));
|
||||
$membership->add_note(sprintf(__('Transaction ID %s failed in PayPal.', 'wp-multisite-waas'), $posted['txn_id']));
|
||||
|
||||
die('Subscription payment failed');
|
||||
} elseif ('pending' === strtolower((string) $posted['payment_status'])) {
|
||||
|
||||
// Recurring payment pending (such as echeck).
|
||||
$pending_reason = ! empty($posted['pending_reason']) ? $posted['pending_reason'] : __('unknown', 'wp-ultimo');
|
||||
$pending_reason = ! empty($posted['pending_reason']) ? $posted['pending_reason'] : __('unknown', 'wp-multisite-waas');
|
||||
|
||||
$membership->add_note(sprintf(__('Transaction ID %1$s is pending in PayPal for reason: %2$s', 'wp-ultimo'), $posted['txn_id'], $pending_reason));
|
||||
$membership->add_note(sprintf(__('Transaction ID %1$s is pending in PayPal for reason: %2$s', 'wp-multisite-waas'), $posted['txn_id'], $pending_reason));
|
||||
|
||||
die('Subscription payment pending');
|
||||
}
|
||||
@ -1093,9 +1093,9 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
// Initial payment failed, so set the user back to pending.
|
||||
$membership->set_status('pending');
|
||||
|
||||
$membership->add_note(__('Initial payment failed in PayPal Express.', 'wp-ultimo'));
|
||||
$membership->add_note(__('Initial payment failed in PayPal Express.', 'wp-multisite-waas'));
|
||||
|
||||
$this->error_message = __('Initial payment failed.', 'wp-ultimo');
|
||||
$this->error_message = __('Initial payment failed.', 'wp-multisite-waas');
|
||||
} else {
|
||||
|
||||
// If this is a completed payment plan, we can skip any cancellation actions. This is handled in renewals.
|
||||
@ -1108,7 +1108,7 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
// user is marked as cancelled but retains access until end of term
|
||||
$membership->cancel();
|
||||
|
||||
$membership->add_note(__('Membership cancelled via PayPal Express IPN.', 'wp-ultimo'));
|
||||
$membership->add_note(__('Membership cancelled via PayPal Express IPN.', 'wp-multisite-waas'));
|
||||
}
|
||||
|
||||
break;
|
||||
@ -1353,8 +1353,8 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
}
|
||||
} else {
|
||||
wp_die(
|
||||
__('Something has gone wrong, please try again', 'wp-ultimo'),
|
||||
__('Error', 'wp-ultimo'),
|
||||
__('Something has gone wrong, please try again', 'wp-multisite-waas'),
|
||||
__('Error', 'wp-multisite-waas'),
|
||||
[
|
||||
'back_link' => true,
|
||||
'response' => '401',
|
||||
@ -1508,8 +1508,8 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
}
|
||||
} else {
|
||||
wp_die(
|
||||
__('Something has gone wrong, please try again', 'wp-ultimo'),
|
||||
__('Error', 'wp-ultimo'),
|
||||
__('Something has gone wrong, please try again', 'wp-multisite-waas'),
|
||||
__('Error', 'wp-multisite-waas'),
|
||||
[
|
||||
'back_link' => true,
|
||||
'response' => '401',
|
||||
@ -1531,10 +1531,10 @@ class PayPal_Gateway extends Base_Gateway {
|
||||
$checkout_details = $this->get_checkout_details($token);
|
||||
|
||||
if ( ! is_array($checkout_details)) {
|
||||
$error = is_wp_error($checkout_details) ? $checkout_details->get_error_message() : __('Invalid response code from PayPal', 'wp-ultimo');
|
||||
$error = is_wp_error($checkout_details) ? $checkout_details->get_error_message() : __('Invalid response code from PayPal', 'wp-multisite-waas');
|
||||
|
||||
// translators: %s is the paypal error message.
|
||||
return '<p>' . sprintf(__('An unexpected PayPal error occurred. Error message: %s.', 'wp-ultimo'), $error) . '</p>';
|
||||
return '<p>' . sprintf(__('An unexpected PayPal error occurred. Error message: %s.', 'wp-multisite-waas'), $error) . '</p>';
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -47,8 +47,8 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_checkout_header',
|
||||
[
|
||||
'title' => __('Stripe Checkout', 'wp-ultimo'),
|
||||
'desc' => __('Use the settings section below to configure Stripe Checkout as a payment method.', 'wp-ultimo'),
|
||||
'title' => __('Stripe Checkout', 'wp-multisite-waas'),
|
||||
'desc' => __('Use the settings section below to configure Stripe Checkout as a payment method.', 'wp-multisite-waas'),
|
||||
'type' => 'header',
|
||||
'show_as_submenu' => true,
|
||||
'require' => [
|
||||
@ -61,10 +61,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_checkout_public_title',
|
||||
[
|
||||
'title' => __('Stripe Public Name', 'wp-ultimo'),
|
||||
'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-ultimo'),
|
||||
'title' => __('Stripe Public Name', 'wp-multisite-waas'),
|
||||
'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => __('Credit Card', 'wp-ultimo'),
|
||||
'default' => __('Credit Card', 'wp-multisite-waas'),
|
||||
'require' => [
|
||||
'active_gateways' => 'stripe-checkout',
|
||||
],
|
||||
@ -75,8 +75,8 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_checkout_sandbox_mode',
|
||||
[
|
||||
'title' => __('Stripe Checkout Sandbox Mode', 'wp-ultimo'),
|
||||
'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-ultimo'),
|
||||
'title' => __('Stripe Checkout Sandbox Mode', 'wp-multisite-waas'),
|
||||
'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-multisite-waas'),
|
||||
'type' => 'toggle',
|
||||
'default' => 1,
|
||||
'html_attr' => [
|
||||
@ -94,10 +94,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_checkout_test_pk_key',
|
||||
[
|
||||
'title' => __('Stripe Test Publishable Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Test Publishable Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($pk_test_status) ? sprintf($error_message_wrap, $pk_test_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('pk_test_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('pk_test_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -114,10 +114,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_checkout_test_sk_key',
|
||||
[
|
||||
'title' => __('Stripe Test Secret Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Test Secret Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($sk_test_status) ? sprintf($error_message_wrap, $sk_test_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('sk_test_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('sk_test_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -134,10 +134,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_checkout_live_pk_key',
|
||||
[
|
||||
'title' => __('Stripe Live Publishable Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Live Publishable Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($pk_status) ? sprintf($error_message_wrap, $pk_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('pk_live_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('pk_live_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -154,10 +154,10 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_checkout_live_sk_key',
|
||||
[
|
||||
'title' => __('Stripe Live Secret Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Live Secret Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($sk_status) ? sprintf($error_message_wrap, $sk_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('sk_live_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('sk_live_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -168,15 +168,15 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
]
|
||||
);
|
||||
|
||||
$webhook_message = sprintf('<span class="wu-p-2 wu-bg-blue-100 wu-text-blue-600 wu-rounded wu-mt-3 wu-mb-0 wu-block wu-text-xs">%s</span>', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-ultimo'));
|
||||
$webhook_message = sprintf('<span class="wu-p-2 wu-bg-blue-100 wu-text-blue-600 wu-rounded wu-mt-3 wu-mb-0 wu-block wu-text-xs">%s</span>', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-multisite-waas'));
|
||||
|
||||
wu_register_settings_field(
|
||||
'payment-gateways',
|
||||
'stripe_checkout_webhook_listener_explanation',
|
||||
[
|
||||
'title' => __('Webhook Listener URL', 'wp-ultimo'),
|
||||
'title' => __('Webhook Listener URL', 'wp-multisite-waas'),
|
||||
'desc' => $webhook_message,
|
||||
'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-ultimo'),
|
||||
'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-multisite-waas'),
|
||||
'type' => 'text-display',
|
||||
'copy' => true,
|
||||
'default' => $this->get_webhook_listener_url(),
|
||||
@ -397,7 +397,7 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
*/
|
||||
public function fields(): string {
|
||||
|
||||
$message = __('You will be redirected to a checkout to complete the purchase.', 'wp-ultimo');
|
||||
$message = __('You will be redirected to a checkout to complete the purchase.', 'wp-multisite-waas');
|
||||
|
||||
return sprintf('<p class="wu-p-4 wu-bg-yellow-200">%s</p>', $message);
|
||||
}
|
||||
@ -419,7 +419,7 @@ class Stripe_Checkout_Gateway extends Base_Stripe_Gateway {
|
||||
$fields = [
|
||||
"payment_method_{$payment_method}" => [
|
||||
'type' => 'text-display',
|
||||
'title' => __('Saved Cards', 'wp-ultimo'),
|
||||
'title' => __('Saved Cards', 'wp-multisite-waas'),
|
||||
'display_value' => $card,
|
||||
],
|
||||
];
|
||||
|
@ -73,8 +73,8 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_header',
|
||||
[
|
||||
'title' => __('Stripe', 'wp-ultimo'),
|
||||
'desc' => __('Use the settings section below to configure Stripe as a payment method.', 'wp-ultimo'),
|
||||
'title' => __('Stripe', 'wp-multisite-waas'),
|
||||
'desc' => __('Use the settings section below to configure Stripe as a payment method.', 'wp-multisite-waas'),
|
||||
'type' => 'header',
|
||||
'show_as_submenu' => true,
|
||||
'require' => [
|
||||
@ -87,10 +87,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_public_title',
|
||||
[
|
||||
'title' => __('Stripe Public Name', 'wp-ultimo'),
|
||||
'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-ultimo'),
|
||||
'title' => __('Stripe Public Name', 'wp-multisite-waas'),
|
||||
'tooltip' => __('The name to display on the payment method selection field. By default, "Credit Card" is used.', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => __('Credit Card', 'wp-ultimo'),
|
||||
'default' => __('Credit Card', 'wp-multisite-waas'),
|
||||
'require' => [
|
||||
'active_gateways' => 'stripe',
|
||||
],
|
||||
@ -101,8 +101,8 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_sandbox_mode',
|
||||
[
|
||||
'title' => __('Stripe Sandbox Mode', 'wp-ultimo'),
|
||||
'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-ultimo'),
|
||||
'title' => __('Stripe Sandbox Mode', 'wp-multisite-waas'),
|
||||
'desc' => __('Toggle this to put Stripe on sandbox mode. This is useful for testing and making sure Stripe is correctly setup to handle your payments.', 'wp-multisite-waas'),
|
||||
'type' => 'toggle',
|
||||
'default' => 1,
|
||||
'html_attr' => [
|
||||
@ -120,10 +120,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_test_pk_key',
|
||||
[
|
||||
'title' => __('Stripe Test Publishable Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Test Publishable Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($pk_test_status) ? sprintf($error_message_wrap, $pk_test_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('pk_test_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('pk_test_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -140,10 +140,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_test_sk_key',
|
||||
[
|
||||
'title' => __('Stripe Test Secret Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Test Secret Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($sk_test_status) ? sprintf($error_message_wrap, $sk_test_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('sk_test_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the TEST keys, not the live ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('sk_test_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -160,10 +160,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_live_pk_key',
|
||||
[
|
||||
'title' => __('Stripe Live Publishable Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Live Publishable Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($pk_status) ? sprintf($error_message_wrap, $pk_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('pk_live_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('pk_live_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -180,10 +180,10 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
'payment-gateways',
|
||||
'stripe_live_sk_key',
|
||||
[
|
||||
'title' => __('Stripe Live Secret Key', 'wp-ultimo'),
|
||||
'title' => __('Stripe Live Secret Key', 'wp-multisite-waas'),
|
||||
'desc' => ! empty($sk_status) ? sprintf($error_message_wrap, $sk_status) : '',
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-ultimo'),
|
||||
'placeholder' => __('sk_live_***********', 'wp-ultimo'),
|
||||
'tooltip' => __('Make sure you are placing the LIVE keys, not the test ones.', 'wp-multisite-waas'),
|
||||
'placeholder' => __('sk_live_***********', 'wp-multisite-waas'),
|
||||
'type' => 'text',
|
||||
'default' => '',
|
||||
'capability' => 'manage_api_keys',
|
||||
@ -194,15 +194,15 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
]
|
||||
);
|
||||
|
||||
$webhook_message = sprintf('<span class="wu-p-2 wu-bg-blue-100 wu-text-blue-600 wu-rounded wu-mt-3 wu-mb-0 wu-block wu-text-xs">%s</span>', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-ultimo'));
|
||||
$webhook_message = sprintf('<span class="wu-p-2 wu-bg-blue-100 wu-text-blue-600 wu-rounded wu-mt-3 wu-mb-0 wu-block wu-text-xs">%s</span>', __('Whenever you change your Stripe settings, WP Multisite WaaS will automatically check the webhook URLs on your Stripe account to make sure we get notified about changes in subscriptions and payments.', 'wp-multisite-waas'));
|
||||
|
||||
wu_register_settings_field(
|
||||
'payment-gateways',
|
||||
'stripe_webhook_listener_explanation',
|
||||
[
|
||||
'title' => __('Webhook Listener URL', 'wp-ultimo'),
|
||||
'title' => __('Webhook Listener URL', 'wp-multisite-waas'),
|
||||
'desc' => $webhook_message,
|
||||
'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-ultimo'),
|
||||
'tooltip' => __('This is the URL Stripe should send webhook calls to.', 'wp-multisite-waas'),
|
||||
'type' => 'text-display',
|
||||
'copy' => true,
|
||||
'default' => $this->get_webhook_listener_url(),
|
||||
@ -257,7 +257,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
if (is_wp_error($s_customer)) {
|
||||
|
||||
// translators: %s is the error message.
|
||||
return new \WP_Error($s_customer->get_error_code(), sprintf(__('Error creating Stripe customer: %s', 'wp-ultimo'), $s_customer->get_error_message()));
|
||||
return new \WP_Error($s_customer->get_error_code(), sprintf(__('Error creating Stripe customer: %s', 'wp-multisite-waas'), $s_customer->get_error_message()));
|
||||
}
|
||||
|
||||
$this->membership->set_gateway_customer_id($s_customer->id);
|
||||
@ -509,7 +509,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
$payment_intent_id = $payment->get_meta('stripe_payment_intent_id');
|
||||
|
||||
if (empty($payment_intent_id)) {
|
||||
throw new \Exception(__('Missing Stripe payment intent, please try again or contact support if the issue persists.', 'wp-ultimo'), 'missing_stripe_payment_intent');
|
||||
throw new \Exception(__('Missing Stripe payment intent, please try again or contact support if the issue persists.', 'wp-multisite-waas'), 'missing_stripe_payment_intent');
|
||||
}
|
||||
|
||||
/**
|
||||
@ -544,7 +544,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
$s_customer = $this->get_or_create_customer($customer->get_id(), $customer->get_user_id(), $payment_intent->customer);
|
||||
|
||||
// translators: first is the customer id, then the customer email.
|
||||
$description = sprintf(__('Customer ID: %1$d - User Email: %2$s', 'wp-ultimo'), $customer->get_id(), $customer->get_email_address());
|
||||
$description = sprintf(__('Customer ID: %1$d - User Email: %2$s', 'wp-multisite-waas'), $customer->get_id(), $customer->get_email_address());
|
||||
|
||||
if (strlen($description) > 350) {
|
||||
$description = substr($description, 0, 350);
|
||||
@ -646,12 +646,12 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
$card_options = $this->get_saved_card_options();
|
||||
|
||||
if ($card_options) {
|
||||
$card_options['add-new'] = __('Add new card', 'wp-ultimo');
|
||||
$card_options['add-new'] = __('Add new card', 'wp-multisite-waas');
|
||||
|
||||
$fields = [
|
||||
'payment_method' => [
|
||||
'type' => 'radio',
|
||||
'title' => __('Saved Payment Methods', 'wp-ultimo'),
|
||||
'title' => __('Saved Payment Methods', 'wp-multisite-waas'),
|
||||
'value' => wu_request('payment_method'),
|
||||
'options' => $card_options,
|
||||
'html_attr' => [
|
||||
@ -721,7 +721,7 @@ class Stripe_Gateway extends Base_Stripe_Gateway {
|
||||
$fields = [
|
||||
"payment_method_{$payment_method}" => [
|
||||
'type' => 'text-display',
|
||||
'title' => __('Saved Cards', 'wp-ultimo'),
|
||||
'title' => __('Saved Cards', 'wp-multisite-waas'),
|
||||
'display_value' => $card,
|
||||
],
|
||||
];
|
||||
|
Reference in New Issue
Block a user