2019-05-07 11:29:07 +03:00
|
|
|
import React, {Component} from 'react';
|
|
|
|
import {CardElement} from 'react-stripe-elements';
|
2019-02-14 19:59:41 +03:00
|
|
|
|
|
|
|
class CheckoutForm extends Component {
|
2019-02-26 06:09:16 +03:00
|
|
|
constructor(props) {
|
|
|
|
super(props);
|
|
|
|
}
|
2019-02-14 19:59:41 +03:00
|
|
|
|
2019-02-26 06:09:16 +03:00
|
|
|
render() {
|
|
|
|
let style = {
|
|
|
|
base: {
|
|
|
|
'::placeholder': {
|
|
|
|
color: '#8795A1',
|
|
|
|
fontSize: '15px'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
invalid: {
|
|
|
|
'::placeholder': {
|
|
|
|
color: 'rgba(240, 82, 48, 0.75)'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|
|
|
|
return (
|
|
|
|
<div className="gm-form-element">
|
|
|
|
<CardElement style={ style } />
|
|
|
|
</div>
|
|
|
|
);
|
|
|
|
}
|
2019-02-14 19:59:41 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
export default CheckoutForm;
|