UNPKG

@mia-burton/klarna-node

Version:
9 lines (8 loc) 471 B
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> }