Skip to content

Commit

Permalink
various updates
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaEstes committed Dec 11, 2023
1 parent a979889 commit 828bc0c
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/SonsOfPHP/Contract/Gateway/PaymentProcessorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,9 @@ interface PaymentProcessorInterface
* This MAY BE used as a display on the frontend
*/
public function getName(): string;

/**
* Request is sent to the payment processor and a response is returned
*/
public function request(RequestInterface $request): ResponseInterface;
}
12 changes: 12 additions & 0 deletions src/SonsOfPHP/Contract/Gateway/RequestInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace SonsOfPHP\Contract\Gateway;

/**
* @author Joshua Estes <joshua@sonsofphp.com>
*/
interface RequestInterface
{
}
12 changes: 12 additions & 0 deletions src/SonsOfPHP/Contract/Gateway/ResponseInterface.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
<?php

declare(strict_types=1);

namespace SonsOfPHP\Contract\Gateway;

/**
* @author Joshua Estes <joshua@sonsofphp.com>
*/
interface ResponseInterface
{
}

0 comments on commit 828bc0c

Please sign in to comment.