Skip to content

Commit

Permalink
Fixed an issue where test publishable key field disappeared
Browse files Browse the repository at this point in the history
Signed-off-by: Sam Poyigi <6567634+sampoyigi@users.noreply.github.com>
  • Loading branch information
sampoyigi committed Dec 14, 2022
1 parent 451703b commit c490b37
Showing 1 changed file with 16 additions and 6 deletions.
22 changes: 16 additions & 6 deletions payments/stripe/fields.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,18 @@
'condition' => 'value[live]',
],
],
'test_webhook_secret' => [
'label' => 'lang:igniter.payregister::default.stripe.label_test_webhook_secret',
'live_webhook_secret' => [
'label' => 'lang:igniter.payregister::default.stripe.label_live_webhook_secret',
'type' => 'text',
'span' => 'left',
'trigger' => [
'action' => 'show',
'field' => 'transaction_mode',
'condition' => 'value[live]',
],
],
'test_publishable_key' => [
'label' => 'lang:igniter.payregister::default.stripe.label_test_publishable_key',
'type' => 'text',
'span' => 'right',
'trigger' => [
Expand All @@ -66,14 +76,14 @@
'condition' => 'value[test]',
],
],
'live_webhook_secret' => [
'label' => 'lang:igniter.payregister::default.stripe.label_live_webhook_secret',
'test_webhook_secret' => [
'label' => 'lang:igniter.payregister::default.stripe.label_test_webhook_secret',
'type' => 'text',
'span' => 'left',
'span' => 'right',
'trigger' => [
'action' => 'show',
'field' => 'transaction_mode',
'condition' => 'value[live]',
'condition' => 'value[test]',
],
],
'locale_code' => [
Expand Down

0 comments on commit c490b37

Please sign in to comment.