From c5680abd98b9c93aa5bd73cbfadf25931c966ad2 Mon Sep 17 00:00:00 2001 From: Takayuki Miyoshi Date: Mon, 30 Aug 2021 18:51:32 +0900 Subject: [PATCH] Update api.php #525 --- modules/stripe/api.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/modules/stripe/api.php b/modules/stripe/api.php index def87201..38bf1b36 100644 --- a/modules/stripe/api.php +++ b/modules/stripe/api.php @@ -13,11 +13,23 @@ class WPCF7_Stripe_API { private $secret; + /** + * Constructor. + * + * @param string $secret Secret key. + */ public function __construct( $secret ) { $this->secret = $secret; } + /** + * Sends a debug information for a remote request to the PHP error log. + * + * @param string $url URL to retrieve. + * @param array $request Request arguments. + * @param array|WP_Error $response The response or WP_Error on failure. + */ private function log( $url, $request, $response ) { wpcf7_log_remote_request( $url, $request, $response ); }