You are here

public function HostedFields::findPaymentMethodNonce in Commerce Braintree 8

Finds a payment method nonce.

Used by the review checkout pane.

Return value

/Braintree/PaymentMethodNonce The PaymentMethodNonce response object.

Overrides HostedFieldsInterface::findPaymentMethodNonce

File

src/Plugin/Commerce/PaymentGateway/HostedFields.php, line 195

Class

HostedFields
Provides the HostedFields payment gateway.

Namespace

Drupal\commerce_braintree\Plugin\Commerce\PaymentGateway

Code

public function findPaymentMethodNonce($payment_method_nonce) {
  return $this->api
    ->paymentMethodNonce()
    ->find($payment_method_nonce);
}