Skip to content
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

Merged
merged 10 commits into from
Jan 4, 2018

Conversation

chandradot99
Copy link
Member

  • 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

@pkrawat1 pkrawat1 requested review from oyeb and removed request for pkrawat1 January 3, 2018 13:25
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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many of your @specs are wrong, this one should be:

@spec authorize(float, CreditCard.t | String.t, keyword) :: map

Pls refer the typespecs docs.

@chandradot99
Copy link
Member Author

@oyeb I have made the requested changes, can you verify once again as it need to merged soon.

Copy link
Member

@arjun289 arjun289 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM now.

@pkrawat1 pkrawat1 merged commit 6e402e9 into dev Jan 4, 2018
@pkrawat1 pkrawat1 deleted the stripe_gateway_minor_fixes_and_docs_update branch January 4, 2018 10:42
pkrawat1 pushed a commit that referenced this pull request Jan 25, 2018
* 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants