solidus_stripe 4.1.0 → 4.2.0

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: c27f15c92bf2fcee8f467f66e8c1c261baf7d0909f86e7df87e8ce9547cc2951
4
- data.tar.gz: b6ae23186cd51fc4b7938081d26df066a1b45903a3fcbb29db39d83106e520e4
3
+ metadata.gz: fbb4f65f220249d05424544fea63ae4b7ee065a735d9ad75d30212f90f11c2e9
4
+ data.tar.gz: 0167d591c1bad084130963d11dc0d823d51e9fb7b26d04964634ba87d79f7a8f
5
5
  SHA512:
6
- metadata.gz: 799216217f0bf2353e94c598dc9e49187c44004f9c25dc254d13a3e5805751e8fddabaf45f83c3cc422ed561b12d0e7260cf4367d71dd614086c4d9f2d2521c6
7
- data.tar.gz: 322e5c0299a3afc1555057cd10685a1f5c6ad3f446dd592326084be7959e93c009cb092f8d9fe688682527653d7078ec58c49506ba593f4b4b688d8fa81a549e
6
+ metadata.gz: 5006bc7738c469e4d00f0f709c51691f56dad323a418283b0d361d04728140a4bf1069be861ff5d08df98b06e3147d0fa91ea004fe741e5c8229e720702b6c8a
7
+ data.tar.gz: 2dfea9b20b5dabc2f1199256fb04a3911e811f62d97de95e07cb5f675ba3c70105c81ff8b6ea8fb34f6cf19eb4b1e380a0ae8fd28acccad715c45f8cd9064b56
@@ -1,5 +1,32 @@
1
1
  # Changelog
2
2
 
