« lib/WebService/Braintree/EuropeBankAccountGateway.pm
↑ Summary
lib/WebService/Braintree/UsBankAccountGateway.pm »
| 1 | # vim: sw=4 ts=4 ft=perl | ||||||||||
| 2 | |||||||||||
| 3 | package # hide from pause | ||||||||||
| 4 | WebService::Braintree::IdealPaymentGateway; | ||||||||||
| 5 | |||||||||||
| 6 | 22 | ▶ | use 5.010_001; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 22 | ▶ | use strictures 1; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | |||||||||||
| 9 | 22 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 22 | extends 'WebService::Braintree::PaymentMethodGatewayBase'; | |||||||||
| 11 | |||||||||||
| 12 | 22 | ▶ | use Carp qw(confess); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 22 | ▶ | use WebService::Braintree::Util qw(is_not_empty validate_id); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | 22 | ▶ | use WebService::Braintree::_::IdealPayment; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 17 | |||||||||||
| 18 | 0 | ▶ | sub find { | ||||||||
|
Subroutine
find: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 19 | 0 | my ($self, $token) = @_; | |||||||||
| 20 | 0 | ▶ | confess "NotFoundError" unless validate_id($token); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 0 | return $self->_find(ideal_payment => ( | |||||||||
| 22 | "/payment_methods/ideal_payment/${token}", 'get', undef, | ||||||||||
| 23 | )); | ||||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 22 | __PACKAGE__->meta->make_immutable; | |||||||||
| 27 | |||||||||||
| 28 | 22 | 1; | |||||||||
| 29 | __END__ | ||||||||||