Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
jsarnowski/wp-simple-pay-pro / core / api / paymentmethods.php
Size: Mime:
<?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
	);
}