adyen-ruby-api-library 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (142) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +13 -0
  3. data/.travis.yml +14 -0
  4. data/Gemfile +12 -0
  5. data/LICENSE +21 -0
  6. data/README.md +140 -0
  7. data/Rakefile +6 -0
  8. data/adyen-ruby-api-library.gemspec +28 -0
  9. data/bin/console +13 -0
  10. data/bin/setup +8 -0
  11. data/docs/checkout.html +111 -0
  12. data/docs/index.html +50 -0
  13. data/docs/install-library.html +61 -0
  14. data/docs/javascripts/prism.js +5 -0
  15. data/docs/javascripts/scale.fix.js +17 -0
  16. data/docs/marketpay.html +169 -0
  17. data/docs/params.json +1 -0
  18. data/docs/payment.html +106 -0
  19. data/docs/payout.html +135 -0
  20. data/docs/recurring.html +113 -0
  21. data/docs/stylesheets/github-light.css +115 -0
  22. data/docs/stylesheets/prism.css +140 -0
  23. data/docs/stylesheets/styles.css +324 -0
  24. data/docs/using-library.html +67 -0
  25. data/lib/adyen-ruby-api-library.rb +21 -0
  26. data/lib/adyen/client.rb +174 -0
  27. data/lib/adyen/errors.rb +76 -0
  28. data/lib/adyen/services/checkout.rb +50 -0
  29. data/lib/adyen/services/checkout_utility.rb +16 -0
  30. data/lib/adyen/services/marketpay.rb +92 -0
  31. data/lib/adyen/services/payments.rb +23 -0
  32. data/lib/adyen/services/payouts.rb +21 -0
  33. data/lib/adyen/services/recurring.rb +19 -0
  34. data/lib/adyen/services/service.rb +19 -0
  35. data/lib/adyen/version.rb +4 -0
  36. data/spec/account_spec.rb +27 -0
  37. data/spec/checkout_spec.rb +94 -0
  38. data/spec/checkout_utility_spec.rb +27 -0
  39. data/spec/client_spec.rb +40 -0
  40. data/spec/fund_spec.rb +19 -0
  41. data/spec/mocks/requests/Account/close_account.json +3 -0
  42. data/spec/mocks/requests/Account/close_account_holder.json +3 -0
  43. data/spec/mocks/requests/Account/create_account.json +3 -0
  44. data/spec/mocks/requests/Account/create_account_holder.json +15 -0
  45. data/spec/mocks/requests/Account/delete_bank_accounts.json +6 -0
  46. data/spec/mocks/requests/Account/delete_shareholders.json +6 -0
  47. data/spec/mocks/requests/Account/get_account_holder.json +3 -0
  48. data/spec/mocks/requests/Account/get_uploaded_documents.json +4 -0
  49. data/spec/mocks/requests/Account/suspend_account_holder.json +3 -0
  50. data/spec/mocks/requests/Account/un_suspend_account_holder.json +3 -0
  51. data/spec/mocks/requests/Account/update_account.json +7 -0
  52. data/spec/mocks/requests/Account/update_account_holder.json +33 -0
  53. data/spec/mocks/requests/Account/update_account_holder_state.json +6 -0
  54. data/spec/mocks/requests/Account/upload_document.json +9 -0
  55. data/spec/mocks/requests/Checkout/payment-details.json +18 -0
  56. data/spec/mocks/requests/Checkout/payment-result.json +3 -0
  57. data/spec/mocks/requests/Checkout/payment_methods.json +3 -0
  58. data/spec/mocks/requests/Checkout/payment_session.json +15 -0
  59. data/spec/mocks/requests/Checkout/payments.json +17 -0
  60. data/spec/mocks/requests/Checkout/verify.json +3 -0
  61. data/spec/mocks/requests/CheckoutUtility/origin_keys.json +7 -0
  62. data/spec/mocks/requests/Fund/account_holder_balance.json +3 -0
  63. data/spec/mocks/requests/Fund/account_holder_transaction_list.json +16 -0
  64. data/spec/mocks/requests/Fund/payout_account_holder.json +10 -0
  65. data/spec/mocks/requests/Fund/refund_not_paid_out_transfers.json +4 -0
  66. data/spec/mocks/requests/Fund/setup_beneficiary.json +5 -0
  67. data/spec/mocks/requests/Fund/transfer_funds.json +9 -0
  68. data/spec/mocks/requests/Notification/create_notification_configuration.json +20 -0
  69. data/spec/mocks/requests/Notification/delete_notification_configurations.json +6 -0
  70. data/spec/mocks/requests/Notification/get_notification_configuration.json +3 -0
  71. data/spec/mocks/requests/Notification/get_notification_configuration_list.json +1 -0
  72. data/spec/mocks/requests/Notification/test_notification_configuration.json +4 -0
  73. data/spec/mocks/requests/Notification/update_notification_configuration.json +26 -0
  74. data/spec/mocks/requests/Payment/adjust_authorisation.json +12 -0
  75. data/spec/mocks/requests/Payment/authorise.json +28 -0
  76. data/spec/mocks/requests/Payment/authorise3d.json +6 -0
  77. data/spec/mocks/requests/Payment/cancel.json +4 -0
  78. data/spec/mocks/requests/Payment/cancel_or_refund.json +4 -0
  79. data/spec/mocks/requests/Payment/capture.json +8 -0
  80. data/spec/mocks/requests/Payment/refund.json +8 -0
  81. data/spec/mocks/requests/Payout/confirm_third_party.json +4 -0
  82. data/spec/mocks/requests/Payout/decline_third_party.json +4 -0
  83. data/spec/mocks/requests/Payout/store_detail.json +33 -0
  84. data/spec/mocks/requests/Payout/store_detail_and_submit_third_party.json +33 -0
  85. data/spec/mocks/requests/Payout/submit_third_party.json +22 -0
  86. data/spec/mocks/requests/Recurring/disable.json +5 -0
  87. data/spec/mocks/requests/Recurring/list_recurring_details.json +4 -0
  88. data/spec/mocks/requests/Recurring/store_token.json +15 -0
  89. data/spec/mocks/responses/Account/close_account.json +5 -0
  90. data/spec/mocks/responses/Account/close_account_holder.json +7 -0
  91. data/spec/mocks/responses/Account/create_account.json +7 -0
  92. data/spec/mocks/responses/Account/create_account_holder.json +116 -0
  93. data/spec/mocks/responses/Account/delete_bank_accounts.json +4 -0
  94. data/spec/mocks/responses/Account/delete_shareholders.json +4 -0
  95. data/spec/mocks/responses/Account/get_account_holder.json +71 -0
  96. data/spec/mocks/responses/Account/get_uploaded_documents.json +16 -0
  97. data/spec/mocks/responses/Account/suspend_account_holder.json +24 -0
  98. data/spec/mocks/responses/Account/un_suspend_account_holder.json +24 -0
  99. data/spec/mocks/responses/Account/update_account.json +9 -0
  100. data/spec/mocks/responses/Account/update_account_holder.json +95 -0
  101. data/spec/mocks/responses/Account/update_account_holder_state.json +27 -0
  102. data/spec/mocks/responses/Account/upload_document.json +77 -0
  103. data/spec/mocks/responses/Checkout/payment-details.json +14 -0
  104. data/spec/mocks/responses/Checkout/payment-result.json +4 -0
  105. data/spec/mocks/responses/Checkout/payment_methods.json +66 -0
  106. data/spec/mocks/responses/Checkout/payment_session.json +572 -0
  107. data/spec/mocks/responses/Checkout/payments.json +95 -0
  108. data/spec/mocks/responses/Checkout/verify.json +121 -0
  109. data/spec/mocks/responses/CheckoutUtility/origin_keys.json +7 -0
  110. data/spec/mocks/responses/Fund/account_holder_balance.json +47 -0
  111. data/spec/mocks/responses/Fund/account_holder_transaction_list.json +73 -0
  112. data/spec/mocks/responses/Fund/payout_account_holder.json +6 -0
  113. data/spec/mocks/responses/Fund/refund_not_paid_out_transfers.json +5 -0
  114. data/spec/mocks/responses/Fund/setup_beneficiary.json +5 -0
  115. data/spec/mocks/responses/Fund/transfer_funds.json +6 -0
  116. data/spec/mocks/responses/Notification/create_notification_configuration.json +41 -0
  117. data/spec/mocks/responses/Notification/delete_notification_configurations.json +23 -0
  118. data/spec/mocks/responses/Notification/get_notification_configuration.json +41 -0
  119. data/spec/mocks/responses/Notification/get_notification_configuration_list.json +65 -0
  120. data/spec/mocks/responses/Notification/test_notification_configuration.json +49 -0
  121. data/spec/mocks/responses/Notification/update_notification_configuration.json +47 -0
  122. data/spec/mocks/responses/Payment/adjust_authorisation.json +4 -0
  123. data/spec/mocks/responses/Payment/authorise.json +95 -0
  124. data/spec/mocks/responses/Payment/authorise3d.json +30 -0
  125. data/spec/mocks/responses/Payment/cancel.json +4 -0
  126. data/spec/mocks/responses/Payment/cancel_or_refund.json +4 -0
  127. data/spec/mocks/responses/Payment/capture.json +4 -0
  128. data/spec/mocks/responses/Payment/refund.json +4 -0
  129. data/spec/mocks/responses/Payout/confirm_third_party.json +4 -0
  130. data/spec/mocks/responses/Payout/decline_third_party.json +4 -0
  131. data/spec/mocks/responses/Payout/store_detail.json +5 -0
  132. data/spec/mocks/responses/Payout/store_detail_and_submit_third_party.json +8 -0
  133. data/spec/mocks/responses/Payout/submit_third_party.json +8 -0
  134. data/spec/mocks/responses/Recurring/disable.json +30 -0
  135. data/spec/mocks/responses/Recurring/list_recurring_details.json +62 -0
  136. data/spec/mocks/responses/Recurring/store_token.json +7 -0
  137. data/spec/notification_spec.rb +19 -0
  138. data/spec/payments_spec.rb +20 -0
  139. data/spec/payouts_spec.rb +18 -0
  140. data/spec/recurring_spec.rb +17 -0
  141. data/spec/spec_helper.rb +94 -0
  142. metadata +246 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: c1e232c26570c84897b5c8489e97d13be2a80eb8e93938d4bed2de7ff6eb0461
