| 1 | package Net::Braintree::ClientToken; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use constant DEFAULT_VERSION => "2"; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 0 | ▶ | sub generate { | ||||||||
|
Subroutine
generate: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 6 | 0 | my ($class, $params) = @_; | |||||||||
| 7 | 0 | ▶ | if (!exists $params->{version}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 8 | 0 | $params->{version} = DEFAULT_VERSION; | |||||||||
| 9 | } | ||||||||||
| 10 | |||||||||||
| 11 | 0 | $class->gateway->client_token->generate($params); | |||||||||
| 12 | } | ||||||||||
| 13 | |||||||||||
| 14 | 0 | ▶ | sub gateway { | ||||||||
|
Subroutine
gateway: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||
| 15 | 0 | Net::Braintree->configuration->gateway; | |||||||||
| 16 | } | ||||||||||
| 17 | |||||||||||
| 18 | 1 | 1; | |||||||||