braintree 2.34.0 → 2.34.1

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: a72dfe2b3ddb0af40d37f56f0028db5170cde83c
4
- data.tar.gz: 69d924724e033cba49d5201e9db37f7204534f8f
3
+ metadata.gz: 304aa5a8147742077acb016b052646dea2a7c18c
4
+ data.tar.gz: eaa07050155a81d210ff25c8601e7dadafacd8ca
5
5
  SHA512:
6
- metadata.gz: 763effca5e3de654c1b1adfe05fbee1fbf161d7ffeaa3c339a185071e378c8c741a480f625cb7d8db189b07a4a1c80c1011172be5c07eef0802765df38767961
7
- data.tar.gz: 351b0b1493e41f6bd176734a1ad97c52b1b9b2ae5c4ade08b64a86f7379d1d25dc302bd63c986fa48180e23ced2a8926edb60b5f239a84815eb24f1d33847181
6
+ metadata.gz: d79f148da94978eeb73ac0941056d2e9f9800e80406965efa3596b41e547d9a28a0fe27b73b43629d152b952440c0c7e5de8f1f9989fb6b810fd77b38e946718
7
+ data.tar.gz: 28b6819f4e071ae46f2c7d3f0be99c942136f924d560e1fce35b61a731ebba6d2249cd8271cbc98f34d5a74f05e5160d1b1a15e71b5bfe16576023d4299fa66b
@@ -127,7 +127,7 @@ module Braintree
127
127
  {
128
128
  :shipping => AddressGateway._shared_signature
129
129
  },
130
- {:options => [:hold_in_escrow, :store_in_vault, :store_in_vault_on_success, :submit_for_settlement, :add_billing_address_to_payment_method, :store_shipping_address_in_vault, :venmo_sdk_session]},
130
+ {:options => [:hold_in_escrow, :store_in_vault, :store_in_vault_on_success, :submit_for_settlement, :add_billing_address_to_payment_method, :store_shipping_address_in_vault, :venmo_sdk_session, :payee_email]},
131
131
  {:custom_fields => :_any_key_},
132
132
  {:descriptor => [:name, :phone, :url]},
133
133
  {:paypal_account => [:email, :token, :paypal_data, :payee_email]},
@@ -2,7 +2,7 @@ module Braintree
2
2
  module Version
3
3
  Major = 2
4
4
  Minor = 34
5
- Tiny = 0
5
+ Tiny = 1
6
6
 
7
7
  String = "#{Major}.#{Minor}.#{Tiny}"
8
8
  end
@@ -1 +1 @@
1
- 15083
1
+ 24324
@@ -1338,6 +1338,31 @@ describe Braintree::Transaction do
1338
1338
  result.transaction.paypal_details.debug_id.should_not be_nil
1339
1339
  result.transaction.paypal_details.payee_email.should == "bt_seller_us@paypal.com"
1340
1340
  end
1341
+
1342
+ it "can create a transaction with a payee email in the options params" do
1343
+ customer = Braintree::Customer.create!
1344
+ nonce = nonce_for_new_payment_method(
1345
+ :paypal_account => {
1346
+ :consent_code => "PAYPAL_CONSENT_CODE",
1347
+ }
1348
+ )
1349
+ nonce.should_not be_nil
1350
+
1351
+ result = Braintree::Transaction.create(
1352
+ :type => "sale",
1353
+ :amount => Braintree::Test::TransactionAmounts::Authorize,
1354
+ :payment_method_nonce => nonce,
1355
+ :paypal_account => {},
1356
+ :options => {
1357
+ :payee_email => "bt_seller_us@paypal.com"
1358
+ }
1359
+ )
1360
+
1361
+ result.success?.should == true
1362
+ result.transaction.paypal_details.should_not be_nil
1363
+ result.transaction.paypal_details.debug_id.should_not be_nil
1364
+ result.transaction.paypal_details.payee_email.should == "bt_seller_us@paypal.com"
1365
+ end
1341
1366
  end
1342
1367
 
1343
1368
  context "three_d_secure" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: braintree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.34.0
4
+ version: 2.34.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Braintree
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-11 00:00:00.000000000 Z
11
+ date: 2014-09-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder
@@ -32,176 +32,176 @@ extra_rdoc_files: []
32
32
  files:
33
33
  - README.rdoc
34
34
  - LICENSE
