more
This commit is contained in:
@@ -21,13 +21,23 @@ const PaymentModal = ({
|
|||||||
isAnnual,
|
isAnnual,
|
||||||
fieldsChunkSize,
|
fieldsChunkSize,
|
||||||
}) => {
|
}) => {
|
||||||
|
console.log("orderSummary", orderSummary);
|
||||||
|
let price;
|
||||||
|
if (orderSummary?.plan?.pricing[0].amount) {
|
||||||
|
console.log(orderSummary?.plan?.pricing[0]);
|
||||||
|
}
|
||||||
|
//? orderSummary?.plan?.pricing[1].amount
|
||||||
|
//: orderSummary?.plan?.pricing[0].amount;
|
||||||
|
const planName = "orderSummary.plan.name;";
|
||||||
return (
|
return (
|
||||||
<Modal show="true" size="lg">
|
<Modal show="true" size="lg">
|
||||||
<Modal.Header closeButton>
|
<Modal.Header closeButton>
|
||||||
<Modal.Title>Enter Payment Information</Modal.Title>
|
<Modal.Title>Enter Payment Information</Modal.Title>
|
||||||
</Modal.Header>
|
</Modal.Header>
|
||||||
<Modal.Body>
|
<Modal.Body>
|
||||||
<div className="payment-modal-text-wrapper">{orderSummary.plan}</div>
|
<div className="payment-modal-text-wrapper">
|
||||||
|
Subrscription Type:{planName}
|
||||||
|
</div>
|
||||||
<Form className="payment-form">
|
<Form className="payment-form">
|
||||||
{splitEvery(Object.keys(paymentfields), fieldsChunkSize).map(
|
{splitEvery(Object.keys(paymentfields), fieldsChunkSize).map(
|
||||||
(names, j) => (
|
(names, j) => (
|
||||||
|
|||||||
@@ -204,7 +204,6 @@ const SignupPage = () => {
|
|||||||
|
|
||||||
const handleProceedToPayment = (e) => {
|
const handleProceedToPayment = (e) => {
|
||||||
e.preventDefault();
|
e.preventDefault();
|
||||||
|
|
||||||
setShowPaymentModal(true);
|
setShowPaymentModal(true);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user