Skip to content

Commit

Permalink
Properly use params on loginlink creation and add Params to it.
Browse files Browse the repository at this point in the history
  • Loading branch information
remi-stripe committed Jun 14, 2018
1 parent 156fb7a commit 05d6e9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions loginlink.go
Expand Up @@ -3,6 +3,7 @@ package stripe
// LoginLinkParams is the set of parameters that can be used when creating a login_link.
// For more details see https://stripe.com/docs/api#create_login_link.
type LoginLinkParams struct {
Params `form:"*"`
Account *string `form:"-"` // Included in URL
}

Expand Down
2 changes: 1 addition & 1 deletion loginlink/client.go
Expand Up @@ -27,7 +27,7 @@ func (c Client) New(params *stripe.LoginLinkParams) (*stripe.LoginLink, error) {

path := stripe.FormatURLPath("/accounts/%s/login_links", stripe.StringValue(params.Account))
loginLink := &stripe.LoginLink{}
err := c.B.Call(http.MethodPost, path, c.Key, nil, loginLink)
err := c.B.Call(http.MethodPost, path, c.Key, params, loginLink)
return loginLink, err
}

Expand Down

0 comments on commit 05d6e9e

Please sign in to comment.