@mia-burton/klarna-node
Version:
A Node.js module for Klarna
9 lines (8 loc) • 471 B
text/typescript
import { Location, 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>
}