Skip to content
This repository was archived by the owner on Jan 25, 2018. It is now read-only.

Implement a start transaction API endpoint in Solitude (bug 987836)#212

Merged
jaredlockhart merged 1 commit intomozilla:masterfrom
JaredLockhart-Mozilla:987836
Apr 14, 2014
Merged

Implement a start transaction API endpoint in Solitude (bug 987836)#212
jaredlockhart merged 1 commit intomozilla:masterfrom
JaredLockhart-Mozilla:987836

Conversation

@jaredlockhart
Copy link
Contributor

  • Create a Boku Transaction Form that wraps the start transaction endpoint in the Boku client
  • Create an API View which wraps the form
  • Add form and view tests as necessary

Copy link
Contributor

Choose a reason for hiding this comment

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

are these the only countries we can sell in or something else?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

These are the countries we support. Any countries not in this list will fail validation and be unable to start a transaction.

Copy link
Contributor

Choose a reason for hiding this comment

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

then we don't need either of those countries, but we do need Phantom

Copy link
Contributor

Choose a reason for hiding this comment

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

in other words, this should probably be choices=ACTIVE_COUNTRY_CHOICES with only Phantom in it

@andymckay
Copy link
Contributor

looks good to me, good work

Copy link
Contributor

Choose a reason for hiding this comment

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

use spaces between the slash for pyflakes

Copy link
Contributor

Choose a reason for hiding this comment

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

like num / (num ** decimal_places)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Weird, that was already passing pep8, pyflakes, and flake8.

@kumar303
Copy link
Contributor

This needs a patch that adds API documentation: https://solitude.readthedocs.org/en/latest/topics/boku.html If that slows you down, file a bug to add documentation later.

Copy link
Contributor

Choose a reason for hiding this comment

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

I know it was from a previous patch but I'd say remove button_markup from the return output of start_transaction(). I can't think of any situation where we would need button markup.

@kumar303
Copy link
Contributor

r+wc, let's land this asap to test on dev!

- Create a Boku Transaction Form that wraps the start transaction endpoint in the Boku client
- Create an API View which wraps the form
- Add form and view tests as necessary
@andymckay
Copy link
Contributor

r+

jaredlockhart added a commit that referenced this pull request Apr 14, 2014
Implement a start transaction API endpoint in Solitude (bug 987836)
@jaredlockhart jaredlockhart merged commit 14b671f into mozilla:master Apr 14, 2014
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants