Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 18 additions & 8 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,24 @@ type InitOptions = {
};

type OpenCheckoutOptions = {
hostedPage: Function;
layout: Layout;
loaded: Function;
error: Function;
success(hostedPageId: string): void;
close: Function;
step(currentStep: string): void;
};
hostedPage(): Promise<HostedPage>
layout?: Layout
loaded?: Function
error?: Function
success?(hostedPageId: string): void
close?: Function
step?(currentStep: string): void
}

export type HostedPage = {
id: string
type: string
url: string
state: string
embed: boolean
created_at: number
expires_at: number
}

interface AddressDetails {
first_name?: string;
Expand Down