Cartalyst\Stripe\ConfigInterface::setApiKey PHP Method

setApiKey() public method

Sets the Stripe API key.
public setApiKey ( string $apiKey )
$apiKey string
    public function setApiKey($apiKey);

Usage Example

Example #1
0
 /**
  * Sets the Stripe API key.
  *
  * @param  string  $apiKey
  * @return $this
  */
 public function setApiKey($apiKey)
 {
     $this->config->setApiKey($apiKey);
     return $this;
 }