for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Tharanga Kothalawala <[email protected]>
* @date 15-02-2021
*/
namespace TSK\SSO\ThirdParty\Stripe;
* This represents a stripe oauth configuration
*
* @package TSK\SSO\ThirdParty\Stripe
class StripeConfiguration
{
* @var string Stripe Client ID
* @see https://dashboard.stripe.com/settings/applications
private $clientId;
* @var string Stripe Client Secret
private $clientSecret;
* @var string Redirection URL back to the client application
private $redirectUrl;
* StripeConfiguration constructor.
* @param string $clientId Stripe Client ID
* @param string $clientSecret Stripe Client Secret
* @param string $redirectUrl Redirection URL back to the client application
public function __construct($clientId, $clientSecret, $redirectUrl)
$this->clientId = $clientId;
$this->clientSecret = $clientSecret;
$this->redirectUrl = $redirectUrl;
}
* @return string
public function clientId()
return $this->clientId;
public function clientSecret()
return $this->clientSecret;
public function redirectUrl()
return $this->redirectUrl;
* This is just to identify that, we initiated the login sequence (not someone else)
public function ourSecretState()
return md5($this->clientId);