feat(donate): PayPal integration

This commit is contained in:
Ahmad Abdolsaheb
2020-03-13 12:25:57 +03:00
committed by Mrugesh Mohapatra
parent e3db423abf
commit 6c6eadfbe4
24 changed files with 1040 additions and 70 deletions

View File

@@ -59,12 +59,16 @@ function DonateModal({
executeGA
}) {
const [closeLabel, setCloseLabel] = React.useState(false);
const handleProcessing = (duration, amount) => {
const handleProcessing = (
duration,
amount,
action = 'stripe form submission'
) => {
executeGA({
type: 'event',
data: {
category: 'donation',
action: 'Modal strip form submission',
action: `Modal ${action}`,
label: duration,
value: amount
}
@@ -88,8 +92,8 @@ function DonateModal({
const donationText = (
<b>
Become a supporter and help us create even more learning resources for
you.
Become a $5 / month supporter and help us create even more learning
resources for you and your family.
</b>
);
const blockDonationText = (