35
- - lib/braintree.rb
35
+ - lib/braintree/sepa_bank_account.rb
36
+ - lib/braintree/sepa_bank_account_gateway.rb
37
+ - lib/braintree/resource_collection.rb
38
+ - lib/braintree/signature_service.rb
39
+ - lib/braintree/errors.rb
40
+ - lib/braintree/client_token.rb
41
+ - lib/braintree/address/country_names.rb
36
42
  - lib/braintree/transaction_gateway.rb
43
+ - lib/braintree/payment_method.rb
44
+ - lib/braintree/unknown_payment_method.rb
45
+ - lib/braintree/credit_card_verification_gateway.rb
46
+ - lib/braintree/plan_gateway.rb
47
+ - lib/braintree/customer_search.rb
48
+ - lib/braintree/http.rb
49
+ - lib/braintree/successful_result.rb
50
+ - lib/braintree/modification.rb
51
+ - lib/braintree/webhook_testing_gateway.rb
52
+ - lib/braintree/sha256_digest.rb
53
+ - lib/braintree/transaction_search.rb
54
+ - lib/braintree/gateway.rb
55
+ - lib/braintree/discount_gateway.rb
56
+ - lib/braintree/xml.rb
57
+ - lib/braintree/transaction.rb
58
+ - lib/braintree/credit_card.rb
59
+ - lib/braintree/client_token_gateway.rb
37
60
  - lib/braintree/credit_card_verification.rb
38
61
  - lib/braintree/transparent_redirect_gateway.rb
39
- - lib/braintree/resource_collection.rb
40
- - lib/braintree/subscription.rb
41
- - lib/braintree/dispute/transaction_details.rb
42
- - lib/braintree/address/country_names.rb
43
- - lib/braintree/credit_card_verification_search.rb
44
- - lib/braintree/merchant_account_gateway.rb
45
- - lib/braintree/util.rb
46
- - lib/braintree/paypal_account_gateway.rb
47
- - lib/braintree/address_gateway.rb
48
- - lib/braintree/webhook_notification_gateway.rb
49
- - lib/braintree/transaction/subscription_details.rb
62
+ - lib/braintree/subscription_search.rb
50
63
  - lib/braintree/transaction/status_details.rb
64
+ - lib/braintree/transaction/credit_card_details.rb
65
+ - lib/braintree/transaction/paypal_details.rb
51
66
  - lib/braintree/transaction/disbursement_details.rb
52
- - lib/braintree/transaction/address_details.rb
67
+ - lib/braintree/transaction/subscription_details.rb
53
68
  - lib/braintree/transaction/customer_details.rb
54
- - lib/braintree/transaction/paypal_details.rb
55
- - lib/braintree/transaction/credit_card_details.rb
56
- - lib/braintree/errors.rb
57
- - lib/braintree/transaction_search.rb
58
- - lib/braintree/validation_error_collection.rb
59
- - lib/braintree/webhook_testing_gateway.rb
60
- - lib/braintree/payment_method_gateway.rb
61
- - lib/braintree/discount.rb
62
- - lib/braintree/credit_card.rb
63
- - lib/braintree/version.rb
64
- - lib/braintree/disbursement.rb
65
- - lib/braintree/paypal_account.rb
66
- - lib/braintree/subscription_search.rb
67
- - lib/braintree/exceptions.rb
68
- - lib/braintree/settlement_batch_summary.rb
69
- - lib/braintree/transaction.rb
70
- - lib/braintree/discount_gateway.rb
71
- - lib/braintree/gateway.rb
72
- - lib/braintree/advanced_search.rb
69
+ - lib/braintree/transaction/address_details.rb
70
+ - lib/braintree/xml/rexml.rb
71
+ - lib/braintree/xml/libxml.rb
72
+ - lib/braintree/xml/generator.rb
73
+ - lib/braintree/xml/parser.rb
74
+ - lib/braintree/webhook_notification_gateway.rb
75
+ - lib/braintree/error_result.rb
76
+ - lib/braintree/subscription.rb
73
77
  - lib/braintree/add_on_gateway.rb
74
- - lib/braintree/payment_method.rb
78
+ - lib/braintree/version.rb
79
+ - lib/braintree/address.rb
80
+ - lib/braintree/plan.rb
81
+ - lib/braintree/paypal_account_gateway.rb
75
82
  - lib/braintree/settlement_batch.rb
