Thanks for reporting.
@CyberDevil you can now try the new version from https://bitbucket.org/ariesdelossantos/vending_ext/downloads/
Please help test the fix
PayPalIpnUrl should be www.paypal.com for live and www.sandbox.paypal.com for testing not this www.myROdomain.com/?module=donate&action=notify
If you followed the instruction you should have atleast reach the paypal website upon clicking donate.
View File
Vending Extension
This is an expansion to currently existing vending module. It allows listing of all vending items and filter list by item name.
Installation:
Download the file
Extract it to addons folder of flux
That's it. Click the Vending Info menu then click the List Items sub menu.
Submitter
Aries
Submitted
06/19/2018
Category
FluxCP Addons
Video
Content Author
Aries
Try this:
Installation:
Download the latest version
Extract it to addons folder of flux
Visit the link ?module=vending&action=items or via the submenu inside Vending Info menu
This is an expansion to currently existing vending module. It allows listing of all vending items and filter list by item name.
Installation:
Download the file
Extract it to addons folder of flux
That's it. Click the Vending Info menu then click the List Items sub menu.
The amount will only get updated if you tested it on an account with coins already in storage.
Try it again to an account without the coin in the storage.
$sql = "INSERT INTO {$this->server->loginDatabase}.storage (account_id, nameid, amount, identify) ";
$sql .= "VALUES (?, ?, ?, 1)";
update the insert part it should flag that the item is identified
Goto {flux_dir}/themes/{your_theme}/account/view.php.
Loor for this line:
<?php echo htmlspecialchars($account->email) ?>
Change it to
<span class="not-applicable"><?php echo htmlspecialchars(Flux::message('NotApplicableLabel')) ?></span>
Note that the admins will still be able to view the email address as defined in config/access.php
'account' => array(
'index' => AccountLevel::LOWGM,
There are few points to make sure that the donation works.
It cannot be tested if you are testing it locally. Make sure to publish the site which should be accessible externally, paypal needs to validate the IPN url.
You have to setup your IPN. Try it first using sandbox
Login to sandbox with business account https://www.sandbox.paypal.com
Go to profile and settings
Click my selling tools
Look for Instant payment notifications and click update
Enter your sites notification url e.g. http://YOUR-RO.COM/?module=donate&action=notify
Tick Receive IPN messages (Enabled) then save
After setting up the IPN try to donate again to verify if IPN is sending you the payment notification which wiill then add the flux credits.
Will return the account level e.g. 99
$session->account->group_id
Will return the account id e.g. 2000000
$session->account->account_id
If you want to see all the properties
echo '<pre>';
var_dump($session->account);
exit;