public function CheckoutSdk::getClientToken in Commerce PayPal 8
Gets a client token.
Return value
\Psr\Http\Message\ResponseInterface The HTTP response.
Overrides CheckoutSdkInterface::getClientToken
File
- src/
CheckoutSdk.php, line 104
Class
- CheckoutSdk
- Provides a replacement of the PayPal SDK.
Namespace
Drupal\commerce_paypalCode
public function getClientToken() {
return $this->client
->post('/v1/identity/generate-token', [
'headers' => [
'Content-Type' => 'application/json',
],
]);
}