4 SELECT evergreen.upgrade_deps_block_check('0863', :eg_version);
7 -- cheat sheet for enabling Stripe payments:
8 -- 'credit.payments.allow' must be true, and among other things it drives the
9 -- opac to render a payment form at all
10 -- NEW 'credit.processor.stripe.enabled' must be true (kind of redundant but
11 -- my fault for setting the precedent with c.p.{authorizenet|paypal|payflowpro}.enabled)
12 -- 'credit.default.processor' must be 'Stripe'
13 -- NEW 'credit.processor.stripe.pubkey' must be set
14 -- NEW 'credit.processor.stripe.secretkey' must be set
16 INSERT into config.org_unit_setting_type
17 ( name, grp, label, description, datatype, fm_class ) VALUES
19 ( 'credit.processor.stripe.enabled', 'credit',
20 oils_i18n_gettext('credit.processor.stripe.enabled',
21 'Enable Stripe payments',
23 oils_i18n_gettext('credit.processor.stripe.enabled',
24 'Enable Stripe payments',
25 'coust', 'description'),
28 ,( 'credit.processor.stripe.pubkey', 'credit',
29 oils_i18n_gettext('credit.processor.stripe.pubkey',
30 'Stripe publishable key',
32 oils_i18n_gettext('credit.processor.stripe.pubkey',
33 'Stripe publishable key',
34 'coust', 'description'),
37 ,( 'credit.processor.stripe.secretkey', 'credit',
38 oils_i18n_gettext('credit.processor.stripe.secretkey',
41 oils_i18n_gettext('credit.processor.stripe.secretkey',
43 'coust', 'description'),
47 UPDATE config.org_unit_setting_type
48 SET description = 'This might be "AuthorizeNet", "PayPal", "PayflowPro", or "Stripe".'
49 WHERE name = 'credit.processor.default' AND description = 'This might be "AuthorizeNet", "PayPal", etc.'; -- don't clobber local edits or i18n