76
- - lib/braintree/customer_search.rb
77
- - lib/braintree/transparent_redirect.rb
78
83
  - lib/braintree/payment_instrument_type.rb
79
- - lib/braintree/digest.rb
80
- - lib/braintree/customer.rb
81
- - lib/braintree/subscription_gateway.rb
82
- - lib/braintree/client_token_gateway.rb
83
- - lib/braintree/customer_gateway.rb
84
- - lib/braintree/sepa_bank_account.rb
85
- - lib/braintree/signature_service.rb
84
+ - lib/braintree/transparent_redirect.rb
85
+ - lib/braintree/add_on.rb
86
+ - lib/braintree/validation_error.rb
87
+ - lib/braintree/disbursement.rb
88
+ - lib/braintree/credit_card_gateway.rb
89
+ - lib/braintree/test/venmo_sdk.rb
86
90
  - lib/braintree/test/credit_card.rb
87
- - lib/braintree/test/transaction_amounts.rb
88
91
  - lib/braintree/test/nonce.rb
92
+ - lib/braintree/test/transaction_amounts.rb
89
93
  - lib/braintree/test/merchant_account.rb
90
- - lib/braintree/test/venmo_sdk.rb
91
- - lib/braintree/dispute.rb
92
- - lib/braintree/testing_gateway.rb
93
- - lib/braintree/error_result.rb
94
- - lib/braintree/successful_result.rb
95
- - lib/braintree/xml/generator.rb
96
- - lib/braintree/xml/libxml.rb
97
- - lib/braintree/xml/parser.rb
98
- - lib/braintree/xml/rexml.rb
99
- - lib/braintree/webhook_notification.rb
100
- - lib/braintree/error_codes.rb
101
- - lib/braintree/base_module.rb
102
- - lib/braintree/credit_card_verification_gateway.rb
103
- - lib/braintree/client_token.rb
104
- - lib/braintree/add_on.rb
105
- - lib/braintree/webhook_testing.rb
106
- - lib/braintree/configuration.rb
107
- - lib/braintree/http.rb
108
- - lib/braintree/unknown_payment_method.rb
109
- - lib/braintree/xml.rb
110
- - lib/braintree/credit_card_gateway.rb
94
+ - lib/braintree/util.rb
95
+ - lib/braintree/settlement_batch_summary_gateway.rb
111
96
  - lib/braintree/merchant_account/funding_details.rb
112
97
  - lib/braintree/merchant_account/individual_details.rb
113
98
  - lib/braintree/merchant_account/address_details.rb
114
99
  - lib/braintree/merchant_account/business_details.rb
115
- - lib/braintree/plan_gateway.rb
116
- - lib/braintree/settlement_batch_summary_gateway.rb
117
- - lib/braintree/address.rb
118
- - lib/braintree/plan.rb
100
+ - lib/braintree/merchant_account_gateway.rb
101
+ - lib/braintree/testing_gateway.rb
102
+ - lib/braintree/validation_error_collection.rb
103
+ - lib/braintree/error_codes.rb
104
+ - lib/braintree/paypal_account.rb
105
+ - lib/braintree/exceptions.rb
106
+ - lib/braintree/customer.rb
107
+ - lib/braintree/configuration.rb
108
+ - lib/braintree/digest.rb
109
+ - lib/braintree/dispute.rb
110
+ - lib/braintree/dispute/transaction_details.rb
111
+ - lib/braintree/advanced_search.rb
112
+ - lib/braintree/webhook_notification.rb
119
113
  - lib/braintree/merchant_account.rb
120
- - lib/braintree/sha256_digest.rb
121
- - lib/braintree/descriptor.rb
122
- - lib/braintree/validation_error.rb
123
- - lib/braintree/sepa_bank_account_gateway.rb
124
- - lib/braintree/modification.rb
125
114
  - lib/braintree/test_transaction.rb
115
+ - lib/braintree/subscription_gateway.rb
116
+ - lib/braintree/payment_method_gateway.rb
117
+ - lib/braintree/discount.rb
118
+ - lib/braintree/settlement_batch_summary.rb
119
+ - lib/braintree/webhook_testing.rb
120
+ - lib/braintree/address_gateway.rb
121
+ - lib/braintree/base_module.rb
122
+ - lib/braintree/descriptor.rb
123
+ - lib/braintree/credit_card_verification_search.rb
124
+ - lib/braintree/customer_gateway.rb
125
+ - lib/braintree.rb
126
+ - lib/ssl/sandbox_braintreegateway_com.ca.crt
127
+ - lib/ssl/securetrust_ca.crt
126
128
  - lib/ssl/www_braintreegateway_com.ca.crt
