activemerchant-est 1.4.2.5 → 1.4.2.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,116 @@
1
+ = Active Merchant
2
+
3
+ Original active merchant project without the Estonian bank links support can be found {here}[http://activemerchant.org]
4
+
5
+
6
+ Banklink implementations for the following Estonian banks:
7
+ * {SEB}[http://www.seb.ee/index/130212050205]
8
+ * {Swedbank}[https://www.swedbank.ee/business/d2d/collection/banklink?language=ENG]
9
+ * {Sampo Pank}[http://www.sampopank.ee/en/25672.html]
10
+
11
+
12
+ == Notes
13
+ * SEB works fine (UTF-8).
14
+ * Swedbank works fine (ISO-8859-1). The documentation says it should support UTF-8 too, but I wasn't able to get it work.
15
+ * Sampo Pank is not tested yet. Any feedback would be appreciated, should you test it.
16
+
17
+
18
+ == Download
19
+
20
+ Currently this library is available with git from:
21
+
22
+ git://github.com/innu/active_merchant.git
23
+
24
+
25
+ == Installation
26
+
27
+ === Rails 2.*
28
+
29
+ Add activemerchant-est to your config/environment.rb and install it
30
+ config.gem "activemerchant-est", :lib => "active_merchant", :source => "http://gemcutter.org"
31
+ > rake gems:install
32
+
33
+ === Rails 3
34
+
35
+ Add activemerchant-est to your Gemfile and install it
36
+ gem "activemerchant-est", :require_as => "active_merchant"
37
+ > gem bundle
38
+
39
+
40
+ == Sample Usage
41
+
42
+ === SEB
43
+
44
+ Configuration:
45
+ ActiveMerchant::Billing::Integrations::SebEst.bank_certificate = File.read("cert")
46
+ ActiveMerchant::Billing::Integrations::SebEst.private_key = File.read("keyfile")
47
+ ActiveMerchant::Billing::Integrations::SebEst.production_url = "https://www.seb.ee/cgi-bin/unet3.sh/un3min.r"
48
+
49
+ The syntax of the helper
50
+ * The order_id parameter is a random id referencing the transaction (VK_STAMP)
51
+ * The account_id parameter is a id given to you from the bank (VK_SND_ID)
52
+ * The notify_url is the URL that the bank will send its responses.
53
+
54
+ <% payment_service_for order_id, account_id,
55
+ :amount => 50.00,
56
+ :service => :seb_est do |service| %>
57
+
58
+ <% service.notify_url url_for(:action => "notify", :only_path => false) %>
59
+ <% service.cancel_return_url "http://mystore.com" %>
60
+ <% end %>
61
+
62
+ You can handle the notification in your controller action as follows:
63
+ class NotificationController < ApplicationController
64
+ include ActiveMerchant::Billing::Integrations
65
+
66
+ def notify
67
+ # Notification class is automatically fetched based on the request parameters.
68
+ notify = Pizza::Notification.get_notification(params)
69
+
70
+ if notify.acknowledge
71
+ ... process order ... if notify.complete?
72
+ else
73
+ ... log possible hacking attempt ...
74
+ end
75
+ end
76
+ end
77
+
78
+ === Swedbank
79
+
80
+ Configuration:
81
+ ActiveMerchant::Billing::Integrations::SwedbankEst.bank_certificate = File.read("cert")
82
+ ActiveMerchant::Billing::Integrations::SwedbankEst.private_key = File.read("keyfile")
83
+ ActiveMerchant::Billing::Integrations::SwedbankEst.production_url = "https://www.swedbank.ee/banklink"
84
+
85
+ The syntax of the helper
86
+ * The order_id parameter is a random id referencing the transaction (VK_STAMP)
87
+ * The account_id parameter is a id given to you from the bank (VK_SND_ID)
88
+ * The notify_url is the URL that the bank will send its responses.
89
+
90
+ <% payment_service_for order_id, account_id,
91
+ :amount => 50.00,
92
+ :service => :swedbank_est do |service| %>
93
+
94
+ <% service.notify_url url_for(:action => "notify", :only_path => false) %>
95
+ <% service.cancel_return_url "http://mystore.com" %>
96
+ <% end %>
97
+
98
+ === Sampo Pank
99
+
100
+ Configuration:
101
+ ActiveMerchant::Billing::Integrations::SampoEst.bank_certificate = File.read("cert")
102
+ ActiveMerchant::Billing::Integrations::SampoEst.private_key = File.read("keyfile")
103
+ ActiveMerchant::Billing::Integrations::SampoEst.production_url = ""
104
+
105
+ The syntax of the helper
106
+ * The order_id parameter is a random id referencing the transaction (VK_STAMP)
107
+ * The account_id parameter is a id given to you from the bank (VK_SND_ID)
108
+ * The notify_url is the URL that the bank will send its responses.
109
+
110
+ <% payment_service_for order_id, account_id,
111
+ :amount => 50.00,
112
+ :service => :sampo_est do |service| %>
113
+
114
+ <% service.notify_url url_for(:action => "notify", :only_path => false) %>
115
+ <% service.cancel_return_url "http://mystore.com" %>
116
+ <% end %>
data/Rakefile CHANGED
@@ -8,7 +8,7 @@ require 'active_support'
8
8
  require File.join(File.dirname(__FILE__), 'lib', 'support', 'gateway_support')
9
9
 
10
10
 
11
- PKG_VERSION = "1.4.2.5"
11
+ PKG_VERSION = "1.4.2.6"
12
12
  PKG_NAME = "activemerchant-est"
13
13
  PKG_FILE_NAME = "#{PKG_NAME}-#{PKG_VERSION}"
14
14
 
@@ -7,7 +7,7 @@ module ActiveMerchant #:nodoc:
7
7
  include Pizza::Helper
8
8
 
9
9
  def vk_charset
10
- 'UTF-8'
10
+ 'ISO-8859-1'
11
11
  end
12
12
 
13
13
  def vk_charset_param
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemerchant-est
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.2.5
4
+ version: 1.4.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Luetke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain:
11
11
  - gem-public_cert.pem
12
- date: 2010-01-17 00:00:00 +02:00
12
+ date: 2010-02-13 00:00:00 +02:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -355,9 +355,9 @@ files:
355
355
  - script/generate
356
356
  - gem-public_cert.pem
357
357
  - MIT-LICENSE
358
- - README
359
358
  - CHANGELOG
360
359
  - CONTRIBUTORS
360
+ - README.rdoc
361
361
  - init.rb
362
362
  - Rakefile
363
363
  has_rdoc: true
data/README DELETED
@@ -1,136 +0,0 @@
1
- = Active Merchant
2
-
3
- This library is supposed to aid in creating e-commerce software in Ruby.
4
- In the future we want to support all "good" payment gateways.
5
-
6
- This library is the foundation of commerce for http://www.shopify.com.
7
-
8
- Please visit the {ActiveMerchant homepage}[http://activemerchant.org] for more resources, tutorials and other information about this project.
9
-
10
- == Supported Direct Payment Gateways
11
-
12
- The {ActiveMerchant Wiki}[http://github.com/Shopify/active_merchant/wikis] contains a {table of features supported by each gateway}[http://github.com/Shopify/active_merchant/wikis/gatewayfeaturematrix].
13
-
14
- * {Authorize.Net CIM}[http://www.authorize.net/] - US
15
- * {Authorize.Net}[http://www.authorize.net/] - US
16
- * {Beanstream.com}[http://www.beanstream.com/] - CA
17
- * {Braintree}[http://www.braintreepaymentsolutions.com] - US
18
- * {CardStream}[http://www.cardstream.com/] - GB
19
- * {CyberSource}[http://www.cybersource.com] - US
20
- * {DataCash}[http://www.datacash.com/] - GB
21
- * {Efsnet}[http://www.concordefsnet.com/] - US
22
- * {eWAY}[http://www.eway.com.au/] - AU
23
- * {E-xact}[http://www.e-xact.com] - CA, US
24
- * {LinkPoint}[http://www.linkpoint.com/] - US
25
- * {Merchant e-Solutions}[http://merchante-solutions.com/] - US
26
- * {Modern Payments}[http://www.modpay.com] - US
27
- * {Moneris}[http://www.moneris.com/] - CA
28
- * {NetRegistry}[http://www.netregistry.com.au] - AU
29
- * {NELiX TransaX Gateway}[http://www.nelixtransax.com] - US
30
- * {NETbilling}[http://www.netbilling.com] - US
31
- * {PayJunction}[http://www.payjunction.com/] - US
32
- * {PaySecure}[http://www.commsecure.com.au/paysecure.shtml] - AU
33
- * {PayPal Express Checkout}[https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside] - US, CA, SG, AU
34
- * {PayPal Payflow Pro}[https://www.paypal.com/cgi-bin/webscr?cmd=_payflow-pro-overview-outside] - US, CA, SG, AU
35
- * {PayPal Website Payments Pro (UK)}[https://www.paypal.com/uk/cgi-bin/webscr?cmd=_wp-pro-overview-outside] - GB
36
- * {PaymentExpress}[http://www.paymentexpress.com/] - AU, MY, NZ, SG, ZA, GB, US
37
- * {PayPal Website Payments Pro (CA)}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside] - CA
38
- * {PayPal Express Checkout}[https://www.paypal.com/cgi-bin/webscr?cmd=xpt/merchant/ExpressCheckoutIntro-outside] - US
39
- * {PayPal Website Payments Pro (US)}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-pro-overview-outside] - US
40
- * {Plug'n Pay}[http://www.plugnpay.com/] - US
41
- * {Protx}[http://www.protx.com] - GB
42
- * {Psigate}[http://www.psigate.com/] - CA
43
- * {PSL Payment Solutions}[http://www.paymentsolutionsltd.com/] - GB
44
- * {Quickpay}[http://quickpay.dk/] - DK
45
- * {Realex}[http://www.realexpayments.com/] - IE, GB
46
- * {Sage Payment Solutions}[http://www.sagepayments.com] - US, CA
47
- * {Sallie Mae}[http://www.salliemae.com] - US
48
- * {SecurePay}[http://securepay.com.au] - AU
49
- * {SecurePay}[http://www.securepay.com/] - US
50
- * {SecurePayTech}[http://www.securepaytech.com/] - NZ
51
- * {SkipJack}[http://www.skipjack.com/] - US, CA
52
- * {TransFirst}[http://www.transfirst.com/] - US
53
- * {TrustCommerce}[http://www.trustcommerce.com/] - US
54
- * {USA ePay}[http://www.usaepay.com/] - US
55
- * {Verifi}[http://www.verifi.com/] - US
56
- * {ViaKLIX}[http://viaklix.com] - US
57
- * {Wirecard}[http://www.wirecard.com] - DE
58
-
59
- == Supported Offsite Payment Gateways
60
-
61
- * {PayPal Website Payments Standard}[https://www.paypal.com/cgi-bin/webscr?cmd=_wp-standard-overview-outside]
62
- * Chronopay[http://www.chronopay.com]
63
- * Nochex[http://www.nochex.com]
64
- * {Banca Sella GestPay}[https://www.sella.it/banca/ecommerce/gestpay/gestpay.jsp]
65
- * {2 Checkout}[http://www.2checkout.com]
66
- * {HiTRUST}[http://www.hitrust.com.hk/]
67
-
68
- == Download
69
-
70
- Currently this library is available with git from:
71
-
72
- git://github.com/Shopify/active_merchant.git
73
-
74
- == Installation
75
-
76
- === From Git
77
-
78
- You can check out the latest source from git:
79
-
80
- > git pull git://github.com/Shopify/active_merchant.git
81
-
82
- === As a Rails plugin
83
-
84
- ActiveMerchant includes an init.rb file. This means that Rails will automatically load ActiveMerchant on startup. Run the following command from the root directory of your Rails project to install ActiveMerchant as a Rails plugin:
85
-
86
- > ./script/plugin install git://github.com/Shopify/active_merchant.git
87
-
88
- === From Ruby Gems
89
-
90
- Installation from RubyGems
91
-
92
- > gem install activemerchant
93
-
94
- == Sample Usage
95
- require 'rubygems'
96
- require 'active_merchant'
97
-
98
- # Use the TrustCommerce test servers
99
- ActiveMerchant::Billing::Base.mode = :test
100
-
101
- # ActiveMerchant accepts all amounts as Integer values in cents
102
- # $10.00
103
- amount = 1000
104
-
105
- # The card verification value is also known as CVV2, CVC2, or CID
106
- credit_card = ActiveMerchant::Billing::CreditCard.new(
107
- :first_name => 'Bob',
108
- :last_name => 'Bobsen',
109
- :number => '4242424242424242',
110
- :month => '8',
111
- :year => '2012',
112
- :verification_value => '123'
113
- )
114
-
115
- # Validating the card automatically detects the card type
116
- if credit_card.valid?
117
-
118
- # Create a gateway object for the TrustCommerce service
119
- gateway = ActiveMerchant::Billing::TrustCommerceGateway.new(
120
- :login => 'TestMerchant',
121
- :password => 'password'
122
- )
123
-
124
- # Authorize for the amount
125
- response = gateway.purchase(amount, credit_card)
126
-
127
- if response.success?
128
- puts "Successfully charged $#{sprintf("%.2f", amount / 100)} to the credit card #{credit_card.display_number}"
129
- else
130
- raise StandardError, response.message
131
- end
132
- end
133
-
134
- == Contributing
135
-
136
- Please see the {ActiveMerchant Guide to Contributing}[http://github.com/Shopify/active_merchant/wikis/contributing] for information on adding a new gateway to ActiveMerchant.