Skip to content

Commit

Permalink
Update checkout api after refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
zaporylie committed Aug 1, 2024
1 parent 0e2ba59 commit 1ec4357
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/Api/v3/Checkout.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class Checkout extends ApiBase implements CheckoutInterface
*/
public function createCheckoutSession(CreateCheckoutSessionRequest $request): CreateCheckoutSessionResponse
{
$resource = new CreateCheckoutSession($this->client, $this->clientSecret, $request);
$resource = new CreateCheckoutSession($this->client, $request);
return $resource->call();
}

Expand All @@ -54,7 +54,7 @@ public function createCheckoutSession(CreateCheckoutSessionRequest $request): Cr
*/
public function getCheckoutSession(string $reference): GetCheckoutSessionResponse
{
$resource = new GetCheckoutSession($this->client, $this->clientSecret, $reference);
$resource = new GetCheckoutSession($this->client, $reference);
return $resource->call();
}
}
3 changes: 1 addition & 2 deletions src/Resource/Checkout/v3/CreateCheckoutSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ class CreateCheckoutSession extends PaymentResourceBase
* InitiatePayment constructor.
*
* @param \zaporylie\Vipps\ClientInterface $client
* @param string $subscription_key
* @param \zaporylie\Vipps\Model\EPayment\v1\CreatePaymentRequest $request
* @param \zaporylie\Vipps\Model\Checkout\v3\CreateCheckoutSessionRequest $request
*/
public function __construct(ClientInterface $client, CreateCheckoutSessionRequest $request)
{
Expand Down
1 change: 0 additions & 1 deletion src/Resource/Checkout/v3/GetCheckoutSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class GetCheckoutSession extends PaymentResourceBase
* InitiatePayment constructor.
*
* @param \zaporylie\Vipps\ClientInterface $client
* @param string $subscription_key
* @param string $reference
*/
public function __construct(ClientInterface $client, string $reference)
Expand Down

0 comments on commit 1ec4357

Please sign in to comment.