Plugin Directory

Changeset 2803971


Ignore:
Timestamp:
10/25/2022 02:28:19 PM (3 years ago)
Author:
aplazame
Message:

tagging version v3.6.3

Location:
aplazame
Files:
12 edited
1 copied

Legend:

Unmodified
Added
Removed
  • aplazame/tags/v3.6.3/README.txt

    r2746850 r2803971  
    33Tags: aplazame,woocommerce,ecommerce,payment,checkout,credit,aplazar,financiar,financiera,financiación,pago aplazado,método de pago
    44Requires at least: 4.0.1
    5 Tested up to: 6.0.0
     5Tested up to: 6.0.3
    66Requires PHP: 5.3.0
    7 Stable tag: 3.6.2
     7Stable tag: 3.6.3
    88License: BSD-3-Clause
    99License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE
     
    7878== Changelog ==
    7979
     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
    8088#### [v3.6.1](https://github.com/aplazame/woocommerce/tree/v3.6.1) (2022-06-20)
    8189
  • aplazame/tags/v3.6.3/aplazame.php

    r2746850 r2803971  
    33 * Plugin Name: Aplazame
    44 * Plugin URI: https://github.com/aplazame/woocommerce
    5  * Version: 3.6.2
     5 * Version: 3.6.3
    66 * Description: Aplazame offers a payment method to receive funding for the purchases.
    77 * Author: Aplazame
     
    1212 *
    1313 * WC requires at least: 2.3
    14  * WC tested up to: 6.6.0
     14 * WC tested up to: 7.0.0
    1515 *
    1616 * License: GNU General Public License v3.0
  • aplazame/tags/v3.6.3/classes/sdk/Client.php

    r2177547 r2803971  
    8080     */
    8181    public function create_checkout( $payload ) {
    82         return $this->request( 'POST', '/checkout', $payload );
     82        return $this->request( 'POST', '/checkout', $payload, 3 );
    8383    }
    8484
     
    105105     * @param string     $path The path of the request.
    106106     * @param array|null $data The data of the request.
     107     * @param int        $apiVersion The API version of the request.
    107108     *
    108109     * @return array The data of the response.
     
    113114     * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid.
    114115     */
    115     public function request( $method, $path, $data = null ) {
     116    public function request( $method, $path, $data = null, $apiVersion = 1 ) {
    116117        try {
    117             return $this->apiClient->request( $method, $path, $data );
     118            return $this->apiClient->request( $method, $path, $data, $apiVersion );
    118119        } catch ( Aplazame_Sdk_Api_ApiClientException $e ) {
    119120            $details = json_encode( $e->getError() );
  • aplazame/tags/v3.6.3/i18n/languages/aplazame.pot

    r2746850 r2803971  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: Aplazame v3.6.2\n"
     9"Project-Id-Version: Aplazame v3.6.3\n"
    1010"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"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • aplazame/tags/v3.6.3/lib/Aplazame/Sdk/Api/ApiRequest.php

    r1915609 r2803971  
    3939     *
    4040     * @param bool   $useSandbox
     41     * @param int    $apiVersion The API version of the request.
    4142     * @param string $accessToken The Access Token of the request (Public API key or Private API key)
    4243     * @param string $method The HTTP method of the request.
     
    4647    public function __construct(
    4748        $useSandbox,
     49        $apiVersion,
    4850        $accessToken,
    4951        $method,
     
    5456
    5557        $headers = array(
    56             'Accept'          => array( self::createAcceptHeader( $useSandbox, 1, self::FORMAT_JSON ) ),
     58            'Accept'          => array( self::createAcceptHeader( $useSandbox, $apiVersion, self::FORMAT_JSON ) ),
    5759            'Authorization'   => array( self::createAuthorizationHeader( $accessToken ) ),
    5860            'User-Agent'      => array(
  • aplazame/tags/v3.6.3/lib/Aplazame/Sdk/Api/Client.php

    r1915609 r2803971  
    147147     * @param string     $path The path of the request.
    148148     * @param array|null $data The data of the request.
     149     * @param int        $apiVersion The API version of the request.
    149150     *
    150151     * @return array The data of the response.
     
    155156     * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid.
    156157     */
    157     public function request( $method, $path, $data = null ) {
     158    public function request( $method, $path, $data = null, $apiVersion = 1 ) {
    158159        $uri = $this->apiBaseUri . '/' . ltrim( $path, '/' );
    159160
    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 );
    161162        try {
    162163            $response = $this->httpClient->send( $request );
  • aplazame/trunk/README.txt

    r2746850 r2803971  
    33Tags: aplazame,woocommerce,ecommerce,payment,checkout,credit,aplazar,financiar,financiera,financiación,pago aplazado,método de pago
    44Requires at least: 4.0.1
    5 Tested up to: 6.0.0
     5Tested up to: 6.0.3
    66Requires PHP: 5.3.0
    7 Stable tag: 3.6.2
     7Stable tag: 3.6.3
    88License: BSD-3-Clause
    99License URI: https://github.com/aplazame/woocommerce/blob/master/LICENSE
     
    7878== Changelog ==
    7979
     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
    8088#### [v3.6.1](https://github.com/aplazame/woocommerce/tree/v3.6.1) (2022-06-20)
    8189
  • aplazame/trunk/aplazame.php

    r2746850 r2803971  
    33 * Plugin Name: Aplazame
    44 * Plugin URI: https://github.com/aplazame/woocommerce
    5  * Version: 3.6.2
     5 * Version: 3.6.3
    66 * Description: Aplazame offers a payment method to receive funding for the purchases.
    77 * Author: Aplazame
     
    1212 *
    1313 * WC requires at least: 2.3
    14  * WC tested up to: 6.6.0
     14 * WC tested up to: 7.0.0
    1515 *
    1616 * License: GNU General Public License v3.0
  • aplazame/trunk/classes/sdk/Client.php

    r2177547 r2803971  
    8080     */
    8181    public function create_checkout( $payload ) {
    82         return $this->request( 'POST', '/checkout', $payload );
     82        return $this->request( 'POST', '/checkout', $payload, 3 );
    8383    }
    8484
     
    105105     * @param string     $path The path of the request.
    106106     * @param array|null $data The data of the request.
     107     * @param int        $apiVersion The API version of the request.
    107108     *
    108109     * @return array The data of the response.
     
    113114     * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid.
    114115     */
    115     public function request( $method, $path, $data = null ) {
     116    public function request( $method, $path, $data = null, $apiVersion = 1 ) {
    116117        try {
    117             return $this->apiClient->request( $method, $path, $data );
     118            return $this->apiClient->request( $method, $path, $data, $apiVersion );
    118119        } catch ( Aplazame_Sdk_Api_ApiClientException $e ) {
    119120            $details = json_encode( $e->getError() );
  • aplazame/trunk/i18n/languages/aplazame.pot

    r2746850 r2803971  
    77msgid ""
    88msgstr ""
    9 "Project-Id-Version: Aplazame v3.6.2\n"
     9"Project-Id-Version: Aplazame v3.6.3\n"
    1010"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"
    1212"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
    1313"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
  • aplazame/trunk/lib/Aplazame/Sdk/Api/ApiRequest.php

    r1915609 r2803971  
    3939     *
    4040     * @param bool   $useSandbox
     41     * @param int    $apiVersion The API version of the request.
    4142     * @param string $accessToken The Access Token of the request (Public API key or Private API key)
    4243     * @param string $method The HTTP method of the request.
     
    4647    public function __construct(
    4748        $useSandbox,
     49        $apiVersion,
    4850        $accessToken,
    4951        $method,
     
    5456
    5557        $headers = array(
    56             'Accept'          => array( self::createAcceptHeader( $useSandbox, 1, self::FORMAT_JSON ) ),
     58            'Accept'          => array( self::createAcceptHeader( $useSandbox, $apiVersion, self::FORMAT_JSON ) ),
    5759            'Authorization'   => array( self::createAuthorizationHeader( $accessToken ) ),
    5860            'User-Agent'      => array(
  • aplazame/trunk/lib/Aplazame/Sdk/Api/Client.php

    r1915609 r2803971  
    147147     * @param string     $path The path of the request.
    148148     * @param array|null $data The data of the request.
     149     * @param int        $apiVersion The API version of the request.
    149150     *
    150151     * @return array The data of the response.
     
    155156     * @throws Aplazame_Sdk_Api_ApiServerException if request is invalid.
    156157     */
    157     public function request( $method, $path, $data = null ) {
     158    public function request( $method, $path, $data = null, $apiVersion = 1 ) {
    158159        $uri = $this->apiBaseUri . '/' . ltrim( $path, '/' );
    159160
    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 );
    161162        try {
    162163            $response = $this->httpClient->send( $request );
Note: See TracChangeset for help on using the changeset viewer.