beanstream 1.0.0.rc2 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +42 -1
  3. data/beanstream.gemspec +2 -2
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6c9a72d6147bf8de094eb500954634b6ce9585a3
4
- data.tar.gz: bf87fd124feaa654a9dd0f24a9007889b4795877
3
+ metadata.gz: 20032b53cd488334bc254b8edbb4942a82bfe51a
4
+ data.tar.gz: 2c4ced586adeb492c02e6e6209871c536c31a057
5
5
  SHA512:
6
- metadata.gz: 91b68de4e5d298b720e98b82fbf2d87aab88d7b6e7e3dfa34a361e540a3816319ee25ec9192d7bfdfb7030af76258b607d163b74f91e398b86467079b89ce5a6
7
- data.tar.gz: 864d5dcb81d8e90ab79079d0426d4c70bf93fd1c318abafca33af0d030bae12693d1e7ad2354f0fb9a8e46ad7914f93655fe6f7562924b57b7d1264d45b551a8
6
+ metadata.gz: eadd489c34dae2f2d9d84d99c7176bb807e3912d9332ae95df3b62471f965bfd1f8d935624f30d83bf26b9492d8bf40c759808bb2c376b11b144ff1e2c86ae2b
7
+ data.tar.gz: 7e34770231bda8dce79e5bf6326007b9c53c7cbcd5483e06b4d1e3adcca2c318fc6979d2a8b6313ed1ecd43a6ccd4ba5d20d92cf7ced21f0b52ff8ff38869eca
data/README.md CHANGED
@@ -1,4 +1,45 @@
1
1
  # Beanstream's Ruby SDK
2
- **NOTE! This SDK is currently under development and is not rated for production use.**
2
+
3
+ Integration with Beanstream’s payments gateway is a simple, flexible solution.
4
+
5
+ You can choose between a straightforward payment requiring very few parameters; or, you can customize a feature-rich integration.
6
+
7
+ To assist as a centralized record of all your sales, we also accept cash and cheque transactions.
8
+
9
+ For very detailed information on the Payments API, look at the Beanstream developer portal's [documentation](http://developer.beanstream.com/documentation/take-payments/purchases-pre-authorizations/).
10
+
11
+ # Setup
12
+ To install the SDK you just need to simply install the gem file:
13
+ ```
14
+ gem install beanstream --pre
15
+ ```
16
+
17
+ # Code Sample
18
+ Take a credit card Payment:
19
+ ```ruby
20
+ begin
21
+ result = Beanstream.PaymentsAPI.make_payment(
22
+ {
23
+ :order_number => PaymentsAPI.generateRandomOrderId("test"),
24
+ :amount => 100,
25
+ :payment_method => PaymentMethods::CARD,
26
+ :card => {
27
+ :name => "Mr. Card Testerson",
28
+ :number => "4030000010001234",
29
+ :expiry_month => "07",
30
+ :expiry_year => "22",
31
+ :cvd => "123",
32
+ :complete => true
33
+ }
34
+ })
35
+ puts "Success! TransactionID: #{result['id']}"
36
+
37
+ rescue BeanstreamException => ex
38
+ puts "Exception: #{ex.user_facing_message}"
39
+ end
40
+ ```
3
41
 
4
42
  If you would like to contribute to it and earn some cash from our code bounty program please contact bowens@beanstream.com
43
+
44
+ # Reporting Issues
45
+ Found a bug or want a feature improvement? Create a new Issue here on the github page, or email Beanstream support support@beanstream.com
data/beanstream.gemspec CHANGED
@@ -3,8 +3,8 @@
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = 'beanstream'
6
- s.version = '1.0.0.rc2'
7
- s.date = '2015-08-21'
6
+ s.version = '1.0.0'
7
+ s.date = '2015-11-19'
8
8
  s.summary = "Beanstream Ruby SDK"
9
9
  s.description = "Accept payments using Beanstream and Ruby"
10
10
  s.authors = ["Brent Owens", "Colin Walker", "Tom Mengda"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.rc2
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brent Owens
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2015-08-21 00:00:00.000000000 Z
13
+ date: 2015-11-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rest-client
@@ -122,9 +122,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
122
  version: '0'
123
123
  required_rubygems_version: !ruby/object:Gem::Requirement
124
124
  requirements:
125
- - - '>'
125
+ - - '>='
126
126
  - !ruby/object:Gem::Version
127
- version: 1.3.1
127
+ version: '0'
128
128
  requirements: []
129
129
  rubyforge_project:
130
130
  rubygems_version: 2.0.14