solidus_pagseguro_oficial 1.1.1 → 1.1.2

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
  SHA1:
3
- metadata.gz: fe6607f851b49e4546cc0a41ee94ffd6ddfd37fa
4
- data.tar.gz: 93c4353a3fd7ab6352254da7495fac791219c726
3
+ metadata.gz: 16856a24e90700ae536d54f7c56d0996260f7a9a
4
+ data.tar.gz: 74ecce3ce7ecc5e713108c77870cb256140cc5f4
5
5
  SHA512:
6
- metadata.gz: 468beda47df4f0ad66b28d17b33a2b18a14f1890b8eaae9641ca9580580bab7b4e254cd86a4b4b0c89c87b7eaac3575f03621b9fdd32646824ebaaf4ec3304e0
7
- data.tar.gz: 642901c3a139f4a7724cbcff2af97885c082871fabc2e91ac7fd0eac7b7ae52476195a8c761036ea9108b28e40e77a0af575684342aa9cf4a43b2572e19100b5
6
+ metadata.gz: 01fb01bdbbe4b84a610c055c3211e880d39d3bad992bd58dd8079a648e902daed6705ba691ce65cce5c489730e824e78b5718f8a9d36cfd1551f32785676be87
7
+ data.tar.gz: 58dfb3d4efc824a47b2624e344dcfe05beb8eb7b7fa6e143a0d45a98dd3f9baeef03aba009044c29d923b519b4a61310169e5f8613a92fdbd5357989b8941575
@@ -33,12 +33,12 @@ class Spree::PagseguroProvider
33
33
 
34
34
  def sender
35
35
  {
36
- name: @user.bill_address.full_name,
37
- email: @user.email,
36
+ name: @order.bill_address.full_name,
37
+ email: @order.email,
38
38
  cpf: @user.cpf,
39
39
  phone: {
40
- area_code: @user.phone_area_code,
41
- number: @user.phone_number
40
+ area_code: @order.bill_address.phone_area_code,
41
+ number: @order.bill_address.phone_number
42
42
  }
43
43
  }
44
44
  end
@@ -2,7 +2,7 @@
2
2
  Gem::Specification.new do |s|
3
3
  s.platform = Gem::Platform::RUBY
4
4
  s.name = 'solidus_pagseguro_oficial'
5
- s.version = '1.1.1'
5
+ s.version = '1.1.2'
6
6
  s.summary = 'Solidus Extension to PagSeguro integration'
7
7
  s.description = s.summary
8
8
  s.required_ruby_version = '>= 2.2.2'
@@ -6,8 +6,8 @@ module Spree
6
6
 
7
7
  context '#init_transaction' do
8
8
  let(:address) { build(:address_brazil) }
9
- let(:order) { create(:order_with_line_items, bill_address: address, ship_address: address) }
10
- let(:user) { create(:user, bill_address: address) }
9
+ let(:user) { create(:user) }
10
+ let(:order) { create(:order_with_line_items, bill_address: address, ship_address: address, user: user) }
11
11
 
12
12
  subject { PagseguroProvider.new order, user, "#{HOST}/notify", "#{HOST}/confirm" }
13
13
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: solidus_pagseguro_oficial
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Diego Domingues
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-05 00:00:00.000000000 Z
11
+ date: 2016-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: solidus_core