@afriex/checkout
Version:
Checkout service for Afriex SDK
20 lines • 766 B
TypeScript
import { HttpClient } from "@afriex/core";
import { CreateCheckoutSessionRequest, CheckoutSession } from "./types.js";
export declare class CheckoutService {
private static readonly supportedChannels;
private httpClient;
constructor(httpClient: HttpClient);
/**
* Create a checkout session
* POST /checkout-session
*
* Creates a hosted checkout session where customers can complete payments.
* Returns a checkout URL that can be embedded or redirected to.
*/
createSession(request: CreateCheckoutSessionRequest): Promise<CheckoutSession>;
private validateCreateSessionRequest;
private hasInvalidChannels;
private hasInvalidMetadata;
private isHttpsUrl;
}
//# sourceMappingURL=CheckoutService.d.ts.map