PaymentGatewayInterface.php
4 years ago
PaymentGatewaysIterator.php
4 years ago
SubscriptionModuleInterface.php
4 years ago
SubscriptionModuleInterface.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace Give\Framework\PaymentGateways\Contracts; |
| 4 | |
| 5 | use Give\Framework\PaymentGateways\Commands\GatewayCommand; |
| 6 | use Give\PaymentGateways\DataTransferObjects\GatewayPaymentData; |
| 7 | use Give\PaymentGateways\DataTransferObjects\GatewaySubscriptionData; |
| 8 | |
| 9 | interface SubscriptionModuleInterface |
| 10 | { |
| 11 | /** |
| 12 | * Create a subscription with gateway |
| 13 | * |
| 14 | * @since 2.18.0 |
| 15 | * |
| 16 | * @param GatewayPaymentData $paymentData |
| 17 | * @param GatewaySubscriptionData $subscriptionData |
| 18 | * |
| 19 | * @return GatewayCommand |
| 20 | */ |
| 21 | public function createSubscription(GatewayPaymentData $paymentData, GatewaySubscriptionData $subscriptionData); |
| 22 | } |
| 23 |