feat(donate): PayPal integration
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
e3db423abf
commit
6c6eadfbe4
@@ -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 = (
|
||||
|
Reference in New Issue
Block a user