Changeset 2803971
- Timestamp:
- 10/25/2022 02:28:19 PM (3 years ago)
- Location:
- aplazame
- Files:
-
- 12 edited
- 1 copied
-
tags/v3.6.3 (copied) (copied from aplazame/trunk)
-
tags/v3.6.3/README.txt (modified) (2 diffs)
-
tags/v3.6.3/aplazame.php (modified) (2 diffs)
-
tags/v3.6.3/classes/sdk/Client.php (modified) (3 diffs)
-
tags/v3.6.3/i18n/languages/aplazame.pot (modified) (1 diff)
-
tags/v3.6.3/lib/Aplazame/Sdk/Api/ApiRequest.php (modified) (3 diffs)
-
tags/v3.6.3/lib/Aplazame/Sdk/Api/Client.php (modified) (2 diffs)
-
trunk/README.txt (modified) (2 diffs)
-
trunk/aplazame.php (modified) (2 diffs)
-
trunk/classes/sdk/Client.php (modified) (3 diffs)
-
trunk/i18n/languages/aplazame.pot (modified) (1 diff)
-
trunk/lib/Aplazame/Sdk/Api/ApiRequest.php (modified) (3 diffs)
-
trunk/lib/Aplazame/Sdk/Api/Client.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
aplazame/tags/v3.6.3/README.txt
r2746850 r2803971 3 3 Tags: aplazame,woocommerce,ecommerce,payment,checkout,credit,aplazar,financiar,financiera,financiación,pago aplazado,método de pago 4 4 Requires at least: 4.0.1 5 Tested up to: 6.0. 05 Tested up to: 6.0.3 6 6 Requires PHP: 5.3.0 7 Stable tag: 3.6. 27 Stable tag: 3.6.3 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 78 78 == Changelog == 79 79 80 #### [v3.6.3](https://github.com/aplazame/woocommerce/tree/v3.6.3) (2022-10-25) 81 82 * [CHANGE] Checkout header. 83 84 #### [v3.6.2](https://github.com/aplazame/woocommerce/tree/v3.6.2) (2022-06-20) 85 86 * Release for wordpress.org. 87 80 88 #### [v3.6.1](https://github.com/aplazame/woocommerce/tree/v3.6.1) (2022-06-20) 81 89 -
aplazame/tags/v3.6.3/aplazame.php
r2746850 r2803971 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 3.6. 25 * Version: 3.6.3 6 6 * Description: Aplazame offers a payment method to receive funding for the purchases. 7 7 * Author: Aplazame … … 12 12 * 13 13 * WC requires at least: 2.3 14 * WC tested up to: 6.6.014 * WC tested up to: 7.0.0 15 15 * 16 16 * License: GNU General Public License v3.0 -
aplazame/tags/v3.6.3/classes/sdk/Client.php
r2177547 r2803971 80 80 */ 81 81 public function create_checkout( $payload ) { 82 return $this->request( 'POST', '/checkout', $payload );82 return $this->request( 'POST', '/checkout', $payload, 3 ); 83 83 } 84 84 … … 105 105 * @param string $path The path of the request. 106 106 * @param array|null $data The data of the request. 107 * @param int $apiVersion The API version of the request. 107 108 * 108 109 * @return array The data of the response. … … 113 114 * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid. 114 115 */ 115 public function request( $method, $path, $data = null ) {116 public function request( $method, $path, $data = null, $apiVersion = 1 ) { 116 117 try { 117 return $this->apiClient->request( $method, $path, $data );118 return $this->apiClient->request( $method, $path, $data, $apiVersion ); 118 119 } catch ( Aplazame_Sdk_Api_ApiClientException $e ) { 119 120 $details = json_encode( $e->getError() ); -
aplazame/tags/v3.6.3/i18n/languages/aplazame.pot
r2746850 r2803971 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Aplazame v3.6. 2\n"9 "Project-Id-Version: Aplazame v3.6.3\n" 10 10 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 11 "POT-Creation-Date: 2022- 06-20 12:15+0000\n"11 "POT-Creation-Date: 2022-10-25 09:48+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
aplazame/tags/v3.6.3/lib/Aplazame/Sdk/Api/ApiRequest.php
r1915609 r2803971 39 39 * 40 40 * @param bool $useSandbox 41 * @param int $apiVersion The API version of the request. 41 42 * @param string $accessToken The Access Token of the request (Public API key or Private API key) 42 43 * @param string $method The HTTP method of the request. … … 46 47 public function __construct( 47 48 $useSandbox, 49 $apiVersion, 48 50 $accessToken, 49 51 $method, … … 54 56 55 57 $headers = array( 56 'Accept' => array( self::createAcceptHeader( $useSandbox, 1, self::FORMAT_JSON ) ),58 'Accept' => array( self::createAcceptHeader( $useSandbox, $apiVersion, self::FORMAT_JSON ) ), 57 59 'Authorization' => array( self::createAuthorizationHeader( $accessToken ) ), 58 60 'User-Agent' => array( -
aplazame/tags/v3.6.3/lib/Aplazame/Sdk/Api/Client.php
r1915609 r2803971 147 147 * @param string $path The path of the request. 148 148 * @param array|null $data The data of the request. 149 * @param int $apiVersion The API version of the request. 149 150 * 150 151 * @return array The data of the response. … … 155 156 * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid. 156 157 */ 157 public function request( $method, $path, $data = null ) {158 public function request( $method, $path, $data = null, $apiVersion = 1 ) { 158 159 $uri = $this->apiBaseUri . '/' . ltrim( $path, '/' ); 159 160 160 $request = new Aplazame_Sdk_Api_ApiRequest( $this->useSandbox, $ this->accessToken, $method, $uri, $data );161 $request = new Aplazame_Sdk_Api_ApiRequest( $this->useSandbox, $apiVersion, $this->accessToken, $method, $uri, $data ); 161 162 try { 162 163 $response = $this->httpClient->send( $request ); -
aplazame/trunk/README.txt
r2746850 r2803971 3 3 Tags: aplazame,woocommerce,ecommerce,payment,checkout,credit,aplazar,financiar,financiera,financiación,pago aplazado,método de pago 4 4 Requires at least: 4.0.1 5 Tested up to: 6.0. 05 Tested up to: 6.0.3 6 6 Requires PHP: 5.3.0 7 Stable tag: 3.6. 27 Stable tag: 3.6.3 8 8 License: BSD-3-Clause 9 9 License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE … … 78 78 == Changelog == 79 79 80 #### [v3.6.3](https://github.com/aplazame/woocommerce/tree/v3.6.3) (2022-10-25) 81 82 * [CHANGE] Checkout header. 83 84 #### [v3.6.2](https://github.com/aplazame/woocommerce/tree/v3.6.2) (2022-06-20) 85 86 * Release for wordpress.org. 87 80 88 #### [v3.6.1](https://github.com/aplazame/woocommerce/tree/v3.6.1) (2022-06-20) 81 89 -
aplazame/trunk/aplazame.php
r2746850 r2803971 3 3 * Plugin Name: Aplazame 4 4 * Plugin URI: https://github.com/aplazame/woocommerce 5 * Version: 3.6. 25 * Version: 3.6.3 6 6 * Description: Aplazame offers a payment method to receive funding for the purchases. 7 7 * Author: Aplazame … … 12 12 * 13 13 * WC requires at least: 2.3 14 * WC tested up to: 6.6.014 * WC tested up to: 7.0.0 15 15 * 16 16 * License: GNU General Public License v3.0 -
aplazame/trunk/classes/sdk/Client.php
r2177547 r2803971 80 80 */ 81 81 public function create_checkout( $payload ) { 82 return $this->request( 'POST', '/checkout', $payload );82 return $this->request( 'POST', '/checkout', $payload, 3 ); 83 83 } 84 84 … … 105 105 * @param string $path The path of the request. 106 106 * @param array|null $data The data of the request. 107 * @param int $apiVersion The API version of the request. 107 108 * 108 109 * @return array The data of the response. … … 113 114 * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid. 114 115 */ 115 public function request( $method, $path, $data = null ) {116 public function request( $method, $path, $data = null, $apiVersion = 1 ) { 116 117 try { 117 return $this->apiClient->request( $method, $path, $data );118 return $this->apiClient->request( $method, $path, $data, $apiVersion ); 118 119 } catch ( Aplazame_Sdk_Api_ApiClientException $e ) { 119 120 $details = json_encode( $e->getError() ); -
aplazame/trunk/i18n/languages/aplazame.pot
r2746850 r2803971 7 7 msgid "" 8 8 msgstr "" 9 "Project-Id-Version: Aplazame v3.6. 2\n"9 "Project-Id-Version: Aplazame v3.6.3\n" 10 10 "Report-Msgid-Bugs-To: https://github.com/aplazame/woocommerce\n" 11 "POT-Creation-Date: 2022- 06-20 12:15+0000\n"11 "POT-Creation-Date: 2022-10-25 09:48+0000\n" 12 12 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 13 13 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" -
aplazame/trunk/lib/Aplazame/Sdk/Api/ApiRequest.php
r1915609 r2803971 39 39 * 40 40 * @param bool $useSandbox 41 * @param int $apiVersion The API version of the request. 41 42 * @param string $accessToken The Access Token of the request (Public API key or Private API key) 42 43 * @param string $method The HTTP method of the request. … … 46 47 public function __construct( 47 48 $useSandbox, 49 $apiVersion, 48 50 $accessToken, 49 51 $method, … … 54 56 55 57 $headers = array( 56 'Accept' => array( self::createAcceptHeader( $useSandbox, 1, self::FORMAT_JSON ) ),58 'Accept' => array( self::createAcceptHeader( $useSandbox, $apiVersion, self::FORMAT_JSON ) ), 57 59 'Authorization' => array( self::createAuthorizationHeader( $accessToken ) ), 58 60 'User-Agent' => array( -
aplazame/trunk/lib/Aplazame/Sdk/Api/Client.php
r1915609 r2803971 147 147 * @param string $path The path of the request. 148 148 * @param array|null $data The data of the request. 149 * @param int $apiVersion The API version of the request. 149 150 * 150 151 * @return array The data of the response. … … 155 156 * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid. 156 157 */ 157 public function request( $method, $path, $data = null ) {158 public function request( $method, $path, $data = null, $apiVersion = 1 ) { 158 159 $uri = $this->apiBaseUri . '/' . ltrim( $path, '/' ); 159 160 160 $request = new Aplazame_Sdk_Api_ApiRequest( $this->useSandbox, $ this->accessToken, $method, $uri, $data );161 $request = new Aplazame_Sdk_Api_ApiRequest( $this->useSandbox, $apiVersion, $this->accessToken, $method, $uri, $data ); 161 162 try { 162 163 $response = $this->httpClient->send( $request );
Note: See TracChangeset
for help on using the changeset viewer.