spreedly 2.0.24 → 2.0.25

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: e8ebadb2a554b10f4889e1d9e0ba5550f63f506ac35065f4873c52df6e6caae7
4
+ data.tar.gz: e298035d0659d1ddcd38d723d6b1c6ccabd0c3c6254d0dc3453e8cf0eaf86769
5
5
  SHA512:
6
- metadata.gz: 1d36b133483e50f955c4e392a2f43a6ae6efa0edae54f2b7f1266b7a4587b47fc4a8e1725b6de49e90b4e2cc3a390e78b4c10e919eb8b2d675df73c3b8232c2a
7
- data.tar.gz: 77f2b68c2f8b94250836a3a8a2dadaf47e2950717c5a0ef192d39150ba0844b5b874799773c3f4eb46c1b53209374cb62e6264093eb752f19374120381501067
6
+ metadata.gz: c8b186c24a8e14b296b994fbda2c55d3dd6d869110146fabdc04574963613ff6384687897be41a9cf5616efba2f3409ee974ea972683f647dc9971970f786787
7
+ data.tar.gz: e630762db928600eb7fa390f356bc878dea1a50e9c7edb86ddecedee983c625607922894dff2f61cd84045c64e5fc66e441d812ddc2bf403da8be7b7e03cc68e
data/CHANGELOG.md CHANGED
@@ -2,7 +2,11 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [2.0.24]
5
+ ## [2.0.24] - 2021-07-12
6
+ ### Added
7
+ - @almalee24 - Add MIT Framework support flag, supports_populate_mit_fields
8
+
9
+ ## [2.0.24] - 2019-08-21
6
10
  ### Added
7
11
  - @jeremywrowe - Add 3D Secure 2 complete transaction
8
12
 
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,
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Spreedly
2
- VERSION = "2.0.24"
2
+ VERSION = "2.0.25"
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.25
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.