PluginProbe
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses / 4.4.8
LearnPress – WordPress LMS Plugin for Create and Sell Online Courses v4.4.8
4.4.8 4.4.7 4.4.6 4.4.5 4.4.4 4.4.3 4.4.2 4.4.1 4.4.0 4.3.9.1 4.3.9 4.3.8 4.3.7 4.1.6.9 4.1.6.9.1 4.1.6.9.2 4.1.6.9.3 4.1.6.9.4 4.1.7 4.1.7.1 4.1.7.2 4.1.7.3 4.1.7.3.1 4.1.7.3.2 4.2.0 All 139 releases
← All changes | config/settings/gateway/paypal.php +87 -87 4.3.94.4.8 View file →
@@ -1,87 +1,87 @@
1 -<?php
2 -/**
3 - * Fields settings PayPal Payment
4 - */
5 -
6 -$subscription_webhook_url = esc_url( rest_url( 'lp/v1/gateways/paypal/subscription-webhook' ) );
7 -
8 -return apply_filters(
9 - 'learn-press/gateway-payment/paypal/settings',
10 - array(
11 - array(
12 - 'type' => 'title',
13 - ),
14 - array(
15 - 'title' => esc_html__( 'Enable/Disable', 'learnpress' ),
16 - 'id' => '[enable]',
17 - 'default' => 'no',
18 - 'type' => 'checkbox',
19 - 'desc' => esc_html__( 'Enable PayPal', 'learnpress' ),
20 - ),
21 - /*array(
22 - 'title' => esc_html__( 'PayPal email', 'learnpress' ),
23 - 'id' => '[paypal_email]',
24 - 'type' => 'text',
25 - 'desc' => esc_html__( 'The old standard will not be supported in 2023/11/30.', 'learnpress' ),
26 - ),*/
27 - array(
28 - 'title' => esc_html__( 'Sandbox mode', 'learnpress' ),
29 - 'id' => '[paypal_sandbox]',
30 - 'default' => 'no',
31 - 'type' => 'checkbox',
32 - 'desc' => esc_html__( 'Enable PayPal sandbox', 'learnpress' ),
33 - ),
34 - /*array(
35 - 'title' => esc_html__( 'Sandbox email address', 'learnpress' ),
36 - 'id' => '[paypal_sandbox_email]',
37 - 'type' => 'text',
38 - 'desc' => esc_html__( 'The old standard will not be supported in 2023/11/30.', 'learnpress' ),
39 - ),*/
40 - /*array(
41 - 'title' => esc_html__( 'Use PayPal REST API', 'learnpress' ),
42 - 'id' => '[use_paypal_rest]',
43 - 'default' => 'yes',
44 - 'type' => 'checkbox',
45 - 'desc' => esc_html__( '(Recommendations)', 'learnpress' ),
46 - ),*/
47 - array(
48 - 'title' => esc_html__( 'Client ID', 'learnpress' ),
49 - 'id' => '[app_client_id]',
50 - 'type' => 'text',
51 - 'desc' => sprintf(
52 - __( 'How to get <a href="%s" target="_blank">Client ID</a>', 'learnpress' ),
53 - 'https://developer.paypal.com/api/rest/#link-getclientidandclientsecret'
54 - ),
55 - ),
56 - array(
57 - 'title' => esc_html__( 'Client Secret', 'learnpress' ),
58 - 'id' => '[app_client_secret]',
59 - 'type' => 'text',
60 - 'desc' => sprintf(
61 - __( 'How to get <a href="%s" target="_blank">Client Secret</a>', 'learnpress' ),
62 - 'https://developer.paypal.com/api/rest/#link-getclientidandclientsecret'
63 - ),
64 - ),
65 - array(
66 - 'title' => esc_html__( 'Enable subscriptions', 'learnpress' ),
67 - 'id' => '[enable_subscriptions]',
68 - 'default' => 'no',
69 - 'type' => 'checkbox',
70 - 'desc' => sprintf(
71 - '%1$s<br /><strong>%2$s</strong> <code>%3$s</code>',
72 - esc_html__( 'Enable PayPal subscription checkout flow.', 'learnpress' ),
73 - esc_html__( 'Webhook URL:', 'learnpress' ),
74 - esc_html( $subscription_webhook_url )
75 - ),
76 - ),
77 - array(
78 - 'title' => esc_html__( 'Subscription webhook ID', 'learnpress' ),
79 - 'id' => '[subscription_webhook_id]',
80 - 'type' => 'text',
81 - 'desc' => esc_html__( 'PayPal webhook ID used to reverse-verify subscription events.', 'learnpress' ),
82 - ),
83 - array(
84 - 'type' => 'sectionend',
85 - ),
86 - )
87 -);
1 +<?php
2 +/**
3 + * Fields settings PayPal Payment
4 + */
5 +
6 +$subscription_webhook_url = esc_url( rest_url( 'lp/v1/gateways/paypal/subscription-webhook' ) );
7 +
8 +return apply_filters(
9 + 'learn-press/gateway-payment/paypal/settings',
10 + array(
11 + array(
12 + 'type' => 'title',
13 + ),
14 + array(
15 + 'title' => esc_html__( 'Enable/Disable', 'learnpress' ),
16 + 'id' => '[enable]',
17 + 'default' => 'no',
18 + 'type' => 'checkbox',
19 + 'desc' => esc_html__( 'Enable PayPal', 'learnpress' ),
20 + ),
21 + /*array(
22 + 'title' => esc_html__( 'PayPal email', 'learnpress' ),
23 + 'id' => '[paypal_email]',
24 + 'type' => 'text',
25 + 'desc' => esc_html__( 'The old standard will not be supported in 2023/11/30.', 'learnpress' ),
26 + ),*/
27 + array(
28 + 'title' => esc_html__( 'Sandbox mode', 'learnpress' ),
29 + 'id' => '[paypal_sandbox]',
30 + 'default' => 'no',
31 + 'type' => 'checkbox',
32 + 'desc' => esc_html__( 'Enable PayPal sandbox', 'learnpress' ),
33 + ),
34 + /*array(
35 + 'title' => esc_html__( 'Sandbox email address', 'learnpress' ),
36 + 'id' => '[paypal_sandbox_email]',
37 + 'type' => 'text',
38 + 'desc' => esc_html__( 'The old standard will not be supported in 2023/11/30.', 'learnpress' ),
39 + ),*/
40 + /*array(
41 + 'title' => esc_html__( 'Use PayPal REST API', 'learnpress' ),
42 + 'id' => '[use_paypal_rest]',
43 + 'default' => 'yes',
44 + 'type' => 'checkbox',
45 + 'desc' => esc_html__( '(Recommendations)', 'learnpress' ),
46 + ),*/
47 + array(
48 + 'title' => esc_html__( 'Client ID', 'learnpress' ),
49 + 'id' => '[app_client_id]',
50 + 'type' => 'text',
51 + 'desc' => sprintf(
52 + __( 'How to get <a href="%s" target="_blank">Client ID</a>', 'learnpress' ),
53 + 'https://developer.paypal.com/api/rest/#link-getclientidandclientsecret'
54 + ),
55 + ),
56 + array(
57 + 'title' => esc_html__( 'Client Secret', 'learnpress' ),
58 + 'id' => '[app_client_secret]',
59 + 'type' => 'text',
60 + 'desc' => sprintf(
61 + __( 'How to get <a href="%s" target="_blank">Client Secret</a>', 'learnpress' ),
62 + 'https://developer.paypal.com/api/rest/#link-getclientidandclientsecret'
63 + ),
64 + ),
65 + array(
66 + 'title' => esc_html__( 'Enable subscriptions', 'learnpress' ),
67 + 'id' => '[enable_subscriptions]',
68 + 'default' => 'no',
69 + 'type' => 'checkbox',
70 + 'desc' => sprintf(
71 + '%1$s<br /><strong>%2$s</strong> <code>%3$s</code>',
72 + esc_html__( 'Enable PayPal subscription checkout flow.', 'learnpress' ),
73 + esc_html__( 'Webhook URL:', 'learnpress' ),
74 + esc_html( $subscription_webhook_url )
75 + ),
76 + ),
77 + array(
78 + 'title' => esc_html__( 'Subscription webhook ID', 'learnpress' ),
79 + 'id' => '[subscription_webhook_id]',
80 + 'type' => 'text',
81 + 'desc' => esc_html__( 'PayPal webhook ID used to reverse-verify subscription events.', 'learnpress' ),
82 + ),
83 + array(
84 + 'type' => 'sectionend',
85 + ),
86 + )
87 +);