Skip to content

Commit

Permalink
Adding Blockonomics payment method
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel authored and daniel committed Mar 4, 2019
1 parent e4969ed commit 2b83a75
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugin/BlockonomicsYPT/callback.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@
// add balance on the wallet
if ($new_status == 2 && $order->getStatus()!=200) {
$plugin = YouPHPTubePlugin::loadPluginIfEnabled("YPTWallet");
$users_id = $this->getUsers_id();
$total = $this->getTotal_value();
$users_id = $order->getUsers_id();
$total = $order->getTotal_value();
$plugin->addBalance($users_id, $total, "Blockonomics payment", json_encode($this));
// status OK, do not process it anymore
$new_status = 200;
Expand Down

0 comments on commit 2b83a75

Please sign in to comment.