public function HostedFields::generateClientToken in Commerce Braintree 8
Generates the client token.
Used by the add-payment-method plugin form and review checkout pane.
Return value
string The client token.
Overrides HostedFieldsInterface::generateClientToken
File
- src/
Plugin/ Commerce/ PaymentGateway/ HostedFields.php, line 202
Class
- HostedFields
- Provides the HostedFields payment gateway.
Namespace
Drupal\commerce_braintree\Plugin\Commerce\PaymentGatewayCode
public function generateClientToken() {
return $this->api
->clientToken()
->generate();
}