feat: use Stripe checkout on donate page

This commit is contained in:
Mrugesh Mohapatra
2020-04-14 05:45:49 +05:30
committed by Ahmad Abdolsaheb
parent 946cd0665a
commit d74d72446d
2 changed files with 89 additions and 10 deletions

View File

@ -23,6 +23,19 @@ const modalDefaultStateConfig = {
donationDuration: 'month'
};
const onetimeSKUConfig = {
live: [
{ amount: '100000', id: 'sku_GwHogRRJrCYGms' },
{ amount: '25000', id: 'sku_GwHnCde23uDH5R' },
{ amount: '6000', id: 'sku_H5mjFgpayAzJzT' }
],
staging: [
{ amount: '100000', id: 'sku_GvAeUdWLsmGO9O' },
{ amount: '25000', id: 'sku_GvAdXbsotjFi7G' },
{ amount: '6000', id: 'sku_GvAeJDgwjnGAdy' }
]
};
// Configuration for server side
const durationKeysConfig = ['year', 'month', 'onetime'];
const donationOneTimeConfig = [100000, 25000, 6000];
@ -109,6 +122,7 @@ module.exports = {
donationOneTimeConfig,
donationSubscriptionConfig,
modalDefaultStateConfig,
onetimeSKUConfig,
paypalConfigTypes,
paypalConfigurator
};