@mia-burton/klarna-node
Version:
A Node.js module for Klarna
9 lines (8 loc) • 477 B
TypeScript
import { OrderInput, SessionResponse, OrderResponse, Order, UrlsInput, PaymentSession } from "./types";
export interface ClientInterface {
createPaymentSession(theOrder: OrderInput, urls: UrlsInput): Promise<SessionResponse>;
getPaymentSession(theId: string): Promise<PaymentSession>;
createOrder(theSessionId: string): Promise<OrderResponse>;
getOrder(theId: string): Promise<Order>;
captureOrder(theOrderId: string, theAmount: number): Promise<string>;
}