diff --git a/components/soutyen/payment-method.js b/components/soutyen/payment-method.js
index 9a1ab1c..44e2ca6 100644
--- a/components/soutyen/payment-method.js
+++ b/components/soutyen/payment-method.js
@@ -1,4 +1,3 @@
-import {useState} from 'react'
import PropTypes from 'prop-types'
import Tabs from '@mui/material/Tabs'
import Tab from '@mui/material/Tab'
@@ -6,16 +5,9 @@ import Box from '@mui/material/Box'
import Button from '@mui/material/Button'
import {Paypal, Liberapay} from '@icons-pack/react-simple-icons'
-import {Elements} from '@stripe/react-stripe-js'
-import {loadStripe} from '@stripe/stripe-js'
-import {Grid} from '@mui/material'
-import {appearance} from '../../lib/utils/stripe-style'
+import Grid from '@mui/material/Unstable_Grid2'
-import CheckoutForm from './checkout-form'
-import StripeDialog from './stripe-dialog'
-
-const STRIPE_PUBLIC_KEY = process.env.NEXT_PUBLIC_STRIPE_PUBLIC_KEY
const PAYPAL_ID = process.env.NEXT_PUBLIC_PAYPAL_DONATE_ID
const LIBERAPAY_DONATE = process.env.NEXT_PUBLIC_LIBERAPAY_DONATE
@@ -52,48 +44,27 @@ function a11yProps(index) {
}
}
-export default function PaymentMethod({isLoading, paymentMethod, setPaymentMethod, selectedMontant, setSelectedMontant, validMontant, setValidMontant, paymentIntent, setClientSecret, setPaymentIntent, setIsLoading, setClientEmail, clientEmail, error, setError, clientSecret}) {
- const [open, setOpen] = useState(false)
-
- const options = {
- clientSecret,
- appearance,
- }
-
+export default function PaymentMethod({paymentMethod, setPaymentMethod}) {
const handleChange = (event, newValue) => {
setPaymentMethod(newValue)
}
- const handleClickOpen = () => {
- setOpen(true)
- }
-
- const handleClose = () => {
- if (selectedMontant) {
- setSelectedMontant(null)
- setValidMontant(null)
- }
-
- setOpen(false)
- }
-
return (
-
-
+
} onClick={() => window.open(`https://liberapay.com/${LIBERAPAY_DONATE}/donate`, '_blank')}>
Faire un don via Liberapay
-
+
} onClick={() => window.open(`https://www.paypal.com/donate/?hosted_button_id=${PAYPAL_ID}`, '_blank')}>
Faire un don via PayPal
@@ -105,67 +76,11 @@ export default function PaymentMethod({isLoading, paymentMethod, setPaymentMetho
Cliquez ici pour adhérer à l’association OKi
-
-
-
- {clientSecret && validMontant && paymentMethod === 2 && (
-
-
-
- )}
-
-
)
}
-PaymentMethod.defaultProps = {
- selectedMontant: null,
- validMontant: null,
- paymentIntent: null,
- clientEmail: null,
- error: null,
- clientSecret: null
-}
-
PaymentMethod.propTypes = {
- isLoading: PropTypes.bool.isRequired,
paymentMethod: PropTypes.number.isRequired,
- setPaymentMethod: PropTypes.func.isRequired,
- selectedMontant: PropTypes.string,
- setSelectedMontant: PropTypes.func.isRequired,
- validMontant: PropTypes.string,
- setValidMontant: PropTypes.func.isRequired,
- paymentIntent: PropTypes.string,
- setClientSecret: PropTypes.func.isRequired,
- setPaymentIntent: PropTypes.func.isRequired,
- setIsLoading: PropTypes.func.isRequired,
- setClientEmail: PropTypes.func.isRequired,
- clientEmail: PropTypes.string,
- error: PropTypes.string,
- setError: PropTypes.func.isRequired,
- clientSecret: PropTypes.string
+ setPaymentMethod: PropTypes.func.isRequired
}
diff --git a/components/soutyen/presantasyon.js b/components/soutyen/presantasyon.js
index 29833b9..bc2dbde 100644
--- a/components/soutyen/presantasyon.js
+++ b/components/soutyen/presantasyon.js
@@ -21,7 +21,7 @@ export default function Presantasyon() {
Toute contribution, aussi modeste soit-elle, nous permet d’augmenter nos capacités.
- Concernant les dons, ils peuvent s'effectuer via Liberapay, PayPal ou directement sur notre site par carte bancaire. Pour ce dernier, nous utilisons Stripe (une plateforme de paiement 100% sécurisée).
+ Concernant les dons, ils peuvent s'effectuer via Liberapay, PayPal.
Vous pouvez adhérer à notre association en vous rendant sur asso.oki.re.