Subscriptions
PayPal Standard Migration Subscriptions helper.
Description #
Helper class to fetch PayPal Standard (IPN) subscriptions and users, to migrate to PayPal Checkout.
Source #
File: src/Core/Modules/Payments/Gateways/Paypal_Standard/Migration/Subscriptions.php
Changelog #
| Version | Description |
|---|---|
| 4.25.3 | Introduced. |
Methods #
- get_current_subscriptions — Gets the current subscriptions.
- get_paypal_subscription_id — Gets the PayPal subscription ID for paypal_ipn based on user_id and course_id.
- get_total_migrated_users — Gets the total number of migrated users.
- get_total_subscriptions — Gets the total number of subscriptions.
- get_user_emails — Returns a list of email addresses of users with subscriptions that require migration.
- get_user_subscribed_product_ids — Gets the user subscribed product IDs.
- is_test_mode — Checks if the test mode is enabled.