3
+ ## [v4.1.0](https://github.com/solidusio/solidus_stripe/tree/v4.1.0) (2020-07-01)
4
+
5
+ [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v4.0.0...v4.1.0)
6
+
7
+ **Fixed bugs:**
8
+
9
+ - Card name ignored when adding new card to an order during checkout [\#68](https://github.com/solidusio/solidus_stripe/issues/68)
10
+ - Try to find address state also by name [\#65](https://github.com/solidusio/solidus_stripe/pull/65) ([spaghetticode](https://github.com/spaghetticode))
11
+ - Fix order cancel with Payment Intents captured payment [\#57](https://github.com/solidusio/solidus_stripe/pull/57) ([spaghetticode](https://github.com/spaghetticode))
12
+ - \[ADMIN\] Order cancel doen't work with Payment Intents captured payments [\#56](https://github.com/solidusio/solidus_stripe/issues/56)
13
+
14
+ **Merged pull requests:**
15
+
16
+ - Save correct cardholder name in Spree::CreditCard [\#69](https://github.com/solidusio/solidus_stripe/pull/69) ([spaghetticode](https://github.com/spaghetticode))
17
+ - Update Readme [\#63](https://github.com/solidusio/solidus_stripe/pull/63) ([aleph1ow](https://github.com/aleph1ow))
18
+ - Remove credit cards image [\#62](https://github.com/solidusio/solidus_stripe/pull/62) ([aleph1ow](https://github.com/aleph1ow))
19
+ - Remove Stripe::CardError leftover [\#58](https://github.com/solidusio/solidus_stripe/pull/58) ([spaghetticode](https://github.com/spaghetticode))
20
+ - Update gemspec URLs [\#54](https://github.com/solidusio/solidus_stripe/pull/54) ([elia](https://github.com/elia))
21
+ - fix typo [\#51](https://github.com/solidusio/solidus_stripe/pull/51) ([ccarruitero](https://github.com/ccarruitero))
22
+
23
+ **Closed issues:**
24
+
25
+ - Could not find generator 'solidus\_stripe:install' [\#60](https://github.com/solidusio/solidus_stripe/issues/60)
26
+ - Payment Intent creation exception handling with class not present in the gem [\#55](https://github.com/solidusio/solidus_stripe/issues/55)
27
+ - Using static credentials [\#52](https://github.com/solidusio/solidus_stripe/issues/52)
28
+ - Auto capture behavior in v4.0.0 [\#50](https://github.com/solidusio/solidus_stripe/issues/50)
29
+
3
30
  ## [v4.0.0](https://github.com/solidusio/solidus_stripe/tree/v4.0.0) (2020-04-29)
4
31
 
5
32
  [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.0.0...v4.0.0)
@@ -29,6 +56,14 @@
29
56
  - Add hook to provide custom Stripe Elements options [\#37](https://github.com/solidusio/solidus_stripe/pull/37) ([stuffmatic](https://github.com/stuffmatic))
30
57
  - Change order description that we pass to Stripe [\#35](https://github.com/solidusio/solidus_stripe/pull/35) ([kennyadsl](https://github.com/kennyadsl))
31
58
 
59
+ ## [v3.2.1](https://github.com/solidusio/solidus_stripe/tree/v3.2.1) (2020-06-29)
60
+
61
+ [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v3.2.0...v3.2.1)
62
+
63
+ **Merged pull requests:**
64
+
65
+ - Relax solidus\_support version dependency [\#70](https://github.com/solidusio/solidus_stripe/pull/70) ([spaghetticode](https://github.com/spaghetticode))
66
+
32
67
  ## [v3.0.0](https://github.com/solidusio/solidus_stripe/tree/v3.0.0) (2020-03-11)
33
68
 
34
69
  [Full Changelog](https://github.com/solidusio/solidus_stripe/compare/v2.1.0...v3.0.0)
@@ -92,7 +92,7 @@ module Spree
92
92
  reason: payment_intents_refund_reason
93
93
  ).response
94
94
  else
95
- payment.void_transaction!
95
+ void(payment.response_code, nil, nil)
96
96
  end
97
97
  end
98
98
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SolidusStripe
4
- VERSION = "4.1.0"
4
+ VERSION = "4.2.0"
5
5
  end
@@ -240,54 +240,89 @@ RSpec.describe "Stripe checkout", type: :feature do
240
240
  expect(page).to have_content("Your order has been processed successfully")
241
241
  end
242
242
 
243
- it "can re-use saved cards" do
244
- within_frame find('#card_number iframe') do
245
- '4242 4242 4242 4242'.split('').each { |n| find_field('cardnumber').native.send_keys(n) }
246
- end
247
- within_frame(find '#card_cvc iframe') { fill_in 'cvc', with: '123' }
248
- within_frame(find '#card_expiry iframe') do
249
- '0132'.split('').each { |n| find_field('exp-date').native.send_keys(n) }
250
- end
251
- click_button "Save and Continue"
252
- expect(page).to have_current_path("/checkout/confirm")
253
- click_button "Place Order"
254
- expect(page).to have_content("Your order has been processed successfully")
243
+ context "when reusing saved cards" do
244
+ stub_authorization!
255
245
 
256
- visit spree.root_path
257
- click_link "DL-44"
258
- click_button "Add To Cart"
246
+ it "completes the order, captures the payment and cancels the order" do
247
+ within_frame find('#card_number iframe') do
248
+ '4242 4242 4242 4242'.split('').each { |n| find_field('cardnumber').native.send_keys(n) }
249
+ end
250
+ within_frame(find '#card_cvc iframe') { fill_in 'cvc', with: '123' }
251
+ within_frame(find '#card_expiry iframe') do
252
+ '0132'.split('').each { |n| find_field('exp-date').native.send_keys(n) }
253
+ end
254
+ click_button "Save and Continue"
255
+ expect(page).to have_current_path("/checkout/confirm")
256
+ click_button "Place Order"
257
+ expect(page).to have_content("Your order has been processed successfully")
259
258
 
260
- expect(page).to have_current_path("/cart")
261
- click_button "Checkout"
259
+ visit spree.root_path
260
+ click_link "DL-44"
261
+ click_button "Add To Cart"
262
262
 
263
- # Address
264
- expect(page).to have_current_path("/checkout/address")
263
+ expect(page).to have_current_path("/cart")
264
+ click_button "Checkout"
265
265
 
266
- within("#billing") do
267
- fill_in_name
268
- fill_in "Street Address", with: "YT-1300"
269
- fill_in "City", with: "Mos Eisley"
270
- select "United States of America", from: "Country"
271
- select country.states.first.name, from: "order_bill_address_attributes_state_id"
272
- fill_in "Zip", with: "12010"
273
- fill_in "Phone", with: "(555) 555-5555"
274
- end
275
- click_on "Save and Continue"
266
+ # Address
267
+ expect(page).to have_current_path("/checkout/address")
276
268
 
277
- # Delivery
278
- expect(page).to have_current_path("/checkout/delivery")
279
- expect(page).to have_content("UPS Ground")
280
- click_on "Save and Continue"
269
+ within("#billing") do
270
+ fill_in_name
271
+ fill_in "Street Address", with: "YT-1300"
272
+ fill_in "City", with: "Mos Eisley"
273
+ select "United States of America", from: "Country"
274
+ select country.states.first.name, from: "order_bill_address_attributes_state_id"
275
+ fill_in "Zip", with: "12010"
276
+ fill_in "Phone", with: "(555) 555-5555"
277
+ end
278
+ click_on "Save and Continue"
281
279
 
282
- # Payment
283
- expect(page).to have_current_path("/checkout/payment")
284
- choose "Use an existing card on file"
285
- click_button "Save and Continue"
280
+ # Delivery
281
+ expect(page).to have_current_path("/checkout/delivery")
282
+ expect(page).to have_content("UPS Ground")
283
+ click_on "Save and Continue"
286
284
 
287
- # Confirm
288
- expect(page).to have_current_path("/checkout/confirm")
289
- click_button "Place Order"
290
- expect(page).to have_content("Your order has been processed successfully")
285
+ # Payment
286
+ expect(page).to have_current_path("/checkout/payment")
287
+ choose "Use an existing card on file"
288
+ click_button "Save and Continue"
289
+
290
+ # Confirm
291
+ expect(page).to have_current_path("/checkout/confirm")
292
+ click_button "Place Order"
293
+ expect(page).to have_content("Your order has been processed successfully")
294
+
295
+ Spree::Order.complete.each do |order|
296
+ # Capture in backend
297
+
298
+ visit spree.admin_path
299
+
300
+ expect(page).to have_selector("#listing_orders tbody tr", count: 2)
301
+
302
+ click_link order.number
303
+
304
+ click_link "Payments"
305
+ find(".fa-capture").click
306
+
307
+ expect(page).to have_content "Payment Updated"
308
+ expect(find("table#payments")).to have_content "Completed"
309
+
310
+ # Order cancel, after capture
311
+ click_link "Cart"
312
+
313
+ within "#sidebar" do
314
+ expect(page).to have_content "Completed"
315
+ end
316
+
317
+ find('input[value="Cancel"]').click
318
+
319
+ expect(page).to have_content "Order canceled"
320
+
321
+ within "#sidebar" do
322
+ expect(page).to have_content "Canceled"
323
+ end
324
+ end
325
+ end
291
326
  end
292
327
 
293
328
  it_behaves_like "Stripe Elements invalid payments"
@@ -523,7 +558,7 @@ RSpec.describe "Stripe checkout", type: :feature do
523
558
  click_button "Save and Continue"
524
559
 
525
560
  within_3d_secure_modal do
526
- expect(page).to have_content '$19.99 using 3D Secure'
561
+ expect(page).to have_content '$19.99 USD using 3D Secure'
527
562
 
528
563
  click_button 'Complete authentication'
529
564
  end
@@ -248,7 +248,7 @@ describe Spree::PaymentMethod::StripeCreditCard do
248
248
 
249
249
  shared_examples 'voids the payment transaction' do
250
250
  it 'voids the payment transaction' do
251
- expect(payment).to receive(:void_transaction!)
251
+ expect(gateway).to receive(:void)
252
252
 
253
253
  subject.try_void(payment)
254
254
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_stripe
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Solidus Team
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-07-01 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core
@@ -153,7 +153,7 @@ metadata:
153
153
  homepage_uri: https://github.com/solidusio/solidus_stripe#readme
154
154
  source_code_uri: https://github.com/solidusio/solidus_stripe
155
155
  changelog_uri: https://github.com/solidusio/solidus_stripe/blob/master/CHANGELOG.md
156
- post_install_message:
156
+ post_install_message:
157
157
  rdoc_options: []
158
158
  require_paths:
159
159
  - lib
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  version: '0'
170
170
  requirements: []
171
171
  rubygems_version: 3.0.3
172
- signing_key:
172
+ signing_key:
173
173
  specification_version: 4
174
174
  summary: Stripe Payment Method for Solidus
175
175
  test_files: