← All changes
|
app/Modules/Payments/PaymentMethods/Stripe/StripeHandler.php
+12
-0
6.2.7
→
trunk
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', |