This commit is contained in:
Kenneth Jannette
2024-01-28 15:27:04 -06:00
parent 3a77baeca5
commit 57de767624
2 changed files with 11 additions and 2 deletions

View File

@@ -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) => (

View File

@@ -204,7 +204,6 @@ const SignupPage = () => {
const handleProceedToPayment = (e) => { const handleProceedToPayment = (e) => {
e.preventDefault(); e.preventDefault();
setShowPaymentModal(true); setShowPaymentModal(true);
}; };