Skip to content

Commit e055675

Browse files
committed
feat: update parameter descriptions for Paystack keys and add callback URL definition
1 parent 8d2c670 commit e055675

File tree

1 file changed

+20
-2
lines changed

1 file changed

+20
-2
lines changed

packages/sails-paystack/helpers/parameters.js

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,27 @@ module.exports = {
1313
protect: true,
1414
whereToGet: {
1515
url: 'https://dashboard.paystack.com/#/settings/developers',
16-
description: 'Generate an API key in your Paystack dashboard.',
16+
description: 'Generate a secret key in your Paystack dashboard.',
1717
extendedDescription:
18-
'To generate an API key, you will first need to log in to your Paystack account, or sign up for one if you have not already done so.'
18+
'To generate a secret key, you will first need to log in to your Paystack account, or sign up for one if you have not already done so.'
1919
}
20+
},
21+
PAYSTACK_PUBLIC_KEY: {
22+
type: 'string',
23+
friendlyName: 'Public Key',
24+
description: 'A valid Paystack Public Key',
25+
whereToGet: {
26+
url: 'https://dashboard.paystack.com/#/settings/developers',
27+
description: 'Get your public key from your Paystack dashboard.',
28+
extendedDescription:
29+
'To get your public key, you will first need to log in to your Paystack account, or sign up for one if you have not already done so.'
30+
}
31+
},
32+
PAYSTACK_CALLBACK_URL: {
33+
type: 'string',
34+
friendlyName: 'Callback URL',
35+
description: 'The default callback URL for Paystack transactions',
36+
extendedDescription:
37+
'This URL will be used as the default callback for all transactions unless overridden per request.'
2038
}
2139
}

0 commit comments

Comments
 (0)