Skip to content

Instantly share code, notes, and snippets.

@mjallday
Created December 3, 2013 19:00
Show Gist options
  • Select an option

  • Save mjallday/7775379 to your computer and use it in GitHub Desktop.

Select an option

Save mjallday/7775379 to your computer and use it in GitHub Desktop.
CHANGELOG 1.0 -> 1.1
  • Cards can be charged without being associated to a customer
  • Transactions are now created via the funding instrument, not via the customer. E.g. card.debit(amount), bank_account.credit(amount) is now favoured over customer.debit(card, amount)
  • Failing to create a transaction will result in a transaction being created with a FAILED state. E.g. debiting a card with insufficient funds will result in a transaction with a FAILED state. These are filtered out of the API by default but can be specifically retrieved with a state filter e.g. /credits?state=failed
  • A new resource called "Orders" has been created to allow grouping transactions. An Order can consist of 0:n buyers, 0:n debits and 0:n credits to a single seller. Each debit associated with an Order will result in the Order's escrow balance accruing the value of the debit rather than the marketplace's escrow balance. You cannot pay out more than the total amount escrowed for an Order.
  • Accounts no longer exist, customers and orders are the primary grouping constructs for transactions, customers are the primary grouping construct for funding instruments.
  • Funding instruments can be tokenized without specifying the marketplace, performing an authenticated GET on the tokenized funding instrument will automatically associate it to your marketplace.
@mahmoudimus
Copy link
Copy Markdown

state is status

@mahmoudimus
Copy link
Copy Markdown

Don't the funding instruments have an expiration?

@matin
Copy link
Copy Markdown

matin commented Dec 13, 2013

What is the purpose of this?

Would you also create a migration guide with code snippets?

@mjallday
Copy link
Copy Markdown
Author

@mahmoudimus - expiration is 60 minutes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment