line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package WebService::Braintree::Gateway; |
2
|
|
|
|
|
|
|
$WebService::Braintree::Gateway::VERSION = '0.93'; |
3
|
|
|
|
|
|
|
|
4
|
1
|
|
|
1
|
|
472
|
use WebService::Braintree::AddressGateway; |
|
1
|
|
|
|
|
4
|
|
|
1
|
|
|
|
|
40
|
|
5
|
1
|
|
|
1
|
|
473
|
use WebService::Braintree::ClientTokenGateway; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
50
|
|
6
|
1
|
|
|
1
|
|
559
|
use WebService::Braintree::CreditCardGateway; |
|
1
|
|
|
|
|
3
|
|
|
1
|
|
|
|
|
41
|
|
7
|
1
|
|
|
1
|
|
497
|
use WebService::Braintree::CreditCardVerificationGateway; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
60
|
|
8
|
1
|
|
|
1
|
|
556
|
use WebService::Braintree::CustomerGateway; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
65
|
|
9
|
1
|
|
|
1
|
|
588
|
use WebService::Braintree::MerchantAccountGateway; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
54
|
|
10
|
1
|
|
|
1
|
|
851
|
use WebService::Braintree::PaymentMethodGateway; |
|
1
|
|
|
|
|
6
|
|
|
1
|
|
|
|
|
62
|
|
11
|
1
|
|
|
1
|
|
502
|
use WebService::Braintree::PaymentMethodNonceGateway; |
|
1
|
|
|
|
|
8
|
|
|
1
|
|
|
|
|
61
|
|
12
|
1
|
|
|
1
|
|
598
|
use WebService::Braintree::PayPalAccountGateway; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
65
|
|
13
|
1
|
|
|
1
|
|
721
|
use WebService::Braintree::SettlementBatchSummaryGateway; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
62
|
|
14
|
1
|
|
|
1
|
|
14
|
use WebService::Braintree::SubscriptionGateway; |
|
1
|
|
|
|
|
5
|
|
|
1
|
|
|
|
|
41
|
|
15
|
1
|
|
|
1
|
|
723
|
use WebService::Braintree::TransactionGateway; |
|
1
|
|
|
|
|
7
|
|
|
1
|
|
|
|
|
58
|
|
16
|
1
|
|
|
1
|
|
623
|
use WebService::Braintree::TransparentRedirectGateway; |
|
0
|
|
|
|
|
|
|
|
0
|
|
|
|
|
|
|
17
|
|
|
|
|
|
|
use WebService::Braintree::WebhookNotificationGateway; |
18
|
|
|
|
|
|
|
use WebService::Braintree::WebhookTestingGateway; |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
use Moose; |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
has 'config' => (is => 'ro'); |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
has 'address' => (is => 'ro', lazy => 1, default => sub { |
25
|
|
|
|
|
|
|
my $self = shift; |
26
|
|
|
|
|
|
|
WebService::Braintree::AddressGateway->new(gateway => $self); |
27
|
|
|
|
|
|
|
}); |
28
|
|
|
|
|
|
|
|
29
|
|
|
|
|
|
|
has 'client_token' => (is => 'ro', lazy => 1, default => sub { |
30
|
|
|
|
|
|
|
my $self = shift; |
31
|
|
|
|
|
|
|
WebService::Braintree::ClientTokenGateway->new(gateway => $self); |
32
|
|
|
|
|
|
|
}); |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
has 'credit_card' => (is => 'ro', lazy => 1, default => sub { |
35
|
|
|
|
|
|
|
my $self = shift; |
36
|
|
|
|
|
|
|
WebService::Braintree::CreditCardGateway->new(gateway => $self); |
37
|
|
|
|
|
|
|
}); |
38
|
|
|
|
|
|
|
|
39
|
|
|
|
|
|
|
has 'credit_card_verification' => (is => 'ro', lazy => 1, default => sub { |
40
|
|
|
|
|
|
|
my $self = shift; |
41
|
|
|
|
|
|
|
WebService::Braintree::CreditCardVerificationGateway->new(gateway => $self); |
42
|
|
|
|
|
|
|
}); |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
has 'customer' => (is => 'ro', lazy => 1, default => sub { |
45
|
|
|
|
|
|
|
my $self = shift; |
46
|
|
|
|
|
|
|
WebService::Braintree::CustomerGateway->new(gateway => $self); |
47
|
|
|
|
|
|
|
}); |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
has 'merchant_account' => (is => 'ro', lazy => 1, default => sub { |
50
|
|
|
|
|
|
|
my $self = shift; |
51
|
|
|
|
|
|
|
WebService::Braintree::MerchantAccountGateway->new(gateway => $self); |
52
|
|
|
|
|
|
|
}); |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
has 'payment_method' => (is => 'ro', lazy => 1, default => sub { |
55
|
|
|
|
|
|
|
my $self = shift; |
56
|
|
|
|
|
|
|
WebService::Braintree::PaymentMethodGateway->new(gateway => $self); |
57
|
|
|
|
|
|
|
}); |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
has 'payment_method_nonce' => (is => 'ro', lazy => 1, default => sub { |
60
|
|
|
|
|
|
|
my $self = shift; |
61
|
|
|
|
|
|
|
WebService::Braintree::PaymentMethodNonceGateway->new(gateway => $self); |
62
|
|
|
|
|
|
|
}); |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
has 'paypal_account' => (is => 'ro', lazy => 1, default => sub { |
65
|
|
|
|
|
|
|
my $self = shift; |
66
|
|
|
|
|
|
|
WebService::Braintree::PayPalAccountGateway->new(gateway => $self); |
67
|
|
|
|
|
|
|
}); |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
has 'settlement_batch_summary' => (is => 'ro', lazy => 1, default => sub { |
70
|
|
|
|
|
|
|
my $self = shift; |
71
|
|
|
|
|
|
|
WebService::Braintree::SettlementBatchSummaryGateway->new(gateway => $self); |
72
|
|
|
|
|
|
|
}); |
73
|
|
|
|
|
|
|
|
74
|
|
|
|
|
|
|
has 'subscription' => (is => 'ro', lazy => 1, default => sub { |
75
|
|
|
|
|
|
|
my $self = shift; |
76
|
|
|
|
|
|
|
WebService::Braintree::SubscriptionGateway->new(gateway => $self); |
77
|
|
|
|
|
|
|
}); |
78
|
|
|
|
|
|
|
|
79
|
|
|
|
|
|
|
has 'transaction' => (is => 'ro', lazy => 1, default => sub { |
80
|
|
|
|
|
|
|
my $self = shift; |
81
|
|
|
|
|
|
|
WebService::Braintree::TransactionGateway->new(gateway => $self); |
82
|
|
|
|
|
|
|
}); |
83
|
|
|
|
|
|
|
|
84
|
|
|
|
|
|
|
has 'transparent_redirect' => (is => 'ro', lazy => 1, default => sub { |
85
|
|
|
|
|
|
|
my $self = shift; |
86
|
|
|
|
|
|
|
WebService::Braintree::TransparentRedirectGateway->new(gateway => $self); |
87
|
|
|
|
|
|
|
}); |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
has 'webhook_notification' => (is => 'ro', lazy => 1, default => sub { |
90
|
|
|
|
|
|
|
my $self = shift; |
91
|
|
|
|
|
|
|
WebService::Braintree::WebhookNotificationGateway->new(gateway => $self); |
92
|
|
|
|
|
|
|
}); |
93
|
|
|
|
|
|
|
|
94
|
|
|
|
|
|
|
has 'webhook_testing' => (is => 'ro', lazy => 1, default => sub { |
95
|
|
|
|
|
|
|
my $self = shift; |
96
|
|
|
|
|
|
|
WebService::Braintree::WebhookTestingGateway->new(gateway => $self); |
97
|
|
|
|
|
|
|
}); |
98
|
|
|
|
|
|
|
|
99
|
|
|
|
|
|
|
sub http { |
100
|
|
|
|
|
|
|
WebService::Braintree::HTTP->new(config => shift->config); |
101
|
|
|
|
|
|
|
} |
102
|
|
|
|
|
|
|
|
103
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
104
|
|
|
|
|
|
|
1; |
105
|
|
|
|
|
|
|
|