Skip to content

Commit

Permalink
feat(foxy-payments-api): update virtual property helper for google re…
Browse files Browse the repository at this point in the history
…captcha config
  • Loading branch information
pheekus committed Jan 9, 2025
1 parent 6f83652 commit f21b5f1
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 35 deletions.
56 changes: 28 additions & 28 deletions src/elements/public/PaymentsApi/PaymentsApi.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,7 @@ describe('PaymentsApi', () => {
id: 'config',
name: 'Configuration',
type: 'select',
description: 'Determines how reCAPTCHA is configured to operate.',
description: '',
default_value: 'disabled',
options: [
{ name: 'Disabled', value: 'disabled' },
Expand All @@ -587,19 +587,19 @@ describe('PaymentsApi', () => {
],
},
{
id: 'private_key',
name: 'Private Key',
id: 'site_key',
name: 'Site Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Private Key here.',
description: '',
default_value: '',
},
{
id: 'site_key',
name: 'Site Key',
id: 'private_key',
name: 'Secret Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Site Key here.',
description: '',
default_value: '',
},
],
Expand Down Expand Up @@ -748,7 +748,7 @@ describe('PaymentsApi', () => {
id: 'config',
name: 'Configuration',
type: 'select',
description: 'Determines how reCAPTCHA is configured to operate.',
description: '',
default_value: 'disabled',
options: [
{ name: 'Disabled', value: 'disabled' },
Expand All @@ -757,19 +757,19 @@ describe('PaymentsApi', () => {
],
},
{
id: 'private_key',
name: 'Private Key',
id: 'site_key',
name: 'Site Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Private Key here.',
description: '',
default_value: '',
},
{
id: 'site_key',
name: 'Site Key',
id: 'private_key',
name: 'Secret Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Site Key here.',
description: '',
default_value: '',
},
],
Expand Down Expand Up @@ -3130,7 +3130,7 @@ describe('PaymentsApi', () => {
id: 'config',
name: 'Configuration',
type: 'select',
description: 'Determines how reCAPTCHA is configured to operate.',
description: '',
default_value: 'disabled',
options: [
{ name: 'Disabled', value: 'disabled' },
Expand All @@ -3139,19 +3139,19 @@ describe('PaymentsApi', () => {
],
},
{
id: 'private_key',
name: 'Private Key',
id: 'site_key',
name: 'Site Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Private Key here.',
description: '',
default_value: '',
},
{
id: 'site_key',
name: 'Site Key',
id: 'private_key',
name: 'Secret Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Site Key here.',
description: '',
default_value: '',
},
],
Expand Down Expand Up @@ -3356,7 +3356,7 @@ describe('PaymentsApi', () => {
id: 'config',
name: 'Configuration',
type: 'select',
description: 'Determines how reCAPTCHA is configured to operate.',
description: '',
default_value: 'disabled',
options: [
{ name: 'Disabled', value: 'disabled' },
Expand All @@ -3365,19 +3365,19 @@ describe('PaymentsApi', () => {
],
},
{
id: 'private_key',
name: 'Private Key',
id: 'site_key',
name: 'Site Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Private Key here.',
description: '',
default_value: '',
},
{
id: 'site_key',
name: 'Site Key',
id: 'private_key',
name: 'Secret Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Site Key here.',
description: '',
default_value: '',
},
],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function compose(params: Params): AvailableFraudProtections {
id: 'config',
name: 'Configuration',
type: 'select',
description: 'Determines how reCAPTCHA is configured to operate.',
description: '',
default_value: 'disabled',
options: [
{ name: 'Disabled', value: 'disabled' },
Expand All @@ -38,19 +38,19 @@ export function compose(params: Params): AvailableFraudProtections {
],
},
{
id: 'private_key',
name: 'Private Key',
id: 'site_key',
name: 'Site Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Private Key here.',
description: '',
default_value: '',
},
{
id: 'site_key',
name: 'Site Key',
id: 'private_key',
name: 'Secret Key',
type: 'text',
optional: true,
description: 'If using a custom subdomain, enter your Site Key here.',
description: '',
default_value: '',
},
],
Expand Down

0 comments on commit f21b5f1

Please sign in to comment.