← All changes
|
app/Modules/Payments/PaymentMethods/Stripe/StripeHandler.php
+15
-1
6.2.2
→
6.2.15
View file →
| @@ -105,8 +105,20 @@ | ||
| 105 | 105 | 'template' => 'inputYesNoCheckbox', |
| 106 | 106 | 'value' => 'yes', |
| 107 | 107 | 'label' => __('Embedded Checkout', 'fluentform') |
| 108 | 108 | ], |
| 109 | + 'enable_payment_element' => [ | |
| 110 | + 'type' => 'checkbox', | |
| 111 | + 'template' => 'inputYesNoCheckbox', | |
| 112 | + 'value' => 'no', | |
| 113 | + 'label' => __('Enable Payment Element', 'fluentform'), | |
| 114 | + 'help_text' => __('Replaces the card field with Stripe\'s Payment Element, which adds Apple Pay and Google Pay on supported devices. Apple Pay needs your site domain registered in Stripe under Settings > Payment method domains.', 'fluentform'), | |
| 115 | + 'dependency' => array( | |
| 116 | + 'depends_on' => 'embedded_checkout/value', | |
| 117 | + 'value' => 'yes', | |
| 118 | + 'operator' => '==' | |
| 119 | + ) | |
| 120 | + ], | |
| 109 | 121 | 'require_billing_info' => [ |
| 110 | 122 | 'type' => 'checkbox', |
| 111 | 123 | 'template' => 'inputYesNoCheckbox', |
| 112 | 124 | 'value' => 'no', |
| @@ -241,8 +253,10 @@ | ||
| 241 | 253 | if ($settings['live_secret_key'] == 'ENCRYPTED_KEY') { |
| 242 | 254 | $settings['live_secret_key'] = $prevSettings['live_secret_key']; |
| 243 | 255 | } |
| 244 | 256 | |
| 245 | - return StripeSettings::encryptKeys($settings); | |
| 257 | + $settings = StripeSettings::encryptKeys($settings); | |
| 258 | + | |
| 259 | + return StripeSettings::preserveUnreadableKeys($settings); | |
| 246 | 260 | } |
| 247 | 261 | |
| 248 | 262 | } |