127
129
  - lib/ssl/api_braintreegateway_com.ca.crt
128
- - lib/ssl/securetrust_ca.crt
129
- - lib/ssl/sandbox_braintreegateway_com.ca.crt
130
- - spec/unit/braintree_spec.rb
131
- - spec/unit/spec_helper.rb
130
+ - spec/script/httpsd.rb
131
+ - spec/ssl/privateKey.key
132
+ - spec/ssl/certificate.crt
133
+ - spec/ssl/geotrust_global.crt
134
+ - spec/spec.opts
132
135
  - spec/unit/braintree/resource_collection_spec.rb
136
+ - spec/unit/braintree/unknown_payment_method_spec.rb
137
+ - spec/unit/braintree/subscription_search_spec.rb
138
+ - spec/unit/braintree/validation_error_collection_spec.rb
139
+ - spec/unit/braintree/validation_error_spec.rb
140
+ - spec/unit/braintree/disbursement_spec.rb
141
+ - spec/unit/braintree/paypal_account_spec.rb
142
+ - spec/unit/braintree/base_module_spec.rb
143
+ - spec/unit/braintree/util_spec.rb
144
+ - spec/unit/braintree/transparent_redirect_spec.rb
145
+ - spec/unit/braintree/digest_spec.rb
146
+ - spec/unit/braintree/client_token_spec.rb
147
+ - spec/unit/braintree/webhook_notification_spec.rb
148
+ - spec/unit/braintree/error_result_spec.rb
133
149
  - spec/unit/braintree/transaction/credit_card_details_spec.rb
134
150
  - spec/unit/braintree/transaction/customer_details_spec.rb
135
151
  - spec/unit/braintree/transaction/deposit_details_spec.rb
136
- - spec/unit/braintree/base_module_spec.rb
137
- - spec/unit/braintree/transaction_search_spec.rb
138
- - spec/unit/braintree/disbursement_spec.rb
139
- - spec/unit/braintree/credit_card_verification_search_spec.rb
140
- - spec/unit/braintree/util_spec.rb
141
- - spec/unit/braintree/payment_method_spec.rb
142
- - spec/unit/braintree/address_spec.rb
143
152
  - spec/unit/braintree/transaction_spec.rb
144
- - spec/unit/braintree/subscription_search_spec.rb
145
- - spec/unit/braintree/client_token_spec.rb
146
- - spec/unit/braintree/validation_error_collection_spec.rb
147
- - spec/unit/braintree/merchant_account_spec.rb
148
- - spec/unit/braintree/sha256_digest_spec.rb
149
- - spec/unit/braintree/signature_service_spec.rb
150
- - spec/unit/braintree/digest_spec.rb
151
- - spec/unit/braintree/credit_card_verification_spec.rb
152
- - spec/unit/braintree/xml_spec.rb
153
- - spec/unit/braintree/http_spec.rb
154
- - spec/unit/braintree/configuration_spec.rb
155
- - spec/unit/braintree/customer_spec.rb
153
+ - spec/unit/braintree/errors_spec.rb
154
+ - spec/unit/braintree/xml/libxml_spec.rb
156
155
  - spec/unit/braintree/xml/parser_spec.rb
157
156
  - spec/unit/braintree/xml/rexml_spec.rb
158
- - spec/unit/braintree/xml/libxml_spec.rb
159
- - spec/unit/braintree/paypal_account_spec.rb
157
+ - spec/unit/braintree/payment_method_spec.rb
158
+ - spec/unit/braintree/successful_result_spec.rb
160
159
  - spec/unit/braintree/subscription_spec.rb
161
- - spec/unit/braintree/transparent_redirect_spec.rb
162
- - spec/unit/braintree/validation_error_spec.rb
163
- - spec/unit/braintree/webhook_notification_spec.rb
164
- - spec/unit/braintree/dispute_spec.rb
160
+ - spec/unit/braintree/http_spec.rb
165
161
  - spec/unit/braintree/credit_card_spec.rb
166
- - spec/unit/braintree/error_result_spec.rb
167
- - spec/unit/braintree/unknown_payment_method_spec.rb
162
+ - spec/unit/braintree/transaction_search_spec.rb
168
163
  - spec/unit/braintree/modification_spec.rb
