| 1 |
<?php |
| 2 |
/** |
| 3 |
* Payment service interface |
| 4 |
* |
| 5 |
* @package SeQura/WC |
| 6 |
* @subpackage SeQura/WC/Services |
| 7 |
*/ |
| 8 |
|
| 9 |
namespace SeQura\WC\Services\Payment; |
| 10 |
|
| 11 |
/** |
| 12 |
* Handle use cases related to payments |
| 13 |
*/ |
| 14 |
interface Interface_Payment_Service { |
| 15 |
|
| 16 |
/** |
| 17 |
* Get payment gateway ID |
| 18 |
* |
| 19 |
* @return string |
| 20 |
*/ |
| 21 |
public function get_payment_gateway_id(): string; |
| 22 |
|
| 23 |
/** |
| 24 |
* Get current merchant ID |
| 25 |
*/ |
| 26 |
public function get_merchant_id(): ?string; |
| 27 |
|
| 28 |
/** |
| 29 |
* Sign the string using HASH_ALGO and merchant's password |
| 30 |
*/ |
| 31 |
public function sign( string $message ): string; |
| 32 |
|
| 33 |
/** |
| 34 |
* Get IPN webhook identifier |
| 35 |
*/ |
| 36 |
public function get_ipn_webhook(): string; |
| 37 |
|
| 38 |
/** |
| 39 |
* Get return URL webhook identifier |
| 40 |
*/ |
| 41 |
public function get_return_webhook(): string; |
| 42 |
|
| 43 |
/** |
| 44 |
* Get event webhook identifier |
| 45 |
*/ |
| 46 |
public function get_event_webhook(): string; |
| 47 |
} |
| 48 |
|