Rename in more places
This commit is contained in:
@ -45,7 +45,7 @@ abstract class Base_Gateway {
|
||||
* that share the same base code, or that have code that is applicable
|
||||
* to other gateways.
|
||||
*
|
||||
* A classical example is the way Stripe is setup on WP Ultimo now:
|
||||
* A classical example is the way Stripe is setup on WP Multisite WaaS now:
|
||||
* - We have two stripe gateways - stripe and stripe-checkout;
|
||||
* - Both of those gateways inherit from class-base-stripe-gateway.php,
|
||||
* which deals with appending the remote gateway links to the admin panel,
|
||||
@ -313,7 +313,7 @@ abstract class Base_Gateway {
|
||||
* Adds Settings.
|
||||
*
|
||||
* This method allows developers to use
|
||||
* WP Ultimo apis to add settings to the settings
|
||||
* WP Multisite WaaS apis to add settings to the settings
|
||||
* page.
|
||||
*
|
||||
* Gateways can use wu_register_settings_field
|
||||
@ -364,11 +364,11 @@ abstract class Base_Gateway {
|
||||
/**
|
||||
* Declares support for free trials.
|
||||
*
|
||||
* WP Ultimo offers to ways of dealing with free trials:
|
||||
* WP Multisite WaaS offers to ways of dealing with free trials:
|
||||
* (1) By asking for a payment method upfront; or
|
||||
* (2) By not asking for a payment method until the trial is over.
|
||||
*
|
||||
* If you go the second route, WP Ultimo uses
|
||||
* If you go the second route, WP Multisite WaaS uses
|
||||
* the free gateway to deal with the first payment (which will be 0)
|
||||
*
|
||||
* If you go the first route, though, the payment gateway
|
||||
@ -701,8 +701,8 @@ abstract class Base_Gateway {
|
||||
*
|
||||
* @param string $return_url the URL to redirect after process.
|
||||
* @param self $gateway the gateway instance.
|
||||
* @param \WP_Ultimo\Models\Payment $payment the WP Ultimo payment instance.
|
||||
* @param \WP_Ultimo\Checkout\Cart $cart the current WP Ultimo cart order.
|
||||
* @param \WP_Ultimo\Models\Payment $payment the WP Multisite WaaS payment instance.
|
||||
* @param \WP_Ultimo\Checkout\Cart $cart the current WP Multisite WaaS cart order.
|
||||
* @return string
|
||||
*/
|
||||
return apply_filters('wu_return_url', $return_url, $this, $this->payment, $this->order);
|
||||
|
@ -137,7 +137,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
if (method_exists('Stripe', 'setAppInfo')) {
|
||||
|
||||
Stripe\Stripe::setAppInfo('WordPress WP Ultimo', wu_get_version(), esc_url(site_url()));
|
||||
Stripe\Stripe::setAppInfo('WordPress WP Multisite WaaS', wu_get_version(), esc_url(site_url()));
|
||||
|
||||
} // end if;
|
||||
|
||||
@ -595,7 +595,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
/**
|
||||
* Installs webhook urls onto Stripe.
|
||||
*
|
||||
* WP Ultimo will call this whenever settings for this api changes.
|
||||
* WP Multisite WaaS will call this whenever settings for this api changes.
|
||||
* That being said, it might be a good idea to check if the webhook already exists
|
||||
* before trying to re-create it.
|
||||
*
|
||||
@ -681,7 +681,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
Stripe\WebhookEndpoint::create(array(
|
||||
'enabled_events' => array('*'),
|
||||
'url' => $webhook_url,
|
||||
'description' => 'Added by WP Ultimo. Required to correctly handle changes in subscription status.',
|
||||
'description' => 'Added by WP Multisite WaaS. Required to correctly handle changes in subscription status.',
|
||||
));
|
||||
|
||||
return true;
|
||||
@ -910,7 +910,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
* @param integer $customer_id WP Ultimo customer ID.
|
||||
* @param integer $customer_id WP Multisite WaaS customer ID.
|
||||
* @param integer $user_id The WordPress user ID.
|
||||
* @param integer $stripe_customer_id The Stripe Customer ID.
|
||||
* @return \WP_Ultimo\Dependencies\Stripe\Customer|\WP_Error
|
||||
@ -923,7 +923,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
$customer_exists = false;
|
||||
|
||||
/*
|
||||
* Use the WP Ultimo customer ID to search on the
|
||||
* Use the WP Multisite WaaS customer ID to search on the
|
||||
* database for an existing Stripe customer id.
|
||||
*/
|
||||
if (empty($stripe_customer_id)) {
|
||||
@ -1030,7 +1030,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
*
|
||||
* @since 2.0.11
|
||||
*
|
||||
* @param \WP_Ultimo\Objects\Billing_Address $billing_address The WP Ultimo billing address.
|
||||
* @param \WP_Ultimo\Objects\Billing_Address $billing_address The WP Multisite WaaS billing address.
|
||||
* @return array
|
||||
*/
|
||||
public function convert_to_stripe_address($billing_address) {
|
||||
@ -1531,7 +1531,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
} // end build_non_recurring_cart;
|
||||
|
||||
/**
|
||||
* Converts the WP Ultimo cart into Stripe Sub arguments.
|
||||
* Converts the WP Multisite WaaS cart into Stripe Sub arguments.
|
||||
*
|
||||
* @since 2.0.0
|
||||
*
|
||||
@ -1644,7 +1644,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
} // end build_stripe_cart;
|
||||
|
||||
/**
|
||||
* Converts the Stripe invoice line items into WP Ultimo line items.
|
||||
* Converts the Stripe invoice line items into WP Multisite WaaS line items.
|
||||
*
|
||||
* @since 2.0.19
|
||||
*
|
||||
@ -1821,7 +1821,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
|
||||
$customer_id = (int) $subscription->metadata['customer_id'];
|
||||
|
||||
// Legacy WP Ultimo uses user_id
|
||||
// Legacy WP Multisite WaaS uses user_id
|
||||
$user_id = (int) $subscription->metadata['user_id'];
|
||||
|
||||
if ($customer_id === 0 && $user_id === 0) {
|
||||
@ -2316,7 +2316,7 @@ class Base_Stripe_Gateway extends Base_Gateway {
|
||||
} // end if;
|
||||
|
||||
/*
|
||||
* Set the WP Ultimo customer.
|
||||
* Set the WP Multisite WaaS customer.
|
||||
*/
|
||||
$customer = $membership->get_customer();
|
||||
|
||||
|
@ -6,7 +6,7 @@
|
||||
* It doesn't do anything with the payments,
|
||||
* as they need to be manually approved by the super admin
|
||||
* but it serves as a good example of how
|
||||
* to implement a custom gateway for WP Ultimo.
|
||||
* to implement a custom gateway for WP Multisite WaaS.
|
||||
*
|
||||
* @package WP_Ultimo
|
||||
* @subpackage Gateways
|
||||
@ -214,7 +214,7 @@ class Manual_Gateway extends Base_Gateway {
|
||||
*
|
||||
* If you wish to stop the process at any point
|
||||
* due to some error, API failure or such,
|
||||
* simply throw a exception and WP Ultimo will
|
||||
* simply throw a exception and WP Multisite WaaS will
|
||||
* catch it and rollback any changes.
|
||||
*/
|
||||
if ($type === 'new') {
|
||||
@ -279,7 +279,7 @@ class Manual_Gateway extends Base_Gateway {
|
||||
* for a possible wp_error.
|
||||
*
|
||||
* If that happens, we need to throw an exception
|
||||
* WP Ultimo will capture that exception and
|
||||
* WP Multisite WaaS will capture that exception and
|
||||
* rollback database changes for us,
|
||||
* to avoid problems with data integrity.
|
||||
*
|
||||
@ -305,7 +305,7 @@ class Manual_Gateway extends Base_Gateway {
|
||||
/*
|
||||
* You don't need to return anything,
|
||||
* but if you return false from this method,
|
||||
* WP Ultimo will assume that you want to handle redirection
|
||||
* WP Multisite WaaS will assume that you want to handle redirection
|
||||
* and such by yourself.
|
||||
*
|
||||
* This can be useful for some gateways that require
|
||||
|
@ -140,7 +140,7 @@ 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 Ultimo 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-ultimo'));
|
||||
|
||||
wu_register_settings_field('payment-gateways', 'stripe_checkout_webhook_listener_explanation', array(
|
||||
'title' => __('Webhook Listener URL', 'wp-ultimo'),
|
||||
|
@ -163,7 +163,7 @@ 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 Ultimo 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-ultimo'));
|
||||
|
||||
wu_register_settings_field('payment-gateways', 'stripe_webhook_listener_explanation', array(
|
||||
'title' => __('Webhook Listener URL', 'wp-ultimo'),
|
||||
|
Reference in New Issue
Block a user