Skip to content
Browse files

Expand the documentation.

  • Loading branch information...
1 parent 1f938fd commit 6548d5a7c42850bfca95c0b1b5eef4b3aa10618f @Manfred Manfred committed
Showing with 23 additions and 2 deletions.
  1. +23 −2 README.md
View
25 README.md
@@ -5,5 +5,26 @@ A Ruby client that allows you to do iDEAL transactions through the [Mollie iDEAL
$ gem install supreme
## Examples
-
- Supreme.api.bank_list #=> [["ABN AMRO", "0031"], ["Postbank", "0721"], ["Rabobank", "0021"]]
+
+ # Mode is either :test or :live, by default it's :test
+ Supreme.mode = :test
+
+ Supreme.api.bank_list #=> [["ABN AMRO", "0031"], ["Postbank", "0721"], ["Rabobank", "0021"]]
+
+ transaction = Supreme.api.fetch({
+ :partner_id => '000000',
+ :bank_id => '0031',
+ :amount => 1299,
+ :description => 'A fluffy bunny',
+ :return_url => 'http://example.com/payments/as45re/thanks',
+ :report_url => 'http://example.com/payments/as45re'
+ })
+
+ transaction.transaction_id #=> '482d599bbcc7795727650330ad65fe9b'
+
+You will receive a GET on the report_url with a ‘transaction_id’ parameter to indicate that the transaction has changed state. You will need to check the status of the transaction.
+
+ status = Supreme.api.status({
+ :partner_id => '000000',
+ :transaction_id => '482d599bbcc7795727650330ad65fe9b'
+ })

0 comments on commit 6548d5a

Please sign in to comment.
Something went wrong with that request. Please try again.