chore: temporarily remove PayPal components
This commit should be reverted while implementing PayPal integration
This commit is contained in:
@ -9,8 +9,7 @@ import {
|
|||||||
Row,
|
Row,
|
||||||
Col,
|
Col,
|
||||||
ToggleButtonGroup,
|
ToggleButtonGroup,
|
||||||
ToggleButton,
|
ToggleButton
|
||||||
Radio
|
|
||||||
} from '@freecodecamp/react-bootstrap';
|
} from '@freecodecamp/react-bootstrap';
|
||||||
import { StripeProvider, Elements } from 'react-stripe-elements';
|
import { StripeProvider, Elements } from 'react-stripe-elements';
|
||||||
|
|
||||||
@ -202,37 +201,9 @@ class DonateForm extends Component {
|
|||||||
|
|
||||||
renderDonationOptions() {
|
renderDonationOptions() {
|
||||||
const { stripe, enableDonationSettingsPage } = this.props;
|
const { stripe, enableDonationSettingsPage } = this.props;
|
||||||
const {
|
const { donationAmount, donationDuration, paymentType } = this.state;
|
||||||
donationAmount,
|
|
||||||
donationDuration,
|
|
||||||
paymentType,
|
|
||||||
processing
|
|
||||||
} = this.state;
|
|
||||||
return (
|
return (
|
||||||
<div>
|
<div>
|
||||||
{!processing ? (
|
|
||||||
<div>
|
|
||||||
<Radio
|
|
||||||
checked={paymentType === 'Card'}
|
|
||||||
name='payment-method'
|
|
||||||
onChange={this.handleSelectPaymentType}
|
|
||||||
value='Card'
|
|
||||||
>
|
|
||||||
Donate using a Credit/Debit Card.
|
|
||||||
</Radio>
|
|
||||||
<Radio
|
|
||||||
checked={paymentType === 'PayPal'}
|
|
||||||
// disable the paypal integration for now
|
|
||||||
disabled={true}
|
|
||||||
name='payment-method'
|
|
||||||
onChange={this.handleSelectPaymentType}
|
|
||||||
value='PayPal'
|
|
||||||
>
|
|
||||||
Donate using PayPal. (Coming soon)
|
|
||||||
</Radio>
|
|
||||||
<Spacer />
|
|
||||||
</div>
|
|
||||||
) : null}
|
|
||||||
{paymentType === 'Card' ? (
|
{paymentType === 'Card' ? (
|
||||||
<StripeProvider stripe={stripe}>
|
<StripeProvider stripe={stripe}>
|
||||||
<Elements>
|
<Elements>
|
||||||
|
Reference in New Issue
Block a user