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

Add Charges API #1

Closed
abh opened this issue Sep 28, 2011 · 8 comments
Closed

Add Charges API #1

abh opened this issue Sep 28, 2011 · 8 comments
Milestone

Comments

@abh
Copy link
Contributor

abh commented Sep 28, 2011

No description provided.

@mrcwinn
Copy link
Contributor

mrcwinn commented Oct 4, 2011

Any ETA on Charges API or looking for help?

@abh
Copy link
Contributor Author

abh commented Oct 4, 2011

Hi –

Patches welcome! (In particular if they include tests and documentation update)

I haven't looked for a few days, but from my notes I think the API should be something like

  • stripe.charges
  • .create( { data, .. } ) - create a charge
  • .retrieve( charge_id ) - retrieve a charge
  • .refund(charge_id, amount) - refund a charge
  • .list(count, offset, customer) - list charges; not sure about the list of parameters; maybe this should take an object with { count: 123, offset: 10, customer: customer_id } instead. If so then customers.list should be changed, too.

One of the things that made me pause implementing this was that I wasn't sure what the best way to return the error code / error description is when there are errors. An object instead of a string? If so then the other error handling should do that, too.

@mrcwinn
Copy link
Contributor

mrcwinn commented Oct 4, 2011

Sounds great! Just committed changes to support Charge API.

@mrcwinn
Copy link
Contributor

mrcwinn commented Oct 4, 2011

Fixed a couple little quirks. Was using a GET where it should be POST.

@abh
Copy link
Contributor Author

abh commented Oct 4, 2011

Can you add some tests and then make a pull request?

@mrcwinn
Copy link
Contributor

mrcwinn commented Oct 4, 2011

Yes. Will do soon.

On Tuesday, October 4, 2011 at 5:32 PM, Ask Bjørn Hansen wrote:

Can you add some tests and then make a pull request?

Reply to this email directly or view it on GitHub:
#1 (comment)

@abh abh closed this as completed in ab8f27f Oct 5, 2011
@abh
Copy link
Contributor Author

abh commented Oct 5, 2011

Hi Chris,

I changed the spaces to tabs and then squash merged it in so the history is clean. I "faked" the commit coming from you so you get credit in the history. :-)

@mrcwinn
Copy link
Contributor

mrcwinn commented Oct 5, 2011

Thanks! I'll save you that step in future commits.

On Wednesday, October 5, 2011 at 2:47 PM, Ask Bjørn Hansen wrote:

Hi Chris,

I changed the spaces to tabs and then squash merged it in so the history is clean. I "faked" the commit coming from you so you get credit in the history. :-)

Reply to this email directly or view it on GitHub:
#1 (comment)

abh pushed a commit that referenced this issue Jul 15, 2013
padolsey pushed a commit that referenced this issue Oct 8, 2013
…d Customer data obj or via stripe.customers.{...}Card). See #1.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants