fix(donate): re-enable monthly donations and update plans
This commit is contained in:
committed by
mrugesh
parent
a7c70ddcd8
commit
b561599614
@ -131,7 +131,7 @@ class MinimalDonateForm extends Component {
|
|||||||
<Row>
|
<Row>
|
||||||
<Col lg={8} lgOffset={2} sm={10} smOffset={1} xs={12}>
|
<Col lg={8} lgOffset={2} sm={10} smOffset={1} xs={12}>
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<b>Confirm your donation of $60 / year with PayPal:</b>
|
<b>Confirm your donation of $5 / year with PayPal:</b>
|
||||||
<Spacer />
|
<Spacer />
|
||||||
<PaypalButton
|
<PaypalButton
|
||||||
donationAmount={donationAmount}
|
donationAmount={donationAmount}
|
||||||
@ -151,7 +151,7 @@ class MinimalDonateForm extends Component {
|
|||||||
donationAmount={donationAmount}
|
donationAmount={donationAmount}
|
||||||
donationDuration={donationDuration}
|
donationDuration={donationDuration}
|
||||||
getDonationButtonLabel={() =>
|
getDonationButtonLabel={() =>
|
||||||
`Confirm your donation of $60 / year`
|
`Confirm your donation of $5 / year`
|
||||||
}
|
}
|
||||||
handleProcessing={handleProcessing}
|
handleProcessing={handleProcessing}
|
||||||
/>
|
/>
|
||||||
|
@ -4,26 +4,26 @@ require('dotenv').config({ path: path.resolve(__dirname, '../.env') });
|
|||||||
// Configuration for client side
|
// Configuration for client side
|
||||||
const durationsConfig = {
|
const durationsConfig = {
|
||||||
year: 'yearly',
|
year: 'yearly',
|
||||||
// month: 'monthly', // We have disabled montly payments
|
month: 'monthly',
|
||||||
onetime: 'one-time'
|
onetime: 'one-time'
|
||||||
};
|
};
|
||||||
const amountsConfig = {
|
const amountsConfig = {
|
||||||
year: [100000, 25000, 6000],
|
year: [100000, 25000, 6000],
|
||||||
month: [5000, 3500, 500],
|
month: [25000, 3500, 500],
|
||||||
onetime: [100000, 25000, 6000]
|
onetime: [100000, 25000, 6000]
|
||||||
};
|
};
|
||||||
const defaultAmount = {
|
const defaultAmount = {
|
||||||
year: 6000,
|
year: 25000,
|
||||||
month: 3500,
|
month: 3500,
|
||||||
onetime: 25000
|
onetime: 25000
|
||||||
};
|
};
|
||||||
const defaultStateConfig = {
|
const defaultStateConfig = {
|
||||||
donationAmount: defaultAmount['year'],
|
donationAmount: defaultAmount['month'],
|
||||||
donationDuration: 'year'
|
donationDuration: 'month'
|
||||||
};
|
};
|
||||||
const modalDefaultStateConfig = {
|
const modalDefaultStateConfig = {
|
||||||
donationAmount: 6000,
|
donationAmount: 500,
|
||||||
donationDuration: 'year'
|
donationDuration: 'month'
|
||||||
};
|
};
|
||||||
|
|
||||||
// Configuration for server side
|
// Configuration for server side
|
||||||
@ -36,7 +36,7 @@ const donationSubscriptionConfig = {
|
|||||||
},
|
},
|
||||||
plans: {
|
plans: {
|
||||||
year: [100000, 25000, 6000],
|
year: [100000, 25000, 6000],
|
||||||
month: [5000, 3500, 500]
|
month: [25000, 3500, 500]
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -46,6 +46,12 @@ const paypalConfigTypes = {
|
|||||||
month: {
|
month: {
|
||||||
'500': {
|
'500': {
|
||||||
planId: 'P-1L11422374370240ULZKX3PA'
|
planId: 'P-1L11422374370240ULZKX3PA'
|
||||||
|
},
|
||||||
|
'3500': {
|
||||||
|
planId: 'P-1L11422374370240ULZKX3PA'
|
||||||
|
},
|
||||||
|
'25000': {
|
||||||
|
planId: 'P-1L11422374370240ULZKX3PA'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
year: {
|
year: {
|
||||||
@ -64,6 +70,12 @@ const paypalConfigTypes = {
|
|||||||
month: {
|
month: {
|
||||||
'500': {
|
'500': {
|
||||||
planId: 'P-37N14480BW163382FLZYPVMA'
|
planId: 'P-37N14480BW163382FLZYPVMA'
|
||||||
|
},
|
||||||
|
'3500': {
|
||||||
|
planId: 'P-3E678937P5715503NLZZTRVY'
|
||||||
|
},
|
||||||
|
'25000': {
|
||||||
|
planId: 'P-97K80194AU368022JLZ2Q27Y'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
year: {
|
year: {
|
||||||
|
Reference in New Issue
Block a user