fix(client): fixup PayPal intergration

This commit is contained in:
Mrugesh Mohapatra
2020-03-17 21:16:08 +05:30
committed by mrugesh
parent 4ee032d664
commit c30f0dbf0d
4 changed files with 37 additions and 7 deletions

View File

@@ -16,13 +16,13 @@ export class PaypalButton extends Component {
constructor(...props) {
super(...props);
this.state = {
planId: durationPlans.month['500'].planId
planId: durationPlans.year['6000'].planId
};
this.handleApproval = this.handleApproval.bind(this);
}
handleApproval = data => {
this.props.handleProcessing('month', 500, 'Paypal payment submission');
this.props.handleProcessing('year', 6000, 'Paypal payment submission');
this.props.onDonationStateChange(false, true, '');
verifySubscriptionPaypal(data)
.then(response => {