169
- - spec/unit/braintree/errors_spec.rb
170
- - spec/unit/braintree/successful_result_spec.rb
171
- - spec/integration/spec_helper.rb
164
+ - spec/unit/braintree/address_spec.rb
165
+ - spec/unit/braintree/merchant_account_spec.rb
166
+ - spec/unit/braintree/dispute_spec.rb
167
+ - spec/unit/braintree/customer_spec.rb
168
+ - spec/unit/braintree/signature_service_spec.rb
169
+ - spec/unit/braintree/xml_spec.rb
170
+ - spec/unit/braintree/configuration_spec.rb
171
+ - spec/unit/braintree/credit_card_verification_spec.rb
172
+ - spec/unit/braintree/credit_card_verification_search_spec.rb
173
+ - spec/unit/braintree/sha256_digest_spec.rb
174
+ - spec/unit/spec_helper.rb
175
+ - spec/unit/braintree_spec.rb
172
176
  - spec/integration/braintree/plan_spec.rb
173
- - spec/integration/braintree/transaction_search_spec.rb
174
177
  - spec/integration/braintree/disbursement_spec.rb
175
- - spec/integration/braintree/credit_card_verification_search_spec.rb
176
- - spec/integration/braintree/payment_method_spec.rb
177
- - spec/integration/braintree/address_spec.rb
178
- - spec/integration/braintree/transaction_spec.rb
179
- - spec/integration/braintree/customer_search_spec.rb
180
178
  - spec/integration/braintree/settlement_batch_summary_spec.rb
181
- - spec/integration/braintree/discount_spec.rb
182
- - spec/integration/braintree/merchant_account_spec.rb
183
- - spec/integration/braintree/test_transaction_spec.rb
184
- - spec/integration/braintree/credit_card_verification_spec.rb
185
- - spec/integration/braintree/test/transaction_amounts_spec.rb
186
- - spec/integration/braintree/http_spec.rb
187
- - spec/integration/braintree/add_on_spec.rb
188
- - spec/integration/braintree/customer_spec.rb
189
179
  - spec/integration/braintree/paypal_account_spec.rb
190
- - spec/integration/braintree/subscription_spec.rb
191
180
  - spec/integration/braintree/transparent_redirect_spec.rb
181
+ - spec/integration/braintree/error_codes_spec.rb
192
182
  - spec/integration/braintree/advanced_search_spec.rb
183
+ - spec/integration/braintree/test_transaction_spec.rb
184
+ - spec/integration/braintree/transaction_spec.rb
185
+ - spec/integration/braintree/customer_search_spec.rb
186
+ - spec/integration/braintree/payment_method_spec.rb
187
+ - spec/integration/braintree/subscription_spec.rb
188
+ - spec/integration/braintree/http_spec.rb
193
189
  - spec/integration/braintree/credit_card_spec.rb
190
+ - spec/integration/braintree/transaction_search_spec.rb
191
+ - spec/integration/braintree/test/transaction_amounts_spec.rb
192
+ - spec/integration/braintree/address_spec.rb
193
+ - spec/integration/braintree/merchant_account_spec.rb
194
194
  - spec/integration/braintree/client_api/client_token_spec.rb
195
195
  - spec/integration/braintree/client_api/spec_helper.rb
196
- - spec/integration/braintree/error_codes_spec.rb
197
- - spec/spec_helper.rb
198
- - spec/spec.opts
199
- - spec/hacks/tcp_socket.rb
200
- - spec/ssl/geotrust_global.crt
201
- - spec/ssl/certificate.crt
202
- - spec/ssl/privateKey.key
203
- - spec/script/httpsd.rb
196
+ - spec/integration/braintree/customer_spec.rb
197
+ - spec/integration/braintree/credit_card_verification_spec.rb
198
+ - spec/integration/braintree/discount_spec.rb
199
+ - spec/integration/braintree/credit_card_verification_search_spec.rb
200
+ - spec/integration/braintree/add_on_spec.rb
201
+ - spec/integration/spec_helper.rb
204
202
  - spec/httpsd.pid
203
+ - spec/hacks/tcp_socket.rb
204
+ - spec/spec_helper.rb
205
205
  - braintree.gemspec
206
206
  homepage: http://www.braintreepayments.com/
207
207
  licenses: