spreedly 2.0.24 → 2.0.26

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 43cf51954eea13a2f1305e712c4ea4c4870f4de8b1066160b8023ca45b8e2aa0
4
- data.tar.gz: 0dd8522435f12b094dbdb8f07dfb45143ac265aaac416457f95242a038e1e5b6
3
+ metadata.gz: 4241e7c879a8e9176ed51042a716ba1725874f5d4fa788929775cb09237df89d
4
+ data.tar.gz: 84b1c9b35b9574267727e23b1c06e325d8170dcbbc2d761de6fd58e74fbf1a75
5
5
  SHA512:
6
- metadata.gz: 1d36b133483e50f955c4e392a2f43a6ae6efa0edae54f2b7f1266b7a4587b47fc4a8e1725b6de49e90b4e2cc3a390e78b4c10e919eb8b2d675df73c3b8232c2a
7
- data.tar.gz: 77f2b68c2f8b94250836a3a8a2dadaf47e2950717c5a0ef192d39150ba0844b5b874799773c3f4eb46c1b53209374cb62e6264093eb752f19374120381501067
6
+ metadata.gz: 75e042c324d777daaf5376ec19fd6f4fd504dead642fe571c9fbf3020a3275687ed1738dea120ff26f8bbfc41762d66227d5f56ef0400206dd0e04c8d9bde844
7
+ data.tar.gz: f664bd05e797fa1bbda9db56a089c2f6069e7d39af69b7b5f8c282889876d53d7f1aab18f733020ebd417277f6adde6cc3ba0b9dab0578310bc84e851b99897d
data/CHANGELOG.md CHANGED
@@ -1,8 +1,15 @@
1
1
  # Changelog
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
+ ## [2.0.26] - 2023-03-24
5
+ ### Changed
6
+ - @jknipp - Update the gateway options url to use `GET /v1/gateways_options.xml` instead of `OPTIONS /v1/gateways.xml`
7
+
8
+ ## [2.0.25] - 2021-07-12
9
+ ### Added
10
+ - @almalee24 - Add MIT Framework support flag, supports_populate_mit_fields
4
11
 
5
- ## [2.0.24]
12
+ ## [2.0.24] - 2019-08-21
6
13
  ### Added
7
14
  - @jeremywrowe - Add 3D Secure 2 complete transaction
8
15
 
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  A convenient Ruby wrapper for the Spreedly API.
4
4
 
5
+ This is an example Ruby integration with Spreedly. This version is no longer actively updated and will be superseded by a new version in the near future. Feature parity may lag behind, so please use this gem at your own risk.
6
+
5
7
  ## Philosophy
6
8
 
7
9
  * No global configuration of authentication credentials.
@@ -328,6 +330,20 @@ You can get the full list of supported receivers like so:
328
330
  env.receiver_options
329
331
  ```
330
332
 
333
+ #### Delivering a payment method
334
+
335
+ You can deliver a payment method to a third party using [Payment Method Distribution](https://docs.spreedly.com/guides/payment-method-distribution/). Once a receiver is set up and you have a payment method that you would like to share, you can use the following call:
336
+
337
+ ```ruby
338
+ env.deliver_to_receiver(
339
+ "receiver token goes here",
340
+ "payment method token goes here",
341
+ headers: { "Content-Type": "application/json" },
342
+ url: "https://spreedly-echo.herokuapp.com",
343
+ body: { card_number: "{{credit_card_number}}" }.to_json
344
+ )
345
+ ```
346
+
331
347
  ## Error Handling
332
348
 
333
349
  When you make a call to the API, there are times when things don't go as expected. For the most part, when a call is made, a Transaction is created behind the scenes at Spreedly. In general,
@@ -118,7 +118,7 @@ module Spreedly
118
118
  end
119
119
 
120
120
  def gateway_options
121
- xml_doc = ssl_options(gateway_options_url)
121
+ xml_doc = ssl_get(gateway_options_url, headers)
122
122
  GatewayClass.new_list_from(xml_doc)
123
123
  end
124
124
 
@@ -11,7 +11,7 @@ module Spreedly
11
11
  :supports_3dsecure_2_purchase, :supports_3dsecure_2_authorize,
12
12
  :supports_3dsecure_2_mpi_purchase, :supports_3dsecure_2_mpi_authorize,
13
13
  :supports_store, :supports_remove, :supports_general_credit,
14
- :supports_fraud_review, type: :boolean
14
+ :supports_fraud_review, :supports_populate_mit_fields, type: :boolean
15
15
 
16
16
  attr_reader :supported_countries, :payment_methods, :auth_modes, :regions
17
17
 
data/lib/spreedly/urls.rb CHANGED
@@ -91,7 +91,7 @@ module Spreedly
91
91
  end
92
92
 
93
93
  def gateway_options_url
94
- "#{base_url}/v1/gateways.xml"
94
+ "#{base_url}/v1/gateways_options.xml"
95
95
  end
96
96
 
97
97
  def add_gateway_url
@@ -1,3 +1,3 @@
1
1
  module Spreedly
2
- VERSION = "2.0.24"
2
+ VERSION = "2.0.26"
3
3
  end
@@ -68,6 +68,7 @@ class GatewayOptionsTest < Test::Unit::TestCase
68
68
  :supports_general_credit,
69
69
  :supports_offsite_authorize,
70
70
  :supports_offsite_purchase,
71
+ :supports_populate_mit_fields,
71
72
  :supports_purchase,
72
73
  :supports_purchase_via_preauthorization,
73
74
  :supports_reference_purchase,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spreedly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.24
4
+ version: 2.0.26
5
5
  platform: ruby
6
6
  authors:
7
7
  - Spreedly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-21 00:00:00.000000000 Z
11
+ date: 2023-03-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -286,7 +286,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
286
286
  - !ruby/object:Gem::Version
287
287
  version: '0'
288
288
  requirements: []
289
- rubygems_version: 3.0.3
289
+ rubygems_version: 3.1.6
290
290
  signing_key:
291
291
  specification_version: 4
292
292
  summary: Provides a Ruby wrapper for the Spreedly API.