mattsta / stripe-erlang

Erlang interface to the stripe.com API
27 stars 23 forks source link

Fix eunit tests and transfer_create function #6

Closed jaredmorrow closed 9 years ago

jaredmorrow commented 9 years ago

Several unit tests were failing when I attempted to use the library. These failures came down to really two errors:

  1. The Stripe API documentation for create transfer has a field for statement_descriptor rather than statement_description
  2. If no card cvc check is sent, the API will return "unchecked" rather than "Not Returned by API"
mattsta commented 9 years ago

Thanks! Your changes are now merged and in the next version (released now too).

Stripe updated their API recently and broke our interface/tests:

2014-12-17

The statement_description parameter on charges, invoices, transfers, and plans is now deprecated in favor of the statement_descriptor parameter, which allows you to specify the full descriptor that appears on your customer’s statement for the transaction. Specifying statement_descriptor without upgrading to this API version will still prepend your account’s statement descriptor to the transaction’s statement descriptor.

2014-12-22

The customer field is no longer included on the Card object that appears on the Token object.

The unchecked value for cvc_check, address_line1_check, and address_zip_check now means that we have not yet checked these fields on the card. The fields will be checked once a card is charged or added to a customer and validated. What was previously unchecked, which is when your customer’s bank does not support a particular check, is now represented as unavailable.