braintree 2.47.0 → 2.48.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/braintree.rb +1 -0
- data/lib/braintree/configuration.rb +1 -0
- data/lib/braintree/paypal_account.rb +1 -1
- data/lib/braintree/test/amex_rewards.rb +11 -0
- data/lib/braintree/test/nonce.rb +1 -0
- data/lib/braintree/testing_gateway.rb +1 -1
- data/lib/braintree/transaction.rb +1 -0
- data/lib/braintree/transaction_gateway.rb +2 -1
- data/lib/braintree/version.rb +1 -1
- data/spec/httpsd.pid +1 -1
- data/spec/integration/braintree/paypal_account_spec.rb +15 -0
- data/spec/integration/braintree/test_transaction_spec.rb +24 -0
- data/spec/integration/braintree/transaction_spec.rb +102 -0
- metadata +167 -166
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d4926fffb25ae723d3106c240b92e06f41ec2ee
|
4
|
+
data.tar.gz: 60cd49a6268f33adfd8f7ddbdceb01a0042d8a1c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a2b20f570810e8b39c33d88891f1a96cca308b7931d29d332010d6c00f87ca917636bf800c5ba24d2346c6591b74c68ed0803cd71d4f90e7b6cbb9b5a41bace4
|
7
|
+
data.tar.gz: 9385406d5098cc15e3cd2df63425fe1c0cd54fd4c73c42f7ed72bc8b3b9cc4a5a9d173a2853646318d0108d146d6feba160a37b34f8202ef86cdb73afde1e72b
|
data/lib/braintree.rb
CHANGED
@@ -85,6 +85,7 @@ require "braintree/subscription/status_details"
|
|
85
85
|
require "braintree/subscription_gateway"
|
86
86
|
require "braintree/subscription_search"
|
87
87
|
require "braintree/successful_result"
|
88
|
+
require "braintree/test/amex_rewards"
|
88
89
|
require "braintree/test/credit_card"
|
89
90
|
require "braintree/test/merchant_account"
|
90
91
|
require "braintree/test/venmo_sdk"
|
@@ -2,7 +2,7 @@ module Braintree
|
|
2
2
|
class PayPalAccount
|
3
3
|
include BaseModule
|
4
4
|
|
5
|
-
attr_reader :email, :token, :image_url, :created_at, :updated_at, :subscriptions
|
5
|
+
attr_reader :email, :token, :image_url, :created_at, :updated_at, :subscriptions, :billing_agreement_id
|
6
6
|
|
7
7
|
def initialize(gateway, attributes) # :nodoc:
|
8
8
|
@gateway = gateway
|
data/lib/braintree/test/nonce.rb
CHANGED
@@ -5,6 +5,7 @@ module Braintree
|
|
5
5
|
Consumed = "fake-consumed-nonce"
|
6
6
|
PayPalOneTimePayment = "fake-paypal-one-time-nonce"
|
7
7
|
PayPalFuturePayment = "fake-paypal-future-nonce"
|
8
|
+
PayPalBillingAgreement = "fake-paypal-billing-agreement-nonce"
|
8
9
|
ApplePayVisa = "fake-apple-pay-visa-nonce"
|
9
10
|
ApplePayMasterCard = "fake-apple-pay-mastercard-nonce"
|
10
11
|
ApplePayAmEx = "fake-apple-pay-amex-nonce"
|
@@ -138,7 +138,8 @@ module Braintree
|
|
138
138
|
:venmo_sdk_session,
|
139
139
|
:payee_email,
|
140
140
|
{:paypal => [:custom_field, :payee_email, :description]},
|
141
|
-
{:three_d_secure => [:required]}
|
141
|
+
{:three_d_secure => [:required]},
|
142
|
+
{:amex_rewards => [:request_id, :points, :currency_amount, :currency_iso_code]}]
|
142
143
|
},
|
143
144
|
{:custom_fields => :_any_key_},
|
144
145
|
{:descriptor => [:name, :phone, :url]},
|
data/lib/braintree/version.rb
CHANGED
data/spec/httpsd.pid
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
27023
|
@@ -26,6 +26,21 @@ describe Braintree::PayPalAccount do
|
|
26
26
|
paypal_account.updated_at.should_not be_nil
|
27
27
|
end
|
28
28
|
|
29
|
+
it "returns a PayPalAccount with a billing agreement id" do
|
30
|
+
customer = Braintree::Customer.create!
|
31
|
+
payment_method_token = random_payment_method_token
|
32
|
+
|
33
|
+
result = Braintree::PaymentMethod.create(
|
34
|
+
:payment_method_nonce => Braintree::Test::Nonce::PayPalBillingAgreement,
|
35
|
+
:customer_id => customer.id,
|
36
|
+
:token => payment_method_token
|
37
|
+
)
|
38
|
+
result.should be_success
|
39
|
+
|
40
|
+
paypal_account = Braintree::PayPalAccount.find(payment_method_token)
|
41
|
+
paypal_account.billing_agreement_id.should_not be_nil
|
42
|
+
end
|
43
|
+
|
29
44
|
it "raises if the payment method token is not found" do
|
30
45
|
expect do
|
31
46
|
Braintree::PayPalAccount.find("nonexistant-paypal-account")
|
@@ -91,6 +91,30 @@ describe Braintree::TestTransaction do
|
|
91
91
|
end
|
92
92
|
end
|
93
93
|
|
94
|
+
it "does not raise an exception when using non-global, non-production gateway" do
|
95
|
+
expect do
|
96
|
+
in_prod do
|
97
|
+
config = Braintree::Configuration.new(
|
98
|
+
:environment => :development,
|
99
|
+
:merchant_id => 'integration_merchant_id',
|
100
|
+
:public_key => 'integration_public_key',
|
101
|
+
:private_key => 'integration_private_key',
|
102
|
+
:logger => Logger.new(StringIO.new),
|
103
|
+
)
|
104
|
+
|
105
|
+
gateway = Braintree::Gateway.new(config)
|
106
|
+
|
107
|
+
transaction_gateway = Braintree::TransactionGateway.new(gateway)
|
108
|
+
testing_gateway = Braintree::TestingGateway.new(gateway)
|
109
|
+
|
110
|
+
sale_result = transaction_gateway.sale(
|
111
|
+
:amount => "100",
|
112
|
+
:payment_method_nonce => Braintree::Test::Nonce::PayPalOneTimePayment
|
113
|
+
)
|
114
|
+
testing_gateway.settle(sale_result.transaction.id)
|
115
|
+
end
|
116
|
+
end.to_not raise_error
|
117
|
+
end
|
94
118
|
|
95
119
|
it "raises an exception if settle is called in a production environment" do
|
96
120
|
expect do
|
@@ -2305,6 +2305,108 @@ describe Braintree::Transaction do
|
|
2305
2305
|
result.params.should == {:transaction => {:type => 'sale', :amount => nil, :credit_card => {:expiration_date => "05/2009"}}}
|
2306
2306
|
result.errors.for(:transaction).on(:amount)[0].code.should == Braintree::ErrorCodes::Transaction::AmountIsRequired
|
2307
2307
|
end
|
2308
|
+
|
2309
|
+
context "Amex Pay with Points" do
|
2310
|
+
context "transaction creation" do
|
2311
|
+
it "burns rewards points when submit_for_settlement is true" do
|
2312
|
+
result = Braintree::Transaction.sale(
|
2313
|
+
:amount => Braintree::Test::TransactionAmounts::Authorize,
|
2314
|
+
:credit_card => {
|
2315
|
+
:number => Braintree::Test::CreditCardNumbers::AmExes[0],
|
2316
|
+
:expiration_date => "05/2009"
|
2317
|
+
},
|
2318
|
+
:options => {
|
2319
|
+
:submit_for_settlement => true,
|
2320
|
+
:amex_rewards => {
|
2321
|
+
:request_id => "ABC123",
|
2322
|
+
:points => "1000",
|
2323
|
+
:currency_amount => "10.00",
|
2324
|
+
:currency_iso_code => "USD"
|
2325
|
+
}
|
2326
|
+
}
|
2327
|
+
)
|
2328
|
+
result.success?.should == true
|
2329
|
+
result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
|
2330
|
+
result.transaction.amex_rewards_response.should == "success"
|
2331
|
+
end
|
2332
|
+
|
2333
|
+
it "returns an error if the credit card is not eligible" do
|
2334
|
+
result = Braintree::Transaction.sale(
|
2335
|
+
:amount => Braintree::Test::TransactionAmounts::Authorize,
|
2336
|
+
:credit_card => {
|
2337
|
+
:number => Braintree::Test::CreditCardNumbers::AmExes[0],
|
2338
|
+
:expiration_date => "05/2009"
|
2339
|
+
},
|
2340
|
+
:options => {
|
2341
|
+
:submit_for_settlement => true,
|
2342
|
+
:amex_rewards => {
|
2343
|
+
:request_id => Braintree::Test::AmexRewards::RequestIds::CardIneligible,
|
2344
|
+
:points => "1000",
|
2345
|
+
:currency_amount => "10.00",
|
2346
|
+
:currency_iso_code => "USD"
|
2347
|
+
}
|
2348
|
+
}
|
2349
|
+
)
|
2350
|
+
result.success?.should == true
|
2351
|
+
result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
|
2352
|
+
result.transaction.amex_rewards_response.should == "RDM2002 Card is not eligible for redemption"
|
2353
|
+
end
|
2354
|
+
end
|
2355
|
+
|
2356
|
+
context "submit for settlement" do
|
2357
|
+
it "burns rewards points when option is set" do
|
2358
|
+
result = Braintree::Transaction.sale(
|
2359
|
+
:amount => Braintree::Test::TransactionAmounts::Authorize,
|
2360
|
+
:credit_card => {
|
2361
|
+
:number => Braintree::Test::CreditCardNumbers::AmExes[0],
|
2362
|
+
:expiration_date => "05/2009"
|
2363
|
+
},
|
2364
|
+
:options => {
|
2365
|
+
:amex_rewards => {
|
2366
|
+
:request_id => "ABC123",
|
2367
|
+
:points => "1000",
|
2368
|
+
:currency_amount => "10.00",
|
2369
|
+
:currency_iso_code => "USD"
|
2370
|
+
}
|
2371
|
+
}
|
2372
|
+
)
|
2373
|
+
result.success?.should == true
|
2374
|
+
result.transaction.status.should == Braintree::Transaction::Status::Authorized
|
2375
|
+
result.transaction.amex_rewards_response.should be_nil
|
2376
|
+
|
2377
|
+
result = Braintree::Transaction.submit_for_settlement(result.transaction.id)
|
2378
|
+
result.success?.should == true
|
2379
|
+
result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
|
2380
|
+
result.transaction.amex_rewards_response.should == "success"
|
2381
|
+
end
|
2382
|
+
|
2383
|
+
it "returns an error if the credit card is not eligible" do
|
2384
|
+
result = Braintree::Transaction.sale(
|
2385
|
+
:amount => Braintree::Test::TransactionAmounts::Authorize,
|
2386
|
+
:credit_card => {
|
2387
|
+
:number => Braintree::Test::CreditCardNumbers::AmExes[0],
|
2388
|
+
:expiration_date => "05/2009"
|
2389
|
+
},
|
2390
|
+
:options => {
|
2391
|
+
:amex_rewards => {
|
2392
|
+
:request_id => Braintree::Test::AmexRewards::RequestIds::CardIneligible,
|
2393
|
+
:points => "1000",
|
2394
|
+
:currency_amount => "10.00",
|
2395
|
+
:currency_iso_code => "USD"
|
2396
|
+
}
|
2397
|
+
}
|
2398
|
+
)
|
2399
|
+
result.success?.should == true
|
2400
|
+
result.transaction.status.should == Braintree::Transaction::Status::Authorized
|
2401
|
+
result.transaction.amex_rewards_response.should be_nil
|
2402
|
+
|
2403
|
+
result = Braintree::Transaction.submit_for_settlement(result.transaction.id)
|
2404
|
+
result.success?.should == true
|
2405
|
+
result.transaction.status.should == Braintree::Transaction::Status::SubmittedForSettlement
|
2406
|
+
result.transaction.amex_rewards_response.should == "RDM2002 Card is not eligible for redemption"
|
2407
|
+
end
|
2408
|
+
end
|
2409
|
+
end
|
2308
2410
|
end
|
2309
2411
|
|
2310
2412
|
describe "self.sale!" do
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: braintree
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.48.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Braintree
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-09-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: builder
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.0.0
|
27
27
|
description: Ruby library for integrating with the Braintree Gateway
|
@@ -30,204 +30,205 @@ executables: []
|
|
30
30
|
extensions: []
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
|
-
- LICENSE
|
34
33
|
- README.rdoc
|
35
|
-
-
|
36
|
-
- lib/braintree.rb
|
37
|
-
- lib/braintree/
|
38
|
-
- lib/braintree/add_on_gateway.rb
|
39
|
-
- lib/braintree/address.rb
|
40
|
-
- lib/braintree/address/country_names.rb
|
41
|
-
- lib/braintree/address_gateway.rb
|
42
|
-
- lib/braintree/advanced_search.rb
|
43
|
-
- lib/braintree/android_pay_card.rb
|
34
|
+
- LICENSE
|
35
|
+
- lib/braintree/plan.rb
|
36
|
+
- lib/braintree/payment_instrument_type.rb
|
44
37
|
- lib/braintree/apple_pay_card.rb
|
45
|
-
- lib/braintree/
|
46
|
-
- lib/braintree/client_token.rb
|
47
|
-
- lib/braintree/client_token_gateway.rb
|
48
|
-
- lib/braintree/coinbase_account.rb
|
49
|
-
- lib/braintree/configuration.rb
|
50
|
-
- lib/braintree/credentials_parser.rb
|
51
|
-
- lib/braintree/credit_card.rb
|
52
|
-
- lib/braintree/credit_card_gateway.rb
|
53
|
-
- lib/braintree/credit_card_verification.rb
|
54
|
-
- lib/braintree/credit_card_verification_gateway.rb
|
55
|
-
- lib/braintree/credit_card_verification_search.rb
|
56
|
-
- lib/braintree/customer.rb
|
57
|
-
- lib/braintree/customer_gateway.rb
|
58
|
-
- lib/braintree/customer_search.rb
|
59
|
-
- lib/braintree/descriptor.rb
|
60
|
-
- lib/braintree/digest.rb
|
61
|
-
- lib/braintree/disbursement.rb
|
62
|
-
- lib/braintree/discount.rb
|
63
|
-
- lib/braintree/discount_gateway.rb
|
38
|
+
- lib/braintree/exceptions.rb
|
64
39
|
- lib/braintree/dispute.rb
|
65
|
-
- lib/braintree/
|
66
|
-
- lib/braintree/
|
67
|
-
- lib/braintree/error_result.rb
|
40
|
+
- lib/braintree/oauth_credentials.rb
|
41
|
+
- lib/braintree/testing_gateway.rb
|
68
42
|
- lib/braintree/errors.rb
|
69
|
-
- lib/braintree/
|
70
|
-
- lib/braintree/
|
71
|
-
- lib/braintree/
|
43
|
+
- lib/braintree/address/country_names.rb
|
44
|
+
- lib/braintree/address_gateway.rb
|
45
|
+
- lib/braintree/transaction/customer_details.rb
|
46
|
+
- lib/braintree/transaction/subscription_details.rb
|
47
|
+
- lib/braintree/transaction/apple_pay_details.rb
|
48
|
+
- lib/braintree/transaction/paypal_details.rb
|
49
|
+
- lib/braintree/transaction/disbursement_details.rb
|
50
|
+
- lib/braintree/transaction/android_pay_details.rb
|
51
|
+
- lib/braintree/transaction/coinbase_details.rb
|
52
|
+
- lib/braintree/transaction/status_details.rb
|
53
|
+
- lib/braintree/transaction/credit_card_details.rb
|
54
|
+
- lib/braintree/transaction/address_details.rb
|
55
|
+
- lib/braintree/digest.rb
|
56
|
+
- lib/braintree/coinbase_account.rb
|
57
|
+
- lib/braintree/base_module.rb
|
58
|
+
- lib/braintree/add_on.rb
|
59
|
+
- lib/braintree/signature_service.rb
|
72
60
|
- lib/braintree/gateway.rb
|
73
|
-
- lib/braintree/
|
74
|
-
- lib/braintree/
|
75
|
-
- lib/braintree/
|
76
|
-
- lib/braintree/
|
61
|
+
- lib/braintree/three_d_secure_info.rb
|
62
|
+
- lib/braintree/dispute/transaction_details.rb
|
63
|
+
- lib/braintree/credentials_parser.rb
|
64
|
+
- lib/braintree/payment_method_nonce.rb
|
65
|
+
- lib/braintree/address.rb
|
77
66
|
- lib/braintree/merchant_account/business_details.rb
|
78
67
|
- lib/braintree/merchant_account/funding_details.rb
|
68
|
+
- lib/braintree/merchant_account/address_details.rb
|
79
69
|
- lib/braintree/merchant_account/individual_details.rb
|
80
|
-
- lib/braintree/
|
81
|
-
- lib/braintree/merchant_gateway.rb
|
82
|
-
- lib/braintree/modification.rb
|
83
|
-
- lib/braintree/oauth_credentials.rb
|
84
|
-
- lib/braintree/oauth_gateway.rb
|
85
|
-
- lib/braintree/payment_instrument_type.rb
|
86
|
-
- lib/braintree/payment_method.rb
|
87
|
-
- lib/braintree/payment_method_gateway.rb
|
88
|
-
- lib/braintree/payment_method_nonce.rb
|
89
|
-
- lib/braintree/payment_method_nonce_gateway.rb
|
90
|
-
- lib/braintree/paypal_account.rb
|
91
|
-
- lib/braintree/paypal_account_gateway.rb
|
92
|
-
- lib/braintree/plan.rb
|
93
|
-
- lib/braintree/plan_gateway.rb
|
70
|
+
- lib/braintree/subscription.rb
|
94
71
|
- lib/braintree/resource_collection.rb
|
95
|
-
- lib/braintree/
|
96
|
-
- lib/braintree/
|
97
|
-
- lib/braintree/
|
72
|
+
- lib/braintree/descriptor.rb
|
73
|
+
- lib/braintree/client_token_gateway.rb
|
74
|
+
- lib/braintree/plan_gateway.rb
|
75
|
+
- lib/braintree/europe_bank_account_gateway.rb
|
76
|
+
- lib/braintree/discount_gateway.rb
|
77
|
+
- lib/braintree/paypal_account.rb
|
78
|
+
- lib/braintree/transparent_redirect_gateway.rb
|
79
|
+
- lib/braintree/webhook_notification.rb
|
80
|
+
- lib/braintree/util.rb
|
98
81
|
- lib/braintree/settlement_batch_summary_gateway.rb
|
99
|
-
- lib/braintree/
|
100
|
-
- lib/braintree/
|
101
|
-
- lib/braintree/
|
102
|
-
- lib/braintree/
|
103
|
-
- lib/braintree/
|
104
|
-
- lib/braintree/
|
105
|
-
- lib/braintree/successful_result.rb
|
106
|
-
- lib/braintree/test/credit_card.rb
|
107
|
-
- lib/braintree/test/merchant_account.rb
|
82
|
+
- lib/braintree/settlement_batch_summary.rb
|
83
|
+
- lib/braintree/webhook_testing_gateway.rb
|
84
|
+
- lib/braintree/customer_gateway.rb
|
85
|
+
- lib/braintree/oauth_gateway.rb
|
86
|
+
- lib/braintree/version.rb
|
87
|
+
- lib/braintree/webhook_notification_gateway.rb
|
108
88
|
- lib/braintree/test/nonce.rb
|
109
|
-
- lib/braintree/test/
|
89
|
+
- lib/braintree/test/amex_rewards.rb
|
110
90
|
- lib/braintree/test/venmo_sdk.rb
|
111
|
-
- lib/braintree/
|
112
|
-
- lib/braintree/
|
113
|
-
- lib/braintree/
|
91
|
+
- lib/braintree/test/merchant_account.rb
|
92
|
+
- lib/braintree/test/credit_card.rb
|
93
|
+
- lib/braintree/test/transaction_amounts.rb
|
94
|
+
- lib/braintree/subscription_gateway.rb
|
95
|
+
- lib/braintree/configuration.rb
|
96
|
+
- lib/braintree/merchant.rb
|
97
|
+
- lib/braintree/http.rb
|
98
|
+
- lib/braintree/validation_error_collection.rb
|
114
99
|
- lib/braintree/transaction.rb
|
115
|
-
- lib/braintree/transaction/address_details.rb
|
116
|
-
- lib/braintree/transaction/android_pay_details.rb
|
117
|
-
- lib/braintree/transaction/apple_pay_details.rb
|
118
|
-
- lib/braintree/transaction/coinbase_details.rb
|
119
|
-
- lib/braintree/transaction/credit_card_details.rb
|
120
|
-
- lib/braintree/transaction/customer_details.rb
|
121
|
-
- lib/braintree/transaction/disbursement_details.rb
|
122
|
-
- lib/braintree/transaction/paypal_details.rb
|
123
|
-
- lib/braintree/transaction/status_details.rb
|
124
|
-
- lib/braintree/transaction/subscription_details.rb
|
125
100
|
- lib/braintree/transaction_gateway.rb
|
126
|
-
- lib/braintree/transaction_search.rb
|
127
|
-
- lib/braintree/transparent_redirect.rb
|
128
|
-
- lib/braintree/transparent_redirect_gateway.rb
|
129
|
-
- lib/braintree/unknown_payment_method.rb
|
130
|
-
- lib/braintree/util.rb
|
131
|
-
- lib/braintree/validation_error.rb
|
132
|
-
- lib/braintree/validation_error_collection.rb
|
133
|
-
- lib/braintree/version.rb
|
134
|
-
- lib/braintree/webhook_notification.rb
|
135
|
-
- lib/braintree/webhook_notification_gateway.rb
|
136
|
-
- lib/braintree/webhook_testing.rb
|
137
|
-
- lib/braintree/webhook_testing_gateway.rb
|
138
101
|
- lib/braintree/xml.rb
|
102
|
+
- lib/braintree/credit_card_verification.rb
|
103
|
+
- lib/braintree/subscription_search.rb
|
104
|
+
- lib/braintree/client_token.rb
|
105
|
+
- lib/braintree/discount.rb
|
106
|
+
- lib/braintree/customer.rb
|
107
|
+
- lib/braintree/sha256_digest.rb
|
108
|
+
- lib/braintree/credit_card_verification_gateway.rb
|
109
|
+
- lib/braintree/merchant_account.rb
|
110
|
+
- lib/braintree/risk_data.rb
|
111
|
+
- lib/braintree/successful_result.rb
|
112
|
+
- lib/braintree/payment_method.rb
|
113
|
+
- lib/braintree/europe_bank_account.rb
|
114
|
+
- lib/braintree/transaction_search.rb
|
115
|
+
- lib/braintree/settlement_batch.rb
|
116
|
+
- lib/braintree/error_result.rb
|
117
|
+
- lib/braintree/test_transaction.rb
|
118
|
+
- lib/braintree/credit_card.rb
|
119
|
+
- lib/braintree/merchant_gateway.rb
|
120
|
+
- lib/braintree/modification.rb
|
121
|
+
- lib/braintree/credit_card_verification_search.rb
|
139
122
|
- lib/braintree/xml/generator.rb
|
140
|
-
- lib/braintree/xml/libxml.rb
|
141
123
|
- lib/braintree/xml/parser.rb
|
142
124
|
- lib/braintree/xml/rexml.rb
|
125
|
+
- lib/braintree/xml/libxml.rb
|
126
|
+
- lib/braintree/android_pay_card.rb
|
127
|
+
- lib/braintree/customer_search.rb
|
128
|
+
- lib/braintree/transparent_redirect.rb
|
129
|
+
- lib/braintree/subscription/status_details.rb
|
130
|
+
- lib/braintree/payment_method_nonce_gateway.rb
|
131
|
+
- lib/braintree/disbursement.rb
|
132
|
+
- lib/braintree/webhook_testing.rb
|
133
|
+
- lib/braintree/advanced_search.rb
|
134
|
+
- lib/braintree/add_on_gateway.rb
|
135
|
+
- lib/braintree/merchant_account_gateway.rb
|
136
|
+
- lib/braintree/error_codes.rb
|
137
|
+
- lib/braintree/validation_error.rb
|
138
|
+
- lib/braintree/payment_method_gateway.rb
|
139
|
+
- lib/braintree/unknown_payment_method.rb
|
140
|
+
- lib/braintree/credit_card_gateway.rb
|
141
|
+
- lib/braintree/paypal_account_gateway.rb
|
142
|
+
- lib/braintree.rb
|
143
143
|
- lib/ssl/api_braintreegateway_com.ca.crt
|
144
144
|
- lib/ssl/sandbox_braintreegateway_com.ca.crt
|
145
|
-
- lib/ssl/securetrust_ca.crt
|
146
145
|
- lib/ssl/www_braintreegateway_com.ca.crt
|
146
|
+
- lib/ssl/securetrust_ca.crt
|
147
147
|
- spec/hacks/tcp_socket.rb
|
148
|
-
- spec/httpsd.pid
|
149
|
-
- spec/integration/braintree/add_on_spec.rb
|
150
|
-
- spec/integration/braintree/address_spec.rb
|
151
|
-
- spec/integration/braintree/advanced_search_spec.rb
|
152
|
-
- spec/integration/braintree/client_api/client_token_spec.rb
|
153
|
-
- spec/integration/braintree/client_api/spec_helper.rb
|
154
|
-
- spec/integration/braintree/coinbase_spec.rb
|
155
|
-
- spec/integration/braintree/credit_card_spec.rb
|
156
|
-
- spec/integration/braintree/credit_card_verification_search_spec.rb
|
157
|
-
- spec/integration/braintree/credit_card_verification_spec.rb
|
158
|
-
- spec/integration/braintree/customer_search_spec.rb
|
159
|
-
- spec/integration/braintree/customer_spec.rb
|
160
|
-
- spec/integration/braintree/disbursement_spec.rb
|
161
|
-
- spec/integration/braintree/discount_spec.rb
|
162
|
-
- spec/integration/braintree/error_codes_spec.rb
|
163
|
-
- spec/integration/braintree/http_spec.rb
|
164
|
-
- spec/integration/braintree/merchant_account_spec.rb
|
165
|
-
- spec/integration/braintree/merchant_spec.rb
|
166
|
-
- spec/integration/braintree/oauth_spec.rb
|
167
|
-
- spec/integration/braintree/payment_method_nonce_spec.rb
|
168
|
-
- spec/integration/braintree/payment_method_spec.rb
|
169
|
-
- spec/integration/braintree/paypal_account_spec.rb
|
170
|
-
- spec/integration/braintree/plan_spec.rb
|
171
|
-
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
172
|
-
- spec/integration/braintree/subscription_spec.rb
|
173
|
-
- spec/integration/braintree/test/transaction_amounts_spec.rb
|
174
|
-
- spec/integration/braintree/test_transaction_spec.rb
|
175
|
-
- spec/integration/braintree/transaction_search_spec.rb
|
176
|
-
- spec/integration/braintree/transaction_spec.rb
|
177
|
-
- spec/integration/braintree/transparent_redirect_spec.rb
|
178
|
-
- spec/integration/spec_helper.rb
|
179
|
-
- spec/oauth_test_helper.rb
|
180
148
|
- spec/script/httpsd.rb
|
181
|
-
- spec/
|
182
|
-
- spec/spec_helper.rb
|
149
|
+
- spec/ssl/privateKey.key
|
183
150
|
- spec/ssl/certificate.crt
|
184
151
|
- spec/ssl/geotrust_global.crt
|
185
|
-
- spec/
|
186
|
-
- spec/unit/braintree/
|
187
|
-
- spec/unit/braintree/
|
188
|
-
- spec/unit/braintree/
|
152
|
+
- spec/spec.opts
|
153
|
+
- spec/unit/braintree/risk_data_spec.rb
|
154
|
+
- spec/unit/braintree/webhook_notification_spec.rb
|
155
|
+
- spec/unit/braintree/subscription_spec.rb
|
156
|
+
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
157
|
+
- spec/unit/braintree/transaction/credit_card_details_spec.rb
|
158
|
+
- spec/unit/braintree/transaction/customer_details_spec.rb
|
189
159
|
- spec/unit/braintree/client_token_spec.rb
|
190
|
-
- spec/unit/braintree/
|
191
|
-
- spec/unit/braintree/credentials_parser_spec.rb
|
192
|
-
- spec/unit/braintree/credit_card_spec.rb
|
160
|
+
- spec/unit/braintree/successful_result_spec.rb
|
193
161
|
- spec/unit/braintree/credit_card_verification_search_spec.rb
|
194
|
-
- spec/unit/braintree/
|
195
|
-
- spec/unit/braintree/customer_spec.rb
|
196
|
-
- spec/unit/braintree/digest_spec.rb
|
197
|
-
- spec/unit/braintree/disbursement_spec.rb
|
198
|
-
- spec/unit/braintree/dispute_spec.rb
|
199
|
-
- spec/unit/braintree/error_result_spec.rb
|
200
|
-
- spec/unit/braintree/errors_spec.rb
|
162
|
+
- spec/unit/braintree/subscription_search_spec.rb
|
201
163
|
- spec/unit/braintree/http_spec.rb
|
164
|
+
- spec/unit/braintree/unknown_payment_method_spec.rb
|
165
|
+
- spec/unit/braintree/disbursement_spec.rb
|
202
166
|
- spec/unit/braintree/merchant_account_spec.rb
|
203
|
-
- spec/unit/braintree/
|
204
|
-
- spec/unit/braintree/
|
167
|
+
- spec/unit/braintree/digest_spec.rb
|
168
|
+
- spec/unit/braintree/base_module_spec.rb
|
205
169
|
- spec/unit/braintree/paypal_account_spec.rb
|
206
|
-
- spec/unit/braintree/
|
207
|
-
- spec/unit/braintree/
|
208
|
-
- spec/unit/braintree/
|
209
|
-
- spec/unit/braintree/
|
210
|
-
- spec/unit/braintree/
|
211
|
-
- spec/unit/braintree/subscription_spec.rb
|
212
|
-
- spec/unit/braintree/successful_result_spec.rb
|
170
|
+
- spec/unit/braintree/credit_card_spec.rb
|
171
|
+
- spec/unit/braintree/validation_error_spec.rb
|
172
|
+
- spec/unit/braintree/credit_card_verification_spec.rb
|
173
|
+
- spec/unit/braintree/errors_spec.rb
|
174
|
+
- spec/unit/braintree/apple_pay_card_spec.rb
|
213
175
|
- spec/unit/braintree/three_d_secure_info_spec.rb
|
214
|
-
- spec/unit/braintree/
|
215
|
-
- spec/unit/braintree/transaction/customer_details_spec.rb
|
216
|
-
- spec/unit/braintree/transaction/deposit_details_spec.rb
|
217
|
-
- spec/unit/braintree/transaction_search_spec.rb
|
176
|
+
- spec/unit/braintree/validation_error_collection_spec.rb
|
218
177
|
- spec/unit/braintree/transaction_spec.rb
|
178
|
+
- spec/unit/braintree/resource_collection_spec.rb
|
219
179
|
- spec/unit/braintree/transparent_redirect_spec.rb
|
220
|
-
- spec/unit/braintree/
|
180
|
+
- spec/unit/braintree/credentials_parser_spec.rb
|
181
|
+
- spec/unit/braintree/customer_spec.rb
|
182
|
+
- spec/unit/braintree/address_spec.rb
|
221
183
|
- spec/unit/braintree/util_spec.rb
|
222
|
-
- spec/unit/braintree/
|
223
|
-
- spec/unit/braintree/
|
224
|
-
- spec/unit/braintree/
|
225
|
-
- spec/unit/braintree/
|
184
|
+
- spec/unit/braintree/dispute_spec.rb
|
185
|
+
- spec/unit/braintree/sha256_digest_spec.rb
|
186
|
+
- spec/unit/braintree/error_result_spec.rb
|
187
|
+
- spec/unit/braintree/transaction_search_spec.rb
|
226
188
|
- spec/unit/braintree/xml/parser_spec.rb
|
227
189
|
- spec/unit/braintree/xml/rexml_spec.rb
|
190
|
+
- spec/unit/braintree/xml/libxml_spec.rb
|
191
|
+
- spec/unit/braintree/payment_method_spec.rb
|
228
192
|
- spec/unit/braintree/xml_spec.rb
|
193
|
+
- spec/unit/braintree/configuration_spec.rb
|
194
|
+
- spec/unit/braintree/signature_service_spec.rb
|
195
|
+
- spec/unit/braintree/modification_spec.rb
|
229
196
|
- spec/unit/braintree_spec.rb
|
230
197
|
- spec/unit/spec_helper.rb
|
198
|
+
- spec/httpsd.pid
|
199
|
+
- spec/oauth_test_helper.rb
|
200
|
+
- spec/spec_helper.rb
|
201
|
+
- spec/integration/braintree/test_transaction_spec.rb
|
202
|
+
- spec/integration/braintree/advanced_search_spec.rb
|
203
|
+
- spec/integration/braintree/subscription_spec.rb
|
204
|
+
- spec/integration/braintree/credit_card_verification_search_spec.rb
|
205
|
+
- spec/integration/braintree/payment_method_nonce_spec.rb
|
206
|
+
- spec/integration/braintree/http_spec.rb
|
207
|
+
- spec/integration/braintree/merchant_spec.rb
|
208
|
+
- spec/integration/braintree/disbursement_spec.rb
|
209
|
+
- spec/integration/braintree/merchant_account_spec.rb
|
210
|
+
- spec/integration/braintree/plan_spec.rb
|
211
|
+
- spec/integration/braintree/settlement_batch_summary_spec.rb
|
212
|
+
- spec/integration/braintree/paypal_account_spec.rb
|
213
|
+
- spec/integration/braintree/credit_card_spec.rb
|
214
|
+
- spec/integration/braintree/error_codes_spec.rb
|
215
|
+
- spec/integration/braintree/credit_card_verification_spec.rb
|
216
|
+
- spec/integration/braintree/test/transaction_amounts_spec.rb
|
217
|
+
- spec/integration/braintree/add_on_spec.rb
|
218
|
+
- spec/integration/braintree/oauth_spec.rb
|
219
|
+
- spec/integration/braintree/transaction_spec.rb
|
220
|
+
- spec/integration/braintree/transparent_redirect_spec.rb
|
221
|
+
- spec/integration/braintree/customer_spec.rb
|
222
|
+
- spec/integration/braintree/address_spec.rb
|
223
|
+
- spec/integration/braintree/coinbase_spec.rb
|
224
|
+
- spec/integration/braintree/client_api/client_token_spec.rb
|
225
|
+
- spec/integration/braintree/client_api/spec_helper.rb
|
226
|
+
- spec/integration/braintree/transaction_search_spec.rb
|
227
|
+
- spec/integration/braintree/discount_spec.rb
|
228
|
+
- spec/integration/braintree/payment_method_spec.rb
|
229
|
+
- spec/integration/braintree/customer_search_spec.rb
|
230
|
+
- spec/integration/spec_helper.rb
|
231
|
+
- braintree.gemspec
|
231
232
|
homepage: http://www.braintreepayments.com/
|
232
233
|
licenses:
|
233
234
|
- MIT
|
@@ -238,17 +239,17 @@ require_paths:
|
|
238
239
|
- lib
|
239
240
|
required_ruby_version: !ruby/object:Gem::Requirement
|
240
241
|
requirements:
|
241
|
-
- -
|
242
|
+
- - '>='
|
242
243
|
- !ruby/object:Gem::Version
|
243
244
|
version: '0'
|
244
245
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
245
246
|
requirements:
|
246
|
-
- -
|
247
|
+
- - '>='
|
247
248
|
- !ruby/object:Gem::Version
|
248
249
|
version: '0'
|
249
250
|
requirements: []
|
250
251
|
rubyforge_project: braintree
|
251
|
-
rubygems_version: 2.
|
252
|
+
rubygems_version: 2.0.3
|
252
253
|
signing_key:
|
253
254
|
specification_version: 4
|
254
255
|
summary: Braintree Gateway Ruby Client Library
|