spreedly 2.0.24 → 2.0.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -1
- data/README.md +16 -0
- data/lib/spreedly/environment.rb +1 -1
- data/lib/spreedly/gateway_class.rb +1 -1
- data/lib/spreedly/urls.rb +1 -1
- data/lib/spreedly/version.rb +1 -1
- data/test/unit/gateway_options_test.rb +1 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4241e7c879a8e9176ed51042a716ba1725874f5d4fa788929775cb09237df89d
|
4
|
+
data.tar.gz: 84b1c9b35b9574267727e23b1c06e325d8170dcbbc2d761de6fd58e74fbf1a75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
data/lib/spreedly/environment.rb
CHANGED
@@ -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
data/lib/spreedly/version.rb
CHANGED
@@ -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.
|
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:
|
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.
|
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.
|