[ SYSTEM ]: Linux wordpress 6.1.0-44-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.164-1 (2026-03-09) x86_64
[ SERVER ]: Apache/2.4.66 (Debian) | PHP: 8.2.30
[ USER ]: www-data | IP: 172.19.30.54
GEFORCE FILE MANAGER
/
var
/
www
/
html
/
wordpress
/
wp-content
/
plugins
/
elementor-pro
/
modules
/
payments
/
classes
/
UPLOAD:
NAME
SIZE
QUICK PERMS
ACTIONS
📄 payment-button.php
17,360 B
SET
[ EDIT ]
|
[ DEL ]
📄 stripe-handler.php
948 B
SET
[ EDIT ]
|
[ DEL ]
DELETE SELECTED
[ CLOSE ]
EDIT: 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, ] ); } }