Changeset 1769387
- Timestamp:
- 11/17/2017 12:38:47 PM (8 years ago)
- Location:
- plenigo/trunk
- Files:
-
- 4 edited
-
plenigo_sdk/plenigo/models/ChannelVouchers.php (modified) (1 diff)
-
plenigo_sdk/plenigo/services/UserService.php (modified) (2 diffs)
-
plenigo_wordpress.php (modified) (3 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
plenigo/trunk/plenigo_sdk/plenigo/models/ChannelVouchers.php
r1704513 r1769387 48 48 public function fromJSON($data) { 49 49 foreach ($data AS $key => $value) { 50 $this->{$key} = $value; 50 $this->channel = $key; 51 $this->ids = $value; 51 52 } 52 53 } 53 54 54 } -
plenigo/trunk/plenigo_sdk/plenigo/services/UserService.php
r1757836 r1769387 99 99 * @see https://plenigo.github.io/sdks/php#verify-users-login 100 100 * 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 * 101 106 * @param string $email the user's email 102 107 * @param string $password the users password 108 * @param array $data (optional) additional data to track login information (See above) 103 109 * @param string $error (optional) error message 110 * 104 111 * @return array|boolean user data or boolean false 105 112 */ 106 public static function verifyLogin($email, $password, &$error = '') {113 public static function verifyLogin($email, $password, $data = array(), &$error = '') { 107 114 108 115 $clazz = get_class(); 109 116 PlenigoManager::notice($clazz, "Verifying the user's login"); 110 117 111 $testModeText = (PlenigoManager::get()->isTestMode()) ? 'true' : 'false'; 112 $params = array( 118 $params = array_merge($data, array( 113 119 'email' => $email, 114 120 'password' => $password, 115 ApiParams::TEST_MODE => $testModeText, 116 ); 121 )); 117 122 118 123 $request = static::postJSONRequest(ApiURLs::USER_LOGIN, false, $params); … … 166 171 * 167 172 * @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 in169 * @param boolean $useExternalCustomerId Flag indicating if customer id sent is the external customer id173 * @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 170 175 * 171 176 * @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 5 5 Plugin URI: http://wordpress.org/plugins/plenigo/ 6 6 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. 27 Version: 1.7.3 8 8 Author: Plenigo 9 9 Author URI: https://www.plenigo.com … … 11 11 License: GPLv2 12 12 WC requires at least: 4.0 13 WC tested up to: 4. 8.313 WC tested up to: 4.9.0 14 14 */ 15 15 /* 16 Copyright (C) 201 4plenigo16 Copyright (C) 2017 plenigo 17 17 18 18 This program is free software; you can redistribute it and/or … … 30 30 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 31 31 */ 32 define('PLENIGO_VERSION', '1.7. 2');32 define('PLENIGO_VERSION', '1.7.3'); 33 33 34 34 // Plenigo JavaScript SDK / Services -
plenigo/trunk/readme.txt
r1757836 r1769387 3 3 Tags: 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 4 4 Requires at least: 4.0.0 5 Tested up to: 4. 8.36 Stable tag: 1.7. 25 Tested up to: 4.9.0 6 Stable tag: 1.7.3 7 7 License: GPLv2 or later 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 299 299 300 300 == Changelog == 301 = 1.7.3 - Updated dependencies = 302 - Upgraded plenigo PHP SDK version 303 301 304 = 1.7.2 - Improved stability = 302 305 - Upgraded plenigo PHP SDK version
Note: See TracChangeset
for help on using the changeset viewer.