Tribe__Events__Community__Tickets__Gateway__PayPal::get_headers()

returns the request headers for JSON requests


Source

File: src/Tribe/Gateway/PayPal.php

	public function get_headers() {
		return [
			'X-PAYPAL-SECURITY-USERID'      => $this->api_username,
			'X-PAYPAL-SECURITY-PASSWORD'    => $this->api_password,
			'X-PAYPAL-SECURITY-SIGNATURE'   => $this->api_signature,
			'X-PAYPAL-REQUEST-DATA-FORMAT'  => 'JSON',
			'X-PAYPAL-RESPONSE-DATA-FORMAT' => 'JSON',
			'X-PAYPAL-APPLICATION-ID'       => $this->application_id,
		];
	}//end get_headers