purge paystack

This commit is contained in:
2026-06-15 11:38:04 +03:00
parent 8f7cec33ef
commit 6a98e8984e
26 changed files with 85 additions and 730 deletions
+7 -20
View File
@@ -2,9 +2,8 @@ import { apiRequest } from "#/api/client";
import type {
CheckoutQuote,
CheckoutQuoteRequest,
PaystackInitializeRequest,
PaystackInitializeResponse,
PaystackVerifyResponse,
SimulatedCheckoutRequest,
SimulatedCheckoutResponse,
} from "#/types/payment";
export function getCheckoutQuote(
@@ -18,21 +17,9 @@ export function getCheckoutQuote(
});
}
export function initializePaystackPayment(request: PaystackInitializeRequest) {
return apiRequest<PaystackInitializeResponse>(
"/payments/paystack/initialize",
{
method: "POST",
body: request,
},
);
}
export function verifyPaystackPayment(reference: string) {
return apiRequest<PaystackVerifyResponse>(
`/payments/paystack/verify/${encodeURIComponent(reference)}`,
{
method: "POST",
},
);
export function simulateCheckout(request: SimulatedCheckoutRequest) {
return apiRequest<SimulatedCheckoutResponse>("/checkout/simulate", {
method: "POST",
body: request,
});
}