NAME
WebService::Braintree::PaymentMethodResult
PURPOSE
This class represents a result from the Braintree API with no validation errors. It is specifically used for results from PaymentMethod interfaces.
This class is a sibling class to WebService::Braintree::Result.
METHODS
Possible objects
These are the possible objects that are returnable by this object. If this result does not have anything for that method, it will return undef.
- amex_express_checkout_card
- android_pay_card
- apple_pay_card
- coinbase_account
- credit_card
- europe_bank_account
- masterpass_card
- payment_method_nonce
- paypal_account
- us_bank_account
- venmo_account
- visa_checkout_card
- unknown
-
If the response cannot match any of the other possible types, then the result will be in the
unknown()
.
payment_method()
This will return the value encapsulated in this PaymentMethodResult.
is_success
This always returns true.