BankTransfer
2 years ago
Stripe
1 month ago
AbstractPaymentMethod.php
1 month ago
PaymentMethodInterface.php
3 years ago
PaymentMethods.php
1 year ago
StoreGateway.php
3 years ago
WebhookHandlerInterface.php
3 years ago
index.php
3 years ago
StoreGateway.php
42 lines
| 1 | <?php |
| 2 | |
| 3 | namespace ProfilePress\Core\Membership\PaymentMethods; |
| 4 | |
| 5 | class StoreGateway extends AbstractPaymentMethod |
| 6 | { |
| 7 | public function __construct() |
| 8 | { |
| 9 | $this->id = 'manual'; |
| 10 | $this->backend_only = true; |
| 11 | $this->method_title = esc_html__('Store Payments', 'wp-user-avatar'); |
| 12 | $this->method_description = esc_html__('A payment method for manually creating orders and processing free orders. No money is actually collected.', 'wp-user-avatar'); |
| 13 | } |
| 14 | |
| 15 | public function admin_settings() |
| 16 | { |
| 17 | $settings = parent::admin_settings(); |
| 18 | |
| 19 | unset($settings['title']); |
| 20 | unset($settings['description']); |
| 21 | |
| 22 | return $settings; |
| 23 | } |
| 24 | |
| 25 | /** fulfill contract */ |
| 26 | public function validate_fields() |
| 27 | { |
| 28 | |
| 29 | } |
| 30 | |
| 31 | /** fulfill contract */ |
| 32 | public function process_payment($order_id, $subscription_id, $customer_id) |
| 33 | { |
| 34 | |
| 35 | } |
| 36 | |
| 37 | /** fulfill contract */ |
| 38 | public function process_webhook() |
| 39 | { |
| 40 | |
| 41 | } |
| 42 | } |