| @@ -65,8 +65,10 @@ | ||
| 65 | 65 | public function boot() |
| 66 | 66 | { |
| 67 | 67 | (new IPN())->init(); |
| 68 | 68 | |
| 69 | + add_action('fluent_cart_action_paypal_connect', [ConnectConfig::class, 'handleConnect']); | |
| 70 | + | |
| 69 | 71 | add_action('wp_ajax_nopriv_fluent_cart_confirm_paypal_payment', [$this, 'confirmPayPalSinglePayment']); |
| 70 | 72 | add_action('wp_ajax_fluent_cart_confirm_paypal_payment', [$this, 'confirmPayPalSinglePayment']); |
| 71 | 73 | |
| 72 | 74 | add_action('wp_ajax_nopriv_fluent_cart_confirm_paypal_subscription', [$this, 'confirmPayPalSubscription']); |
| @@ -1057,8 +1059,15 @@ | ||
| 1057 | 1059 | 'value' => 'test', |
| 1058 | 1060 | 'schema' => $testSchema |
| 1059 | 1061 | ] |
| 1060 | 1062 | ] |
| 1063 | + ], | |
| 1064 | + 'brand_name' => [ | |
| 1065 | + 'value' => '', | |
| 1066 | + 'label' => __('Brand name', 'fluent-cart'), | |
| 1067 | + 'placeholder' => __('Shown on the PayPal checkout instead of your business name', 'fluent-cart'), | |
| 1068 | + 'tooltip' => __('Optional. Up to 127 characters. Leave empty to show the name on your PayPal business account.', 'fluent-cart'), | |
| 1069 | + 'type' => 'text', | |
| 1061 | 1070 | ], |
| 1062 | 1071 | 'provider' => array( |
| 1063 | 1072 | 'value' => $this->settings->getProviderType(), |
| 1064 | 1073 | 'label' => __('Provider', 'fluent-cart'), |