Made key and token optional

The parameters key and token must be optional if using the same options interface for both configure and open. You will only want to set the key and token in configure, no need to set it again in open.
This commit is contained in:
amritk 2015-09-25 17:57:57 -07:00
parent 480772811f
commit 1204530cb6

View File

@ -15,8 +15,8 @@ interface StripeCheckoutHandler {
}
interface StripeCheckoutOptions {
key: string;
token: (token: StripeTokenResponse) => void;
key?: string;
token?: (token: StripeTokenResponse) => void;
image?: string;
name?: string;
description?: string;