Plugin Directory

Changeset 2181432


Ignore:
Timestamp:
10/28/2019 11:37:06 AM (6 years ago)
Author:
lamium
Message:

update before release

Location:
lamium-decentralized-crypto-acceptance-and-conversion/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • lamium-decentralized-crypto-acceptance-and-conversion/trunk/readme.md

    r2179314 r2181432  
    77 - Requires WooCommerce at least: 2.1
    88 - Tested WooCommerce up to: 3.6.5
    9  - Stable Tag: 2.0.0
     9 - Stable Tag: 2.0.1
    1010 - License: GPLv3
    1111 - License URI: http://www.gnu.org/licenses/gpl-3.0.html
  • lamium-decentralized-crypto-acceptance-and-conversion/trunk/woocommerce-gateway-lamium-accept-crypto-api.php

    r2179482 r2181432  
    77 * Author: Kryptolis AGc
    88 * Author URI: https://www.lamium.io/
    9  * Version: 2
     9 * Version: 2.0.1
    1010 * Text Domain: woocommerce-gateway-lamium-accept-bitcoin-api
    1111 * Domain Path: /languages/
     
    372372                    update_post_meta( $order_id , '_lamium_api_error_url',$url.'--- plugin url--'.get_home_url().
    373373                     '---call failed');
    374                     //$this->_fail($apiDataRemoteCall,'/payments/paybitcoins call failed',$orderData);
    375374                }
    376375                // Mark as payment-pending (we're awaiting the payment)
     
    413412                        }
    414413                      </script>';
    415                    
    416                 // if(!empty($apiDataRemoteCall->data[0]->pay_with_bitalo)){
    417                 //  $content .='<tr><td><a style="background:#2778b2;padding:10px 10px 10px 10px;color:#fff" href ="'.$apiDataRemoteCall->data[0]->pay_with_bitalo.'" class="button" target="_blank">Pay with Lamium</a><td></tr>';
    418                 // }
    419414                $content .='</table>';
    420415                $content .= $this->_get_custom_email_html( $order, $subject, $mailer );
     
    437432                        }
    438433                      </script>';
    439                 // if(!empty($apiDataRemoteCall->data[0]->pay_with_bitalo)){
    440                 //  $paymentDetailsBlock .='<p><a style="background:#2778b2;padding:10px 10px 10px 10px;color:#fff" href ="'.$apiDataRemoteCall->data[0]->pay_with_bitalo.'" class="button" target="_blank">Pay with Lamium</a></p>';
    441                 // }
    442                  
    443434                $lamiumData = '<ul class="woocommerce-order-overview woocommerce-thankyou-order-details order_details">
    444435                    <li class="woocommerce-order-overview__order order"><p>Please send '.$apiDataRemoteCall->data[0]->payment_method. ' to the following address :</p>
     
    523514                $url = 'http://api.lamium.io/api/payments/paybitcoinsallorderpaymentstatusforbitcoin';
    524515                $lamiumApiData = json_encode($lamiumApiData);
    525                 //$this->_tryCatchError('Lamium api data ---'.$lamiumApiData);
    526516                $tokenRemoteCall = $this->_getCoinnexusToken();
    527                 //$this->_tryCatchError('Token call data ---'.$tokenRemoteCall);
    528517                $tokenRemoteCall =json_decode($tokenRemoteCall['body']);
    529518                if(empty($tokenRemoteCall->success))
    530519                {
    531                     //$this->_fail($tokenRemoteCall,$url.'-- call failed',false,true);
    532                     //return true;
     520                   
    533521                }else{
    534522                    $apiDataRemoteCall = $this->_wpRemoteCall($url,$lamiumApiData,$tokenRemoteCall->data->token);
    535                     //$this->_tryCatchError('Status call data ---'.json_decode($apiDataRemoteCall['body']));
    536523                    $apiDataRemoteCall =json_decode($apiDataRemoteCall['body']);
    537                     //$this->_fail($tokenRemoteCall,$url.'---call test',$apiDataRemoteCall,true);
    538524                    if(!empty($apiDataRemoteCall->success))
    539525                    {
     
    561547               
    562548            }
    563         //$this->_tryCatchError('Lamium api data ---'.$lamiumApiData);
    564549            $transaction_ids = array();
    565550            $orderIdTransactionIdMap = array();
     
    574559            $orderIdTransactionIdMap[$transaction_id] = $customer_order->ID;
    575560        }     
    576             //$this->_tryCatchError('Lamium api data test---'.$transaction_ids);
    577561                $lamiumApiData['merchant_id'] = $merchantId;
    578562                $lamiumApiData['transaction_ids'] = $transaction_ids;
     
    580564            $lamiumApiData = json_encode($lamiumApiData);
    581565
    582             //$this->_tryCatchError('Lamium api data --- encoded'.$lamiumApiData);
    583566            $tokenRemoteCall = $this->_getCoinnexusToken();
    584567            $tokenRemoteCall =json_decode($tokenRemoteCall['body']);
    585             //$this->_tryCatchError('Token call data ---'.$tokenRemoteCall->data->token);
    586568            if(empty($tokenRemoteCall->success))
    587569            {
     570
     571            }else{
    588572               
    589                 // $this->_fail($tokenRemoteCall,$url.'-- call failed',false,true);
    590 
    591                 // $this->_tryCatchError('Token call failed ---'.$tokenRemoteCall->data);
    592 
    593             }else{
    594                 //$this->_tryCatchError('Status call before ---');
    595573                $apiDataRemoteCall = $this->_wpRemoteCall($url,$lamiumApiData,$tokenRemoteCall->data->token);
    596                 //$this->_tryCatchError('Status call after ---'.$apiDataRemoteCall['body']);
    597574                $apiDataRemoteCall =json_decode($apiDataRemoteCall['body']);
    598                 // $this->_tryCatchError('Status call after decode ---'.$apiDataRemoteCall->success);
    599                 // $this->_tryCatchError('Status call data ---'.$apiDataRemoteCall);
    600                 //$this->_fail($tokenRemoteCall,$url.'---call test',$apiDataRemoteCall,true);
    601575                if(!empty($apiDataRemoteCall->success))
    602576                {
Note: See TracChangeset for help on using the changeset viewer.