-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Stripe gateway minor fixes and docs update #75
Conversation
chandradot99
commented
Jan 3, 2018
- add guard clause when source params is token or customer
- trim name since it will contain the extra space when first_name or last_name is not passed in card struct.
- don't change the struct into map, access card params from struct only
- change stripe docs according to new credit card and address struct
- change expiration year in README.md
…last_name is not passed in card struct. * don't change the struct into map, access card params from struct only
lib/gringotts/gateways/stripe.ex
Outdated
iex> amount = 10 | ||
|
||
iex> Gringotts.authorize(Gringotts.Gateways.Stripe, amount, payment, opts) | ||
iex> Gringotts.authorize(Gringotts.Gateways.Stripe, amount, card, opts) | ||
""" | ||
@spec authorize(Float, Map, List) :: Map |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Many of your @spec
s are wrong, this one should be:
@spec authorize(float, CreditCard.t | String.t, keyword) :: map
Pls refer the typespecs docs.
@oyeb I have made the requested changes, can you verify once again as it need to merged soon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now.
* separate payment into credit card and address struct * set default currency if currency not passed in options * add guard clause when source params is token or customer * Change stripe docs according to new credit card and address struct * Updated Readme * Fixed specs