Commit d7330b80 authored by jsacksick's avatar jsacksick

Remove PaymentsPro.

parent 4a0344a9
......@@ -16,16 +16,6 @@ commerce_payment.commerce_payment_gateway.plugin.paypal_express_checkout:
solution_type:
type: string
label: 'Type of checkout flow'
commerce_payment.commerce_payment_gateway.plugin.paypal_payments_pro:
type: commerce_payment_gateway_configuration
mapping:
client_id:
type: string
label: 'Client ID'
client_secret:
type: string
label: 'Client secret'
commerce_payment.commerce_payment_gateway.plugin.paypal_payflow:
type: commerce_payment_gateway_configuration
mapping:
......
This diff is collapsed.
<?php
namespace Drupal\commerce_paypal\Plugin\Commerce\PaymentGateway;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\OnsitePaymentGatewayInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsAuthorizationsInterface;
use Drupal\commerce_payment\Plugin\Commerce\PaymentGateway\SupportsRefundsInterface;
/**
* Provides the interface for the PaymentsPro payment gateway.
*/
interface PaymentsProInterface extends OnsitePaymentGatewayInterface, SupportsAuthorizationsInterface, SupportsRefundsInterface {
/**
* Gets the API URL.
*
* @return string
* The API URL.
*/
public function getApiUrl();
/**
* Shows details for a payment, by ID, that is yet completed.
*
* For example, a payment that was created, approved, or failed.
*
* @param string $payment_id
* The payment identifier.
*
* @return array
* PayPal response data.
*/
public function getPaymentDetails($payment_id);
/**
* Performs a request to PayPal to the specified endpoint.
*
* @param string $endpoint
* The API endpoint (e.g /payments/payment).
* @param array $parameters.
* The array of parameters to send.
* @param string $method
* The HTTP method, defaults to POST.
*
* @return array
* PayPal response data.
*
* @see https://developer.paypal.com/docs/api.
*/
public function doRequest($endpoint, array $parameters = [], $method = 'POST');
/**
* Gets an access token from PayPal.
*
* @return string
* The access token returned by PayPal.
*/
public function getAccessToken();
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment