Apply patch [skip ci]
This commit is contained in:
parent
ee7c8a3106
commit
52e700319f
@ -1,13 +1,10 @@
|
|||||||
// routes/tenant/rent/pay/index.tsx
|
// routes/tenant/rent/pay/index.tsx
|
||||||
import { define } from "../../../../utils.ts";
|
import { define } from "../../../../utils.ts";
|
||||||
import { SessionCookie } from "../../../auth/callback.ts";
|
|
||||||
import { getLeasesByTenant } from "../../../../services/leaseService.ts";
|
import { getLeasesByTenant } from "../../../../services/leaseService.ts";
|
||||||
import {
|
import {
|
||||||
getPaymentMethodsByUser,
|
getPaymentMethodsByUser,
|
||||||
PaymentMethod,
|
PaymentMethod,
|
||||||
} from "../../../../services/paymentService.ts";
|
} from "../../../../services/paymentService.ts";
|
||||||
import { createPaymentTransaction } from "../../../../services/paymentService.ts";
|
|
||||||
import { getE2ENow, isE2EEnabled } from "../../../../services/e2eFixtures.ts";
|
|
||||||
import { page } from "fresh";
|
import { page } from "fresh";
|
||||||
import { Lease } from "../../../../db/interfaces.ts";
|
import { Lease } from "../../../../db/interfaces.ts";
|
||||||
|
|
||||||
@ -70,7 +67,7 @@ export const handler = define.handlers({
|
|||||||
try {
|
try {
|
||||||
const formData = await ctx.req.formData();
|
const formData = await ctx.req.formData();
|
||||||
const amount = parseFloat(formData.get("amount") as string);
|
const amount = parseFloat(formData.get("amount") as string);
|
||||||
const payment_method_id = formData.get("payment_method_id") as string;
|
const _payment_method_id = formData.get("payment_method_id") as string;
|
||||||
const lease_id = formData.get("lease_id") as string;
|
const lease_id = formData.get("lease_id") as string;
|
||||||
|
|
||||||
// Call the payment intent creation endpoint
|
// Call the payment intent creation endpoint
|
||||||
@ -369,3 +366,4 @@ export default define.page(
|
|||||||
);
|
);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user