NAME
Business::TrueLayer::Payment::Method - class representing a payment_method as used in the TrueLayer v3 API.
SYNOPSIS
my $PaymentMethod = Business::TrueLayer::Payment::Method->new(
name => ...
);
ATTRIBUTES
- type (Str)
- beneficiary
-
A Business::TrueLayer::Beneficiary object. Hash refs will be coerced.
- provider
-
A Business::TrueLayer::Provider object. Hash refs will be coerced.
METHODS
is_bank_transfer
is_mandate
Check if the payment method is a particular type
if ( $PaymentMethod->is_bank_transfer ) {
...
}