import * as React from 'react'; import { Input } from 'reactstrap'; export interface Props { updateState: (arg: number) => void; paymentData: { [key: string]: any }, } export interface State { submitted: boolean, currentState: number showFormPD: boolean, showFormCD: boolean, } export default class ClientDetails extends React.Component { constructor(props: Props) { super(props); this.state = { submitted: false, currentState: 0, showFormCD: true, showFormPD: true, }; } render() { const { clientCode, clientLogo, clientName, payerEmail, payerMobNumber, payerName, requestAmount, } = this.props.paymentData; const { showFormCD, showFormPD } = this.state; let smallName = ""; if (clientName) { let words = clientName.split(" "); for (let i of words) { smallName += i[0]; } } return (
Checkout
{ clientLogo ? profile :
{smallName}
} {/*
{clientName?.toLowerCase()}
*/}

{clientName}

Client Code - {clientCode}

{/*

{requestAmount + " " + amountType}

*/}

Payment Details

arrow up { this.setState({ showFormPD: !showFormPD }) }} />

Contact Information

arrow up { this.setState({ showFormCD: !showFormCD }) }} />
this.props.updateState(1)} className="primaryButton">Continue
secure

This payment is secured by SabPaisa

By proceeding, you agree to our Terms & Privacy

partners

Powered by

sabpaisa logo
) } }