Repository URL to install this package:
|
Version:
4.1.3 ▾
|
<?php
/**
* API: PaymentMethods
*
* @package SimplePay\Core\API\PaymentMethods
* @copyright Copyright (c) 2021, Sandhills Development, LLC
* @license http://opensource.org/licenses/gpl-2.0.php GNU Public License
* @since 4.1.0
*/
namespace SimplePay\Core\API\PaymentMethods;
use SimplePay\Core\Payments\Stripe_API;
// Exit if accessed directly.
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
/**
* Lists PaymentMethods.
*
* @since 4.1.0
*
* @param array $args Optional arguments used when listing PaymentMethods
* @param array $api_request_args {
* Additional request arguments to send to the Stripe API when making a request.
*
* @type string $api_key API Secret Key to use.
* }
* @return array
*/
function all( $args = array(), $api_request_args = array() ) {
return Stripe_API::request(
'PaymentMethod',
'all',
$args,
$api_request_args
);
}