Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /proc/self/cwd/wp-content/plugins/elementor-pro/modules/payments/classes/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : //proc/self/cwd/wp-content/plugins/elementor-pro/modules/payments/classes/stripe-handler.php
<?php

namespace ElementorPro\Modules\Payments\Classes;

use Elementor\Core\Base\Module;

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly
}

class Stripe_Handler {
	const STRIPE_ENDPOINT_URL = 'https://api.stripe.com/v1/';

	/**
	 * Abstract function to create GET calls from the stripe API
	 * @param string $secret_key
	 * @param string $endpoint
	 * @param array $body
	 * @return array|\WP_Error
	 */
	public function get( $secret_key, $endpoint = '', $body = [] ) {
		$headers = [ 'Authorization' => 'Bearer ' . $secret_key ];
		return wp_remote_get( self::STRIPE_ENDPOINT_URL . $endpoint, [
			'headers' => $headers,
			'body' => $body,
		] );
	}

	/**
	 * @param $headers
	 * @param $body
	 * @param $endpoint
	 * @return array|\WP_Error
	 */
	public function post( $headers, $body, $endpoint ) {
		return wp_remote_post( self::STRIPE_ENDPOINT_URL . $endpoint, [
			'headers' => $headers,
			'body' => $body,
		] );
	}
}

Spamworldpro Mini