4
+ data.tar.gz: e4ce5d02812ec19be6dd485b3fc0813d6702f6c8ff1815cd559224b4a85e895a
5
+ SHA512:
6
+ metadata.gz: bf9bfbbd60354a4c2c8dfdfb39a21d40036968d71cfe3fd74f9052ebcf1315f091713c1615e9cf69c272977c46a708998b045b726a7c06d9c185bd8459c6d88f
7
+ data.tar.gz: 6d0e48db6cfc3eca5c316a06af595416e5874884e389f97b6bca7ca596098c2d3024b0dcf9cadcfcfe9537d9298d79df86f6a4996b1687bc0a3326fba89db683
@@ -0,0 +1,13 @@
1
+ design.txt
2
+ /Gemfile.lock
3
+ *.gem
4
+
5
+ # VSCode
6
+ .vs
7
+ *.code-workspace
8
+
9
+ .rspec
10
+ .rspec_status
11
+
12
+ .bundle
13
+ .ruby-version
@@ -0,0 +1,14 @@
1
+ sudo: false
2
+ language: ruby
3
+
4
+ rvm:
5
+ - 2.5
6
+ - 2.4
7
+ - 2.3
8
+ - 2.2
9
+ - 2.1
10
+
11
+ notifications:
12
+ email: false
13
+
14
+ script: bundle exec rspec
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ ruby "> 2.1.0"
6
+
7
+ gem "faraday"
8
+
9
+ gem "bundler", :group => :development
10
+ gem "webmock", :group => :development
11
+ gem "rspec", :group => :development
12
+ gem "activesupport", :group => :development
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2018 Adyen
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,140 @@
1
+ # Adyen API Library for Ruby
2
+
3
+ The Adyen API Library for Ruby lets you easily work with Adyen's API.
4
+
5
+ ## Integration
6
+
7
+ The Library supports all APIs under the following services:
8
+
9
+ * checkout
10
+ * checkout utility
11
+ * payments
12
+ * modifications
13
+ * payouts
14
+ * recurring
15
+ * marketpay
16
+
17
+ ## Requirements
18
+
19
+ Built for Ruby >= 2.1
20
+
21
+ ## Installation
22
+
23
+ The sole dependency is faraday for http communication - run `bundle install` to install faraday if you don't already have it
24
+
25
+ To validate functionality of client, use `bundle install --with development` and `rspec` to run mock API tests.
26
+
27
+ ## Documentation
28
+
29
+ Follow the rest of our guides from the [documentation](https://adyen.github.io/adyen-ruby-api-library/) on how to use this library.
30
+
31
+ ## Usage
32
+
33
+ ### Create a client to connect to the Adyen API
34
+ ```ruby
35
+ require 'adyen-ruby-api-library'
36
+
37
+ adyen = Adyen::Client.new
38
+
39
+ # for API-key based implementations
40
+ adyen.api_key = 'AF5XXXXXXXXXXXXXXXXXXXX'
41
+
42
+ # for basic-auth based implementations
43
+ adyen.ws_user = 'ws@Company.Adyen'
44
+ adyen.ws_password = 'super_secure_password123'
45
+ ```
46
+
47
+ ### Make a Payment
48
+ ```ruby
49
+ response = adyen.checkout.payments({
50
+ :amount => {
51
+ :currency => "EUR",
52
+ :value => 1000
53
+ },
54
+ :reference => "Your order number",
55
+ :paymentMethod => {
56
+ :type => "scheme",
57
+ :encryptedCardNumber => "adyenjs_0_1_18$MT6ppy0FAMVMLH...",
58
+ :encryptedExpiryMonth => "adyenjs_0_1_18$MT6ppy0FAMVMLH...",
59
+ :encryptedExpiryYear => "adyenjs_0_1_18$MT6ppy0FAMVMLH...",
60
+ :encryptedSecurityCode => "adyenjs_0_1_18$MT6ppy0FAMVMLH..."
61
+ },
62
+ :returnUrl => "https://your-company.com/checkout/",
63
+ :merchantAccount => "YourMerchantAccount"
64
+ })
65
+ ```
66
+
67
+ ## List of supported methods
68
+
69
+ **checkout:**
70
+ - payment_session
71
+ - payments.result
72
+ - payment_methods
73
+ - payments
74
+ - payments.details
75
+
76
+ **checkout utility:**
77
+ - origin_keys
78
+
79
+ **payments:**
80
+ - authorise
81
+ - authorise3d
82
+
83
+ **modifications:**
84
+ - capture
85
+ - cancel
86
+ - refund
87
+ - cancel_or_refund
88
+ - adjust_authorisation
89
+
90
+ **payouts:**
91
+ - confirm_third_party
92
+ - decline_third_party
93
+ - store_detail
94
+ - submit_third_party
95
+ - store_detail_and_submit_third_party
96
+
97
+ **recurring:**
98
+ - list_recurring_details
99
+ - disable
100
+ - store_token
101
+
102
+ **marketpay.account:**
103
+ - create_account_holder
104
+ - get_account_holder
105
+ - update_account_holder
106
+ - update_account_holder_state
107
+ - suspend_account_holder
108
+ - un_suspend_account_holder
109
+ - close_account_holder
110
+ - create_account
111
+ - update_account
112
+ - close_account
113
+ - upload_document
114
+ - get_uploaded_documents
115
+ - delete_bank_accounts
116
+ - delete_shareholders
117
+
118
+ **marketpay.fund:**
119
+ - account_holder_balance
120
+ - account_holder_transaction_list
121
+ - payout_account_holder
122
+ - transfer_funds
123
+ - setup_beneficiary
124
+ - refund_not_paid_out_transfers
125
+
126
+ **marketpay.notification:**
127
+ - create_notification_configuration
128
+ - get_notification_configuration
129
+ - get_notification_configuration_list
130
+ - test_notification_configuration
131
+ - update_notification_configuration
132
+ - delete_notification_configurations
133
+
134
+ ## Support
135
+
136
+ If you have any problems, questions or suggestions, create an issue here or send your inquiry to support@adyen.com.
137
+
138
+ ## Licence
139
+
140
+ MIT license. For more information, see the LICENSE file.
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,28 @@
1
+ require_relative 'lib/adyen/version'
2
+
3
+ Gem::Specification.new do |spec|
4
+ spec.name = 'adyen-ruby-api-library'
5
+ spec.version = Adyen::VERSION
6
+ spec.required_ruby_version = '>= 2.1.0'
7
+ spec.authors = ['Adyen']
8
+ spec.email = ['support@adyen.com']
9
+
10
+ spec.summary = 'Official Adyen Ruby API Library'
11
+ spec.description = 'Official Adyen API Library for Ruby. Simplifies integrating with the Adyen API, including Checkout, Marketpay, payments, recurring, and payouts. For support please reach out to support@adyen.com. If you would like to contribute please submit a comment or pull request at https://github.com/Adyen/adyen-ruby-api-library.'
12
+ spec.homepage = 'https://www.adyen.com'
13
+ spec.license = 'MIT'
14
+
15
+ spec.metadata = {
16
+ 'documentation_uri' => 'https://docs.adyen.com/developers/development-resources/libraries',
17
+ 'homepage_uri' => 'https://www.adyen.com',
18
+ 'source_code_uri' => 'https://github.com/Adyen/adyen-ruby-api-library'
19
+ }
20
+
21
+ spec.files = `git ls-files`.split("\n")
22
+
23
+ spec.add_dependency 'faraday'
24
+
25
+ spec.add_development_dependency 'bundler'
26
+ spec.add_development_dependency 'webmock'
27
+ spec.add_development_dependency 'activesupport'
28
+ end
@@ -0,0 +1,13 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require_relative "../lib/adyen.rb"
4
+
5
+ # You can add fixtures and/or initialization code here to make experimenting
6
+ # with your gem easier. You can also use a different console, if you like.
7
+
8
+ # (If you use this, don't forget to add pry to your Gemfile!)
9
+ # require "pry"
10
+ # Pry.start
11
+
12
+ require "irb"
13
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,111 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
6
+ <title>Adyen-ruby-api-library by Adyen</title>
7
+
8
+ <link rel="stylesheet" href="stylesheets/styles.css">
9
+ <link rel="stylesheet" href="stylesheets/github-light.css">
10
+ <meta name="viewport" content="width=device-width">
11
+
12
+ <link rel="stylesheet" href="stylesheets/prism.css">
13
+ <script src="javascripts/prism.js"></script>
14
+ <!--[if lt IE 9]>
15
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
16
+ <![endif]-->
17
+ </head>
18
+ <body>
19
+ <div class="wrapper">
20
+ <header>
21
+ <h1>Adyen-ruby-api-library</h1>
22
+ <p>Adyen API Library for ruby</p>
23
+
24
+ <p class="view"><a href="https://github.com/Adyen/adyen-ruby-api-library">View the Project on GitHub <small>Adyen/adyen-ruby-api-library</small></a></p>
25
+ <ul>
26
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library/zipball/master">Download <strong>ZIP File</strong></a></li>
27
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library/tarball/master">Download <strong>TAR Ball</strong></a></li>
28
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library">View On <strong>GitHub</strong></a></li>
29
+ </ul>
30
+ </header>
31
+ <section>
32
+ <h2 id="availablemethods">Available methods</h2>
33
+
34
+ <ul>
35
+ <li>payment_session</li>
36
+
37
+ <li>payments.result</li>
38
+
39
+ <li>payment_methods</li>
40
+
41
+ <li>payments</li>
42
+
43
+ <li>payments.details</li>
44
+ </ul>
45
+
46
+ <h2 id="authentication">Authentication</h2>
47
+
48
+ <p>Checkout is authenticated via api-key:
49
+ <pre><code class="ruby language-ruby">adyen.api_key = "AP5XXXXXXXXX"</code></pre></p>
50
+
51
+ <h2 id="usagecheckoutsdk">Usage - Checkout SDK</h2>
52
+
53
+ <p>Checkout SDK is a javascript library which loads an Adyen-hosted iframe into your website. Once loaded, it communicates directly with Adyen, abstracting away all server communication and lowering your PCI compliance load.</p>
54
+
55
+ <p>The front-end is described <a href="https://docs.adyen.com/developers/checkout/integrations-overview">here</a>
56
+ </p>
57
+
58
+ <p>To perform the initial paymentSession call to Adyen, call its method as below:</p>
59
+
60
+ <pre><code class="ruby language-ruby">response = adyen.checkout.paymentSession('{
61
+ "amount": {
62
+ "value": 1500,
63
+ "currency": "EUR"
64
+ },
65
+ "countryCode": "US",
66
+ "origin": "www.example.com",
67
+ "returnUrl": "www.example.com",
68
+ "reference": "Merchant Reference",
69
+ "merchantAccount": "TestMerchant"
70
+ }')</code></pre>
71
+
72
+ <p>Then send the response to the client-side javascript library to initialize the SDK.</p>
73
+
74
+ <h2 id="usagecheckoutapi">Usage - Checkout API</h2>
75
+
76
+ <p>Raw payment method details can be sent directly to Adyen through the Checkout API. For instance, to send raw credit card data you could use a request like the below:</p>
77
+
78
+ <pre><code class="ruby language-ruby">response = adyen.checkout.payments('{
79
+ "card": {
80
+ "number": "4111111111111111",
81
+ "expiryMonth": "8",
82
+ "expiryYear": "2018",
83
+ "cvc": "737",
84
+ "holderName": "John Smith"
85
+ },
86
+ "amount": {
87
+ "value": 1500,
88
+ "currency": "EUR"
89
+ },
90
+ "reference": "YOUR_REFERENCE",
91
+ "merchantAccount": "YOUR_MERCHANT_ACCOUNT"
92
+ }')</code></pre>
93
+
94
+ <p>You can also get a list of payment methods which are available for a given transaction to display a page with custom styling to your shoppers:</p>
95
+
96
+ <pre><code class="ruby language-ruby">response = adyen.checkout.payment_methods('{
97
+ "merchantAccount": "YOUR_MERCHANT_ACCOUNT"
98
+ }')</code></pre>
99
+
100
+ <p>A successful call to payment_methods will return a list of supported payment methods along with redirect URL's so that you can send your shoppers directly to the issuer's site without losing control of front-end styling / logic.</p>
101
+
102
+ </section>
103
+ <footer>
104
+ <p>This project is maintained by <a href="https://github.com/Adyen">Adyen</a></p>
105
+ <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
106
+ </footer>
107
+ </div>
108
+ <script src="javascripts/scale.fix.js"></script>
109
+
110
+ </body>
111
+ </html>
@@ -0,0 +1,50 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
6
+ <title>Adyen-ruby-api-library by Adyen</title>
7
+
8
+ <link rel="stylesheet" href="stylesheets/styles.css">
9
+ <link rel="stylesheet" href="stylesheets/github-light.css">
10
+ <meta name="viewport" content="width=device-width">
11
+ <!--[if lt IE 9]>
12
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
13
+ <![endif]-->
14
+ </head>
15
+ <body>
16
+ <div class="wrapper">
17
+ <header>
18
+ <h1>Adyen-ruby-api-library</h1>
19
+ <p>Adyen API Library for Ruby</p>
20
+
21
+ <p class="view"><a href="https://github.com/Adyen/adyen-ruby-api-library">View the Project on GitHub <small>Adyen/adyen-ruby-api-library</small></a></p>
22
+
23
+ <ul>
24
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library/zipball/master">Download <strong>ZIP File</strong></a></li>
25
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library/tarball/master">Download <strong>TAR Ball</strong></a></li>
26
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library">View On <strong>GitHub</strong></a></li>
27
+ </ul>
28
+ </header>
29
+ <section>
30
+ <h1><a id="adyen-apis-library-for-ruby" class="anchor" href="#adyen-apis-library-for-ruby" aria-hidden="true"><span aria-hidden="true" class="octicon octicon-link"></span></a>Adyen APIs Library for Ruby</h1>
31
+ <p>
32
+ This manual describes API communication to the Adyen payment system using this API library for Ruby.
33
+ You will get familiar with the following concepts and scenarios:
34
+ </p>
35
+ <ul>
36
+ <li><a title="Install the library" href="install-library.html">Install the library</a></li>
37
+ <li><a title="Using the library" href="using-library.html">Using the library</a></li>
38
+ </ul>
39
+ <h2>DISCLAIMER</h2>
40
+ <p>The ownership of the content of the Adyen API Library remains with Adyen. The content of the Adyen API Library may only be used in connection with the services of Adyen and subject to the applicable license (Apache License, Version 2.0, the “License”), a copy of which is included in the library. Unless required by applicable law or agreed to in writing, the library is offered and/or distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. Adyen does not warrant that the library or any content will be available uninterrupted or error free, that defects will be corrected, or that the library or its supporting systems are free of viruses or bugs. Please refer to the License for the specific language governing permissions and limitations under the License.</p>
41
+ </section>
42
+ <footer>
43
+ <p>This project is maintained by <a href="https://github.com/Adyen">Adyen</a></p>
44
+ <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
45
+ </footer>
46
+ </div>
47
+ <script src="javascripts/scale.fix.js"></script>
48
+
49
+ </body>
50
+ </html>
@@ -0,0 +1,61 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <meta charset="utf-8">
5
+ <meta http-equiv="X-UA-Compatible" content="chrome=1">
6
+ <title>Adyen-php-api-library by Adyen</title>
7
+
8
+ <link rel="stylesheet" href="stylesheets/styles.css">
9
+ <link rel="stylesheet" href="stylesheets/github-light.css">
10
+ <meta name="viewport" content="width=device-width">
11
+
12
+ <link rel="stylesheet" href="stylesheets/prism.css">
13
+ <script src="javascripts/prism.js"></script>
14
+ <!--[if lt IE 9]>
15
+ <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
16
+ <![endif]-->
17
+ </head>
18
+ <body>
19
+ <div class="wrapper">
20
+ <header>
21
+ <h1>Adyen-ruby-api-library</h1>
22
+ <p>Adyen API Library for Ruby</p>
23
+
24
+ <p class="view"><a href="https://github.com/Adyen/adyen-ruby-api-library">View the Project on GitHub <small>Adyen/adyen-ruby-api-library</small></a></p>
25
+
26
+
27
+ <ul>
28
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library/zipball/master">Download <strong>ZIP File</strong></a></li>
29
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library/tarball/master">Download <strong>TAR Ball</strong></a></li>
30
+ <li><a href="https://github.com/Adyen/adyen-ruby-api-library">View On <strong>GitHub</strong></a></li>
31
+ </ul>
32
+ </header>
33
+ <section>
34
+ <h1>Install the library</h1>
35
+ <p>
36
+ <h2>Requirements:</h2>
37
+ <ul>
38
+ <li>Ruby >= 2.1</li>
39
+ </ul>
40
+ </p>
41
+ <h2>Installation</h2>
42
+ <p>
43
+ <ol>
44
+ <li>
45
+ The preferred method is via <a href="https://www.rubygems.org/packages/Adyen.EcommLibrary">RubyGems</a>.
46
+ </li>
47
+ <li>
48
+ Download Release from GitHub: Go to our GitHub releases tab and download the zip file that is included in the release.
49
+ </li>
50
+ </ol>
51
+ </p>
52
+ </section>
53
+ <footer>
54
+ <p>This project is maintained by <a href="https://github.com/Adyen">Adyen</a></p>
55
+ <p><small>Hosted on GitHub Pages &mdash; Theme by <a href="https://github.com/orderedlist">orderedlist</a></small></p>
56
+ </footer>
57
+ </div>
58
+ <script src="javascripts/scale.fix.js"></script>
59
+
60
+ </body>
61
+ </html>