Plugin Directory

Changeset 1769387


Ignore:
Timestamp:
11/17/2017 12:38:47 PM (8 years ago)
Author:
plenigo
Message:

Version 1.7.3

Location:
plenigo/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • plenigo/trunk/plenigo_sdk/plenigo/models/ChannelVouchers.php

    r1704513 r1769387  
    4848    public function fromJSON($data) {
    4949        foreach ($data AS $key => $value) {
    50             $this->{$key} = $value;
     50            $this->channel = $key;
     51            $this->ids = $value;
    5152        }
    5253    }
    53 
    5454}
  • plenigo/trunk/plenigo_sdk/plenigo/services/UserService.php

    r1757836 r1769387  
    9999     * @see https://plenigo.github.io/sdks/php#verify-users-login
    100100     *
     101     * array['os']          string Operation System of the User (max 40)
     102     *      ['browser']     string browser of the user (max 40)
     103     *      ['source']      string source of the user (max 255)
     104     *      ['ipAddress']   string IP-Address of the user (max 45)
     105     *
    101106     * @param string $email the user's email
    102107     * @param string $password the users password
     108     * @param array $data (optional) additional data to track login information (See above)
    103109     * @param string $error (optional) error message
     110     *
    104111     * @return array|boolean user data or boolean false
    105112     */
    106     public static function verifyLogin($email, $password, &$error = '') {
     113    public static function verifyLogin($email, $password, $data = array(), &$error = '') {
    107114
    108115        $clazz = get_class();
    109116        PlenigoManager::notice($clazz, "Verifying the user's login");
    110117
    111         $testModeText = (PlenigoManager::get()->isTestMode()) ? 'true' : 'false';
    112         $params = array(
     118        $params = array_merge($data, array(
    113119            'email' => $email,
    114120            'password' => $password,
    115             ApiParams::TEST_MODE => $testModeText,
    116         );
     121        ));
    117122
    118123        $request = static::postJSONRequest(ApiURLs::USER_LOGIN, false, $params);
     
    166171     *
    167172     * @param mixed $productId The ID (or array of IDs) of the product to be queried against the user
    168      * @param string $customerId The customer ID if its not logged in
    169      * @param boolean $useExternalCustomerId Flag indicating if customer id sent is the external customer id
     173     * @param string $customerId (optional) The customer ID if its not logged in
     174     * @param boolean $useExternalCustomerId (optional) Flag indicating if customer id sent is the external customer id
    170175     *
    171176     * @return bool TRUE if the user in the cookie has bought the product and the session is not expired, false otherwise
  • plenigo/trunk/plenigo_wordpress.php

    r1757836 r1769387  
    55  Plugin URI: http://wordpress.org/plugins/plenigo/
    66  Description: So far, the technical implementation of paid content has been time-consuming and costly for publishing houses and media companies. plenigo puts an end to this.
    7   Version: 1.7.2
     7  Version: 1.7.3
    88  Author: Plenigo
    99  Author URI: https://www.plenigo.com
     
    1111  License: GPLv2
    1212  WC requires at least: 4.0
    13   WC tested up to: 4.8.3
     13  WC tested up to: 4.9.0
    1414 */
    1515/*
    16   Copyright (C) 2014 plenigo
     16  Copyright (C) 2017 plenigo
    1717
    1818  This program is free software; you can redistribute it and/or
     
    3030  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
    3131 */
    32 define('PLENIGO_VERSION', '1.7.2');
     32define('PLENIGO_VERSION', '1.7.3');
    3333
    3434// Plenigo JavaScript SDK / Services
  • plenigo/trunk/readme.txt

    r1757836 r1769387  
    33Tags: paywall, e-commerce, Ecommerce, paid content software, subscriptions, newspaper, media, pay-per-read, pay, plugin, donate, money, transaction, bank, visa, mastercard, credit, debit, card, widget, give, pay what you want, plenigo, payment
    44Requires at least: 4.0.0
    5 Tested up to: 4.8.3
    6 Stable tag: 1.7.2
     5Tested up to: 4.9.0
     6Stable tag: 1.7.3
    77License: GPLv2 or later
    88License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    299299
    300300== Changelog ==
     301= 1.7.3 - Updated dependencies =
     302- Upgraded plenigo PHP SDK version
     303
    301304= 1.7.2 - Improved stability =
    302305- Upgraded plenigo PHP SDK version
Note: See TracChangeset for help on using the changeset viewer.