ACIL FM
Dark
Refresh
Current DIR:
/home/mhhtmff/www/site/wp-content/plugins/elementor-pro/modules/payments/classes
/
home
mhhtmff
www
site
wp-content
plugins
elementor-pro
modules
payments
classes
Upload
Zip Selected
Delete Selected
Pilih semua
Nama
Ukuran
Permission
Aksi
payment-button.php
15.56 MB
chmod
View
DL
Edit
Rename
Delete
stripe-handler.php
948 B
chmod
View
DL
Edit
Rename
Delete
Edit file: /home/mhhtmff/www/site/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, ] ); } }
Simpan
Batal
Isi Zip:
Unzip
Create
Buat Folder
Buat File
Terminal / Execute
Run
Chmod Bulk
All File
All Folder
All File dan Folder
Apply