File manager - Edit - /home/proidvn/me.proid.vn/wp-content/plugins/jetformbuilder/modules/gateways/paypal/api-actions/get-token.php
Back
<?php namespace JFB_Modules\Gateways\Paypal\Api_Actions; // If this file is called directly, abort. if ( ! defined( 'WPINC' ) ) { die; } class Get_Token extends Base_Action { const SLUG = 'GET_ACCESS_TOKEN'; public function action_slug() { return self::SLUG; } public function action_endpoint() { return 'v1/oauth2/token'; } public function action_body() { return 'grant_type=client_credentials'; } public function action_headers() { return array( 'Accept' => 'application/json', ); } public function set_credentials( $client_id, $secret ) { // phpcs:ignore WordPress.PHP.DiscouragedPHPFunctions $key = base64_encode( $client_id . ':' . $secret ); return $this->set_basic_auth( $key ); } }
| ver. 1.4 |
Github
|
.
| PHP 8.0.30 | Generation time: 0.17 |
proxy
|
phpinfo
|
Settings