PluginProbe
Subscriptions for WooCommerce with Stripe Recurring Payments / 2.4.0
Subscriptions for WooCommerce with Stripe Recurring Payments v2.4.0
2.4.0 2.3.0 2.2.0 2.1.0 2.0.0 1.11.2 1.11.1 1.11.0 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 1.10.2 1.10.1 1.10.0 1.9.6 1.9.5 trunk 1.3.0 1.3.1 1.3.2 1.4.0 All 65 releases
← All changes | includes/Admin/Integrations.php +33 -32 2.3.0 → 2.4.0 View file →
@@ -89,9 +89,10 @@
89 89 if ( ! $screen || false === strpos( $screen->id, 'wp-subscription-integrations' ) ) {
90 90 return;
91 91 }
92 92
93 - wp_enqueue_script( 'subscrpt-integrations', SUBSCRPT_ASSETS . '/js/integration_settings.js', [], SUBSCRPT_VERSION, true );
93 + wp_enqueue_script( 'subscrpt-integrations', SUBSCRPT_ASSETS . '/js/integration_settings.js', [ 'wp-i18n' ], SUBSCRPT_VERSION, true );
94 + wp_set_script_translations( 'subscrpt-integrations', 'subscription', SUBSCRPT_PATH . '/languages' );
94 95
95 96 wp_localize_script(
96 97 'subscrpt-integrations',
97 98 'subscrptIntegrations',
@@ -257,9 +258,9 @@
257 258 protected function get_integrations(): array {
258 259 $integrations = [
259 260 'paypal' => [
260 261 'title' => 'PayPal',
261 - 'description' => 'Accept recurring subscription payments directly through PayPal.',
262 + 'description' => __( 'Accept recurring subscription payments directly through PayPal.', 'subscription' ),
262 263 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/paypal.svg',
263 264 'type' => 'payment_gateway',
264 265 'is_installed' => 'on' === get_option( 'wp_subs_paypal_integration_enabled', 'off' ),
265 266 'is_active' => self::is_gateway_enabled( 'wp_subscription_paypal' ),
@@ -272,9 +273,9 @@
272 273 // 'function' => 'wpSubsInstallPaypalIntegration()',
273 274 // ],
274 275 [
275 276 'action' => 'settings',
276 - 'label' => 'Settings',
277 + 'label' => __( 'Settings', 'subscription' ),
277 278 'type' => 'link',
278 279 'url' => admin_url( 'admin.php?page=wc-settings&tab=checkout&section=wp_subscription_paypal' ),
279 280 ],
280 281 // [
@@ -287,9 +288,9 @@
287 288 ],
288 289 ],
289 290 'stripe' => [
290 291 'title' => 'Stripe',
291 - 'description' => 'Process subscription payments securely with Stripe.',
292 + 'description' => __( 'Process subscription payments securely with Stripe.', 'subscription' ),
292 293 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/stripe.png',
293 294 'type' => 'payment_gateway',
294 295 'is_installed' => class_exists( 'WC_Stripe' ),
295 296 'is_active' => self::is_gateway_enabled( 'stripe' ),
@@ -296,15 +297,15 @@
296 297 'supports_recurring' => true,
297 298 'actions' => [
298 299 [
299 300 'action' => 'install',
300 - 'label' => 'Install Now',
301 + 'label' => __( 'Install Now', 'subscription' ),
301 302 'type' => 'function',
302 303 'function' => "subscrptInstallPlugin(this, 'woocommerce-gateway-stripe')",
303 304 ],
304 305 [
305 306 'action' => 'settings',
306 - 'label' => 'Settings',
307 + 'label' => __( 'Settings', 'subscription' ),
307 308 'type' => 'link',
308 309 'url' => admin_url( 'admin.php?page=wc-settings&tab=checkout&section=stripe&panel=settings' ),
309 310 ],
310 311 ],
@@ -310,9 +311,9 @@
310 311 ],
311 312 ],
312 313 'paddle' => [
313 314 'title' => 'Paddle',
314 - 'description' => 'Process subscription payments securely with Paddle.',
315 + 'description' => __( 'Process subscription payments securely with Paddle.', 'subscription' ),
315 316 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/paddle.svg',
316 317 'type' => 'payment_gateway',
317 318 'is_installed' => class_exists( 'SmartPayWoo\Gateways\Paddle\SmartPay_Paddle' ),
318 319 'is_active' => self::is_gateway_enabled( 'smartpay_paddle' ),
@@ -319,15 +320,15 @@
319 320 'supports_recurring' => true,
320 321 'actions' => [
321 322 [
322 323 'action' => 'install',
323 - 'label' => 'Get Paddle',
324 + 'label' => __( 'Get Paddle', 'subscription' ),
324 325 'type' => 'external_link',
325 326 'url' => 'https://wpsmartpay.com/paddle-for-woocommerce/',
326 327 ],
327 328 [
328 329 'action' => 'enable',
329 - 'label' => 'Enable Gateway',
330 + 'label' => __( 'Enable Gateway', 'subscription' ),
330 331 'type' => 'toggle_option',
331 332 'option_key' => 'woocommerce_enable_paddle_gateway',
332 333 'value' => true,
333 334 ],
@@ -332,14 +333,14 @@
332 333 'value' => true,
333 334 ],
334 335 [
335 336 'action' => 'settings',
336 - 'label' => 'Settings',
337 + 'label' => __( 'Settings', 'subscription' ),
337 338 'type' => 'link',
338 339 'url' => admin_url( 'admin.php?page=wc-settings&tab=checkout&section=smartpay_paddle&from=WCADMIN_PAYMENT_SETTINGS' ),
339 340 ],
340 341 [
341 - 'label' => 'More Details',
342 + 'label' => __( 'More Details', 'subscription' ),
342 343 'type' => 'external_link',
343 344 'url' => 'https://wpsmartpay.com/paddle-for-woocommerce/',
344 345 ],
345 346 ],
@@ -345,9 +346,9 @@
345 346 ],
346 347 ],
347 348 'mollie' => [
348 349 'title' => 'Mollie',
349 - 'description' => 'Pay for subscriptions with Mollie Payments for WooCommerce.',
350 + 'description' => __( 'Pay for subscriptions with Mollie Payments for WooCommerce.', 'subscription' ),
350 351 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/mollie.png',
351 352 'type' => 'payment_gateway',
352 353 'is_pro' => true,
353 354 'is_installed' => class_exists( 'Mollie\WooCommerce\Activation\ActivationModule' ),
@@ -355,20 +356,20 @@
355 356 'supports_recurring' => true,
356 357 'actions' => [
357 358 [
358 359 'action' => 'install',
359 - 'label' => 'Install Now',
360 + 'label' => __( 'Install Now', 'subscription' ),
360 361 'type' => 'function',
361 362 'function' => "subscrptInstallPlugin(this, 'mollie-payments-for-woocommerce')",
362 363 ],
363 364 [
364 365 'action' => 'settings',
365 - 'label' => 'Settings',
366 + 'label' => __( 'Settings', 'subscription' ),
366 367 'type' => 'link',
367 368 'url' => admin_url( 'admin.php?page=wc-settings&tab=mollie_settings' ),
368 369 ],
369 370 [
370 - 'label' => 'More Details',
371 + 'label' => __( 'More Details', 'subscription' ),
371 372 'type' => 'external_link',
372 373 'url' => 'https://docs.wpsubscription.co/en/wpsubscription-payment-with-mollie?utm_source=plugin&utm_medium=admin&utm_campaign=docs',
373 374 ],
374 375 ],
@@ -374,9 +375,9 @@
374 375 ],
375 376 ],
376 377 'razorpay' => [
377 378 'title' => 'Razorpay',
378 - 'description' => 'Pay for subscriptions securely with Razorpay for WooCommerce.',
379 + 'description' => __( 'Pay for subscriptions securely with Razorpay for WooCommerce.', 'subscription' ),
379 380 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/razorpay.png',
380 381 'type' => 'payment_gateway',
381 382 'is_pro' => true,
382 383 'is_beta' => true,
@@ -385,20 +386,20 @@
385 386 'supports_recurring' => true,
386 387 'actions' => [
387 388 [
388 389 'action' => 'install',
389 - 'label' => 'Install Now',
390 + 'label' => __( 'Install Now', 'subscription' ),
390 391 'type' => 'function',
391 392 'function' => "subscrptInstallPlugin(this, 'woo-razorpay')",
392 393 ],
393 394 [
394 395 'action' => 'settings',
395 - 'label' => 'Settings',
396 + 'label' => __( 'Settings', 'subscription' ),
396 397 'type' => 'link',
397 398 'url' => admin_url( 'admin.php?page=wc-settings&tab=checkout&section=razorpay' ),
398 399 ],
399 400 [
400 - 'label' => 'More Details',
401 + 'label' => __( 'More Details', 'subscription' ),
401 402 'type' => 'external_link',
402 403 'url' => 'https://docs.wpsubscription.co/en/wpsubscription-payment-with-razorpay?utm_source=plugin&utm_medium=admin&utm_campaign=docs',
403 404 ],
404 405 ],
@@ -404,9 +405,9 @@
404 405 ],
405 406 ],
406 407 'xendit' => [
407 408 'title' => 'Xendit',
408 - 'description' => 'Pay for subscriptions securely with Xendit for WooCommerce.',
409 + 'description' => __( 'Pay for subscriptions securely with Xendit for WooCommerce.', 'subscription' ),
409 410 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/xendit.png',
410 411 'type' => 'payment_gateway',
411 412 'is_pro' => true,
412 413 'is_beta' => true,
@@ -415,20 +416,20 @@
415 416 'supports_recurring' => true,
416 417 'actions' => [
417 418 [
418 419 'action' => 'install',
419 - 'label' => 'Install Now',
420 + 'label' => __( 'Install Now', 'subscription' ),
420 421 'type' => 'function',
421 422 'function' => "subscrptInstallPlugin(this, 'woo-xendit-virtual-accounts')",
422 423 ],
423 424 [
424 425 'action' => 'settings',
425 - 'label' => 'Settings',
426 + 'label' => __( 'Settings', 'subscription' ),
426 427 'type' => 'link',
427 428 'url' => admin_url( 'admin.php?page=wc-settings&tab=checkout&section=xendit_gateway' ),
428 429 ],
429 430 [
430 - 'label' => 'More Details',
431 + 'label' => __( 'More Details', 'subscription' ),
431 432 'type' => 'external_link',
432 433 'url' => 'https://docs.wpsubscription.co/en/wpsubscription-payment-with-xendit?utm_source=plugin&utm_medium=admin&utm_campaign=docs',
433 434 ],
434 435 ],
@@ -444,9 +445,9 @@
444 445 $third_party = [
445 446 // LMS.
446 447 'tutor_lms' => [
447 448 'title' => 'Tutor LMS',
448 - 'description' => 'Restrict course access based on subscription status. Enroll and unenroll students automatically.',
449 + 'description' => __( 'Restrict course access based on subscription status. Enroll and unenroll students automatically.', 'subscription' ),
449 450 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/tutor-lms.jpeg',
450 451 'type' => 'third_party',
451 452 'is_pro' => true,
452 453 'category' => 'lms',
@@ -473,9 +474,9 @@
473 474 ],
474 475 ],
475 476 'learnpress' => [
476 477 'title' => 'LearnPress',
477 - 'description' => 'Connect subscriptions with LearnPress courses. Enroll users automatically when subscriptions are active.',
478 + 'description' => __( 'Connect subscriptions with LearnPress courses. Enroll users automatically when subscriptions are active.', 'subscription' ),
478 479 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/learnpress.png',
479 480 'type' => 'third_party',
480 481 'is_pro' => true,
481 482 'category' => 'lms',
@@ -502,9 +503,9 @@
502 503 ],
503 504 ],
504 505 'learndash' => [
505 506 'title' => 'LearnDash',
506 - 'description' => 'Sync subscription status with LearnDash group enrollment and course access.',
507 + 'description' => __( 'Sync subscription status with LearnDash group enrollment and course access.', 'subscription' ),
507 508 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/learndash.jpeg',
508 509 'type' => 'third_party',
509 510 'is_pro' => true,
510 511 'category' => 'lms',
@@ -532,9 +533,9 @@
532 533 ],
533 534 // CRM.
534 535 'fluentcrm' => [
535 536 'title' => 'FluentCRM',
536 - 'description' => 'Trigger email sequences and manage contacts based on subscription events and status changes.',
537 + 'description' => __( 'Trigger email sequences and manage contacts based on subscription events and status changes.', 'subscription' ),
537 538 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/fluentcrm.png',
538 539 'type' => 'third_party',
539 540 'is_pro' => true,
540 541 'category' => 'crm',
@@ -562,9 +563,9 @@
562 563 ],
563 564 // Automation.
564 565 'automatorwp' => [
565 566 'title' => 'AutomatorWP',
566 - 'description' => 'Build powerful automations triggered by subscription events without writing any code.',
567 + 'description' => __( 'Build powerful automations triggered by subscription events without writing any code.', 'subscription' ),
567 568 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/automatorwp.png',
568 569 'type' => 'third_party',
569 570 'is_pro' => true,
570 571 'category' => 'automation',
@@ -591,9 +592,9 @@
591 592 ],
592 593 ],
593 594 'wpfusion' => [
594 595 'title' => 'WP Fusion',
595 - 'description' => 'Sync subscription data with your CRM and marketing platforms through WP Fusion.',
596 + 'description' => __( 'Sync subscription data with your CRM and marketing platforms through WP Fusion.', 'subscription' ),
596 597 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/wp-fusion.png',
597 598 'type' => 'third_party',
598 599 'is_pro' => true,
599 600 'category' => 'automation',
@@ -621,9 +622,9 @@
621 622 ],
622 623 // Email Marketing.
623 624 'mailpoet' => [
624 625 'title' => 'MailPoet',
625 - 'description' => 'Add subscribers to MailPoet lists and trigger email automations based on subscription lifecycle events.',
626 + 'description' => __( 'Add subscribers to MailPoet lists and trigger email automations based on subscription lifecycle events.', 'subscription' ),
626 627 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/mailpoet.png',
627 628 'type' => 'third_party',
628 629 'is_pro' => true,
629 630 'category' => 'email',
@@ -651,9 +652,9 @@
651 652 ],
652 653 // License Management.
653 654 'wp_soft_lic' => [
654 655 'title' => 'WP Software License',
655 - 'description' => 'Issue and validate software licenses for subscription-based digital products.',
656 + 'description' => __( 'Issue and validate software licenses for subscription-based digital products.', 'subscription' ),
656 657 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/wp-software-license.png',
657 658 'type' => 'third_party',
658 659 'is_pro' => true,
659 660 'category' => 'license',
@@ -680,9 +681,9 @@
680 681 ],
681 682 ],
682 683 'license_mgr' => [
683 684 'title' => 'License Manager for WooCommerce',
684 - 'description' => 'Generate and manage software license keys that are automatically tied to active subscriptions.',
685 + 'description' => __( 'Generate and manage software license keys that are automatically tied to active subscriptions.', 'subscription' ),
685 686 'icon_url' => SUBSCRPT_ASSETS . '/images/integrations/license-manager.png',
686 687 'type' => 'third_party',
687 688 'is_pro' => true,
688 689 'category' => 'license',