FIxing card number error
This commit is contained in:
parent
52b1ed736c
commit
081490667b
|
@ -219,7 +219,7 @@ class WalletDepot extends Component {
|
||||||
});
|
});
|
||||||
this.props.walletCommissionAmountReset();
|
this.props.walletCommissionAmountReset();
|
||||||
this.props.depositAction({
|
this.props.depositAction({
|
||||||
numCarte: parseInt((this.state.creditCardInput.values.number).replace(/ /g, ' ')),
|
numCarte: this.state.creditCardInput.values.number.replace(/\s/g, ''),
|
||||||
cvv: this.state.creditCardInput.values.cvc,
|
cvv: this.state.creditCardInput.values.cvc,
|
||||||
expiration_date: this.state.creditCardInput.values.expiry,
|
expiration_date: this.state.creditCardInput.values.expiry,
|
||||||
type: "credit",
|
type: "credit",
|
||||||
|
@ -339,6 +339,7 @@ class WalletDepot extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
console.log("STATE", this.state);
|
||||||
const { resultGetCommission } = this.props;
|
const { resultGetCommission } = this.props;
|
||||||
return (
|
return (
|
||||||
<View style={[styles.container]}>
|
<View style={[styles.container]}>
|
||||||
|
|
|
@ -220,7 +220,7 @@ class WalletRetrait extends Component {
|
||||||
});
|
});
|
||||||
this.props.walletCommissionAmountReset();
|
this.props.walletCommissionAmountReset();
|
||||||
this.props.depositAction({
|
this.props.depositAction({
|
||||||
numCarte: parseInt((this.state.creditCardInput.values.number).replace(/ /g, ' ')),
|
numCarte: this.state.creditCardInput.values.number.replace(/\s/g, ''),
|
||||||
cvv: this.state.creditCardInput.values.cvc,
|
cvv: this.state.creditCardInput.values.cvc,
|
||||||
expiration_date: this.state.creditCardInput.values.expiry,
|
expiration_date: this.state.creditCardInput.values.expiry,
|
||||||
type: "debit",
|
type: "debit",
|
||||||
|
@ -340,8 +340,8 @@ class WalletRetrait extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
console.log("STATE", this.state);
|
||||||
const { error, resultGetCommission } = this.props;
|
const { error, resultGetCommission } = this.props;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<View style={[styles.container]}>
|
<View style={[styles.container]}>
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue