Commit de94be0d by Arjun Jhukal

minor changes

parent 1ea13bc2
...@@ -195,6 +195,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -195,6 +195,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
}, },
callback: async (response: any) => { callback: async (response: any) => {
try { try {
console.log("token value is", response);
await payViaFortPay({ await payViaFortPay({
id, id,
amount, amount,
...@@ -225,14 +226,11 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -225,14 +226,11 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
}; };
return ( return (
<> <>
<Script <Script
src="https://secure.fppgateway.com/token/Collect.js" src="https://secure.fppgateway.com/token/Collect.js"
data-tokenization-key="5mN8N7-jhr55W-N22pxX-uAW2s9" data-tokenization-key="NAhDuk-7V4u2u-tUAsT5-dCqbH5"
strategy="afterInteractive" strategy="afterInteractive"
onReady={handleCollectJSLoad} onReady={handleCollectJSLoad}
/> />
...@@ -242,7 +240,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -242,7 +240,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
{/* ── Billing fields ── */} {/* ── Billing fields ── */}
<div className="form-group"> <div className="form-group">
<InputLabel htmlFor="name">First Name<span className="text-red-500">*</span></InputLabel> <InputLabel htmlFor="name">First Name</InputLabel>
<OutlinedInput <OutlinedInput
id="fname" id="fname"
...@@ -261,7 +259,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -261,7 +259,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
</div> </div>
<div className="form-group"> <div className="form-group">
<InputLabel htmlFor="name">Last Name<span className="text-red-500">*</span></InputLabel> <InputLabel htmlFor="name">Last Name</InputLabel>
<OutlinedInput <OutlinedInput
id="lname" id="lname"
...@@ -280,7 +278,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -280,7 +278,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
</div> </div>
<div className="form-group"> <div className="form-group">
<InputLabel htmlFor="address1">Address<span className="text-red-500">*</span></InputLabel> <InputLabel htmlFor="address1">Address</InputLabel>
<OutlinedInput <OutlinedInput
id="address1" id="address1"
name="address1" name="address1"
...@@ -298,7 +296,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -298,7 +296,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
</div> </div>
<div className="form-group"> <div className="form-group">
<InputLabel htmlFor="city">City<span className="text-red-500">*</span></InputLabel> <InputLabel htmlFor="city">City</InputLabel>
<OutlinedInput <OutlinedInput
id="city" id="city"
name="city" name="city"
...@@ -316,7 +314,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -316,7 +314,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
</div> </div>
<div className="form-group"> <div className="form-group">
<InputLabel htmlFor="state">State<span className="text-red-500">*</span></InputLabel> <InputLabel htmlFor="state">State</InputLabel>
<OutlinedInput <OutlinedInput
id="state" id="state"
name="state" name="state"
...@@ -334,7 +332,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type: ...@@ -334,7 +332,7 @@ export default function PaymentForm({ id, amount, type }: DepositProps & { type:
</div> </div>
<div className="form-group"> <div className="form-group">
<InputLabel htmlFor="zip">Zip Code<span className="text-red-500">*</span></InputLabel> <InputLabel htmlFor="zip">Zip Code</InputLabel>
<OutlinedInput <OutlinedInput
id="zip" id="zip"
name="zip" name="zip"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment