Actions
2 years ago
DataTransferObjects
1 year ago
Exceptions
4 years ago
Gateways
1 year ago
Migrations
2 years ago
PayPalCommerce
1 year ago
Stripe
2 years ago
resources
4 years ago
PaymentGateway.php
4 years ago
PaypalSettingPage.php
3 years ago
ServiceProvider.php
2 years ago
SettingPage.php
4 years ago
PaymentGateway.php
56 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\PaymentGateways; |
| 4 | |
| 5 | /** |
| 6 | * Interface PaymentGateway |
| 7 | * |
| 8 | * For use when defining a Payment Gateway. This gives the basic configurations needed to register |
| 9 | * the gateway with GiveWP. |
| 10 | * |
| 11 | * @since 2.9.0 |
| 12 | */ |
| 13 | interface PaymentGateway |
| 14 | { |
| 15 | /** |
| 16 | * Returns a unique ID for the gateway |
| 17 | * |
| 18 | * @return string |
| 19 | * @since 2.9.0 |
| 20 | * |
| 21 | */ |
| 22 | public function getId(); |
| 23 | |
| 24 | /** |
| 25 | * Returns a human-readable name for the gateway |
| 26 | * |
| 27 | * @return string |
| 28 | * @since 2.9.0 |
| 29 | * |
| 30 | */ |
| 31 | public function getName(); |
| 32 | |
| 33 | /** |
| 34 | * Returns a human-readable label for use when a donor selects a payment method to use |
| 35 | * |
| 36 | * @return string |
| 37 | * @since 2.9.0 |
| 38 | * |
| 39 | */ |
| 40 | public function getPaymentMethodLabel(); |
| 41 | |
| 42 | /** |
| 43 | * Get payment gateway options |
| 44 | * |
| 45 | * @return array |
| 46 | */ |
| 47 | public function getOptions(); |
| 48 | |
| 49 | /** |
| 50 | * Bootstrap payment gateway |
| 51 | * |
| 52 | * @since 2.9.0 |
| 53 | */ |
| 54 | public function boot(); |
| 55 | } |
| 56 |