mirror of
https://github.com/nothingworksinc/ticketbeast.git
synced 2026-02-11 16:52:09 +00:00
57 - Don't Mock What You Don't Own
This commit is contained in:
@@ -22,3 +22,27 @@ class StripePaymentGateway implements PaymentGateway
|
||||
], ['api_key' => $this->apiKey]);
|
||||
}
|
||||
}
|
||||
|
||||
// class StripePaymentGateway implements PaymentGateway
|
||||
// {
|
||||
// private $apiKey;
|
||||
|
||||
// public function __construct($apiKey)
|
||||
// {
|
||||
// $this->apiKey = $apiKey;
|
||||
// }
|
||||
|
||||
// public function charge($amount, $token)
|
||||
// {
|
||||
// (new \GuzzleHttp\Client)->post('https://api.stripe.com/v1/charges', [
|
||||
// 'headers' => [
|
||||
// 'Authorization' => "Bearer {$this->apiKey}",
|
||||
// ],
|
||||
// 'form_params' => [
|
||||
// 'amount' => $amount,
|
||||
// 'token' => $token,
|
||||
// 'currency' => 'usd',
|
||||
// ]
|
||||
// ]);
|
||||
// }
|
||||
// }
|
||||
|
||||
Reference in New Issue
Block a user