<?php
?>
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="utf-8">
	<title>ZHYIP</title>
</head>
<body>

<div id="container">
	<h1>Make payment</h1>

	<div id="body">
		<img width="80" src="<?php echo '../../content/payment/'.$form_payment['logo'];?>" class="img-responsive">
	<?php
		$currency_info = defaultcurrency();
		// pr($form_payment);
		
		if($form_payment['payment_name']=='paypal') {

	?>
		
		<form action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post" target="_self" style="display:block;" id='Paypal' >
            <input type="hidden" name="cmd" value="_xclick" />
            <input type="hidden" name="business" value="<?php echo $form_payment['email'];?>" />
            <input type="hidden" name="item_name" value="Deposit">
            <input type="hidden" name="currency_code" value="<?php echo strtoupper($currency_info->currency_unit); ?>" />
            <input type="hidden" name="amount" value="<?php echo $form_deposit['amount']; ?>">
            <input type="hidden" name="cancel_return" value="<?php echo $form_payment['cancel_url'];?>"/>
            <input type="hidden" name="return" value="<?php echo $form_payment['success_url'];?>"/>
            <input type="hidden" name="notify_url" value="<?php echo $form_payment['ipn_url'];?>"/>
            <input type="hidden" name="custom"  class="apc_1" value="<?php echo $form_deposit['uusersid'];?>" id="custom">
            <input type="hidden" name="charset" value="UTF%252d8"/>
            <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
        </form>

    <?php } else if($form_payment['payment_name']=='payza') { ?>
    	

    	<form method="post" action="https://secure.payza.com/checkout">
            <input type="hidden" name="ap_merchant" value="<?php echo $form_payment['account_id']; ?>"/>
            <input type="hidden" name="ap_purchasetype" value="item"/>
            <input type="hidden" name="ap_itemname" value="Investment from <?php echo $form_deposit['username'];?>"/>
            <input type="hidden" name="ap_amount" value="<?php echo $form_deposit['amount']; ?>"/>
            <input type="hidden" name="ap_currency" value="<?php echo strtoupper($currency_info->currency_unit); ?>"/>
            <input type="hidden" name="ap_description" value=""/>
            <input type="hidden" name="ap_returnurl" value="<?php echo $form_payment['success_url'];?>"/>
            <input type="hidden" name="ap_cancelurl" value="<?php echo $form_payment['cancel_url'];?>"/>
            <input type="hidden" name="ap_alerturl" value="<?php echo $form_payment['ipn_url'];?>"/>
            <input type="hidden" name="apc_1" value="<?php echo $form_deposit['uusersid'];?>"/>
            <input type="hidden" name="apc_2" value="<?php echo $form_deposit['planid'];?>"/>
            <input type="hidden" name="apc_3" value="<?php echo $form_deposit['amount'];?>"/>
            <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
        </form>

    <?php } else if($form_payment['payment_name']=='payeer') { ?>

		<?php
			$payid = 28;
			$m_shop = $form_payment['shop_id']; 
			$m_orderid = $form_deposit['planid'];
			$m_amount = number_format($form_deposit['amount'], 2);
			$m_curr = strtoupper($currency_info->currency_unit); 
			$m_desc = base64_encode('Amount Deposited'); 
			$m_key = $form_payment['secret_key']; 
			
			$m_orderid = $form_deposit['planid'];
	        
	        $arHash = array(
	            $m_shop,
	            $m_orderid,
	            $m_amount,
	            $m_curr,
	            $m_desc,
	            $m_key
	        );
					
	        $sign = strtoupper(hash('sha256', implode(':', $arHash)));
	    ?>

	    <form method="GET" action="//payeer.com/merchant/">
            <input type="hidden" name="m_shop" value="<?=$m_shop?>">
            <input type="hidden" name="m_orderid" value="<?=$m_orderid?>">
            <input type="hidden" name="m_amount" value="<?=$m_amount?>">
            <input type="hidden" name="m_curr" value="<?=$m_curr?>">
            <input type="hidden" name="m_desc" value="<?=$m_desc?>">
            <input type="hidden" name="m_sign" value="<?=$sign?>">
            <input type="submit" name="m_process" class="black_btn" value="Click here to Invest"  />
        </form>

    <?php } else if($form_payment['payment_name']=='perfectmoney') { ?>

    	<?php 
    		//HASH STRING
		  	$stamp  = time();
		  	$string = $form_payment['account_number'].':'. $form_deposit['amount'].':'.strtoupper($currency_info->currency_unit).':'. $form_payment['account_name'];
		  	$hash   = strtoupper(md5($string));
    	?>

    	<form action="https://perfectmoney.is/api/step1.asp" method="POST">
            <input type="hidden" name="PAYEE_ACCOUNT" value="<?php echo $form_payment['account_number']; ?>" >
            <input type="hidden" name="PAYEE_NAME" value="<?php echo $form_payment['account_number']; ?>">
            <input type="hidden" name="PAYMENT_ID" value="<?php echo $form_deposit['planid']; ?>">
            <input type="hidden" name="PAYMENT_AMOUNT" value="<?php echo $form_deposit['amount']; ?>">
            <input type="hidden" name="PAYMENT_UNITS" value="<?php echo strtoupper($currency_info->currency_unit); ?>">
            <input type="hidden" name="STATUS_URL" value='<?php echo $form_payment['ipn_url'];?>'>
            <input type="hidden" name="PAYMENT_URL" value='<?php echo $form_payment['success_url'];?>'>
            <input type="hidden" name="NOPAYMENT_URL" value='<?php echo $form_payment['cancel_url'];?>' >
            <input type="hidden" name="MEMO" value="Purchage" class="pmuser1">
            <input type="hidden" name="V2_HASH" value="<?=$hash;?>">
            <input type="hidden" name="code"  class="apc_1"  value="<?php echo $form_deposit['planid']; ?>">
            <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
        </form>

    <?php } else if($form_payment['payment_name']=='okpay') { ?>

    	<?php $customvalues = $form_deposit['uusersid'].','.$form_deposit['planid'].','.$form_deposit['amount'];?>

        <form  method="post" action="https://www.okpay.com/process.html">
	    	<input type="hidden" name="ok_receiver" value="<?php echo $form_payment['merchant_id'];?>"/>
	       	<input type="hidden" name="ok_item_1_name" value="Investment from <?php echo $form_deposit['username'];?>"/>
	       	<input type="hidden" name="ok_item_1_price" value="<?php echo $form_deposit['amount'];?>"/>
	       	<input type="hidden" name="ok_item_1_custom_2_value" value="<?php echo $customvalues;?>"/>
	       	<input type="hidden" name="ok_currency" value="<?php echo strtoupper($currency_info->currency_unit); ?>"/>
	       	<input type="hidden" name="ok_return_success" value="<?php echo $form_payment['success_url'];?>" />
	       	<input type="hidden" name="ok_return_fail" value="<?php echo $form_payment['cancel_url'];?>" />
	       	<input type="hidden" name="ok_ipn" value="<?php echo $form_payment['ipn_url'];?>" />
	       	<input type="hidden" name="ok_payment_methods" value="SOF"/>
	       	<input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
	    </form>

    <?php } else if($form_payment['payment_name']=='pexpay') { ?>

        <form action='https://www.pexpay.com/payments/autopay.php' method='post' target='_top' name='pexpay-purchase-form'>
		    <input type='hidden' name='payee_account' value='<?php echo $form_payment['account_number'];?>'> 
		    <input type='hidden' name='amount' value='<?php echo $form_deposit['amount'];?>'> 
		    <input type='hidden' name='memo' value='Investment from <?php echo $form_deposit['username'];?>'> 
		    <input type='hidden' name='return_url' value='<?php echo $form_payment['success_url'];?>'> 
		    <input type='hidden' name='cancel_url' value='<?php echo $form_payment['cancel_url'];?>'> 
		    <input type='hidden' name='notify_url' value='<?php echo $form_payment['ipn_url'];?>'>
		    
		    <input type='hidden' name='extra1' value='<?php echo $form_deposit['uusersid'];?>'> 
		    <input type='hidden' name='extra2' value='<?php echo $form_deposit['planid'];?>'> 
		    <input type='hidden' name='extra3' value='<?php echo $form_deposit['amount'];?>'> 
		    <input type='hidden' name='extra4' value='<?php echo $compound;?>'> 
		    <input type='hidden' name='extra5' value='<?php echo $payid;?>'> 
		    <input type='hidden' name='test' value='on'> 
		    <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
	    </form>

	<?php } else if($form_payment['payment_name']=='solidtrustpay') { ?>

	    <form method="post" action="https://solidtrustpay.com/handle.php">
	        <input type="hidden" name="merchantAccount" value="<?php echo $form_payment['account_login'];?>">
	        <input type="hidden" name="sci_name" value="<?php echo $form_payment['sci_button_name'];?>">
	        <input type="hidden" name="amount" value="<?php echo $form_deposit['amount'];?>">
	        <input type="hidden" name="testmode" value="ON">
	        <input type="hidden" name="item_id" value="Investment from <?php echo $form_deposit['username'];?>">
	        <input type="hidden" name="return_url" value="<?php echo $form_payment['success_url'];?>">
	        <input type="hidden" name="notify_url" value="<?php echo $form_payment['ipn_url'];?>">
	        <input type="hidden" name="cancel_url" value="<?php echo $form_payment['cancel_url'];?>">
	        <input type="hidden" name="SUGGESTED_MEMO" value="Investment from <?php echo $form_deposit['username'];?>">
	        <input type="hidden" name="user1" value="<?php echo $form_deposit['uusersid'];?>">
	        <input type="hidden" name="user2" value="<?php echo $form_deposit['planid'];?>">
	        <input type="hidden" name="user3" value="<?php echo $form_deposit['amount'];?>">
	        <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
	    </form>

	<?php } else if($form_payment['payment_name']=='skrill') { ?>
		
		<form action="https://www.moneybookers.com/app/payment.pl?p=zhyip" method="post">
			<input type="hidden" name="pay_to_email" value="<?php echo $form_payment['email']; ?>" />
		  	<input type="hidden" name="recipient_description" value="Investment from <?php echo $form_deposit['username'];?>" />
		  	<input type="hidden" name="transaction_id" value="<?php echo $form_deposit['uusersid'];?>" />
		  	<input type="hidden" name="return_url" value="<?php echo $form_payment['success_url']; ?>" />
		  	<input type="hidden" name="cancel_url" value="<?php echo $form_payment['cancel_url']; ?>" />
		  	<input type="hidden" name="status_url" value="<?php echo $form_payment['ipn_url']; ?>" />
		  	<!-- <input type="hidden" name="language" value="<?php echo $language; ?>" />
		  	<input type="hidden" name="logo_url" value="<?php echo $logo; ?>" /> -->
		  	
		  	<input type="hidden" name="amount" value="<?php echo $form_deposit['amount']; ?>" />
		  	<input type="hidden" name="currency" value="<?php echo strtoupper($currency_info->currency_unit); ?>" />
		  	<input type="hidden" name="detail1_text" value="Investment from <?php echo $form_deposit['username'];?>" />
		  	<input type="hidden" name="merchant_fields" value="order_id" />
		  	<input type="hidden" name="order_id" value="<?php echo $form_deposit['planid'];?>" />
		  	<!-- <input type="hidden" name="platform" value="<?php echo $platform; ?>" /> -->
		    <input type="submit" id="send" value="Click here to Invest" class="btn btn-primary" name="Send" />
		</form>

	<?php } else if($form_payment['payment_name']=='hdmoney') { ?>

		<form action="https://www.hd-money.com/sci/Payment.aspx" method="post">
	        <input type="hidden" name="hd_recipient" value="<?php echo $form_payment['account_number'];?>" />
	        <input type="hidden" name="hd_sci_name" value="<?php echo $form_payment['account_name'];?>" />
	        <input type="hidden" name="hd_amount" value="<?php echo $form_deposit['amount']; ?>" />
	        <input type="hidden" name="hd_item_name" value="<?php echo $form_deposit['planid'];?>" />
	        <input type="hidden" name="hd_description" value="Investment from <?php echo $form_deposit['username'];?>" />
	        <input type="hidden" name="hd_callback_url" value="<?php echo $form_payment['ipn_url'];?>" />
	        <input type="hidden" name="hd_callback_method" value="post" />
	        <input type="hidden" name="hd_success_url" value="<?php echo $form_payment['success_url'];?>" />
	        <input type="hidden" name="hd_failure_url" value="<?php echo $form_payment['cancel_url'];?>" />
	        <input type="hidden" name="hd_varX" value="<?php echo $form_deposit['uusersid'];?>" />
	        <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send"></li>
	    </form>

	<?php } else if($form_payment['payment_name']=='webmoney') { ?>
		
		<form method="POST" action="https://merchant.wmtransfer.com/lmi/payment.asp">
	    	<input type="hidden" name="LMI_PAYEE_PURSE" value="<?php echo $form_payment['purse_id'];?>">
	        <input type="hidden" name="LMI_PAYMENT_AMOUNT" value="<?php echo $form_deposit['amount'];?>">
	        <input type="hidden" name="LMI_PAYMENT_DESC" value="Investment from <?php echo $form_deposit['username'];?>">
	        <input type="hidden" name="LMI_MODE" value="1">
	        <input type="hidden" name="LMI_RESULT_URL" value="<?php echo $form_payment['ipn_url'];?>">
	        <input type="hidden" name="LMI_SUCCESS_URL" value="<?php echo $form_payment['success_url'];?>">
	        <input type="hidden" name="LMI_FAIL_URL" value="<?php echo $form_payment['cancel_url'];?>">
	        <input type="hidden" name="FIELD_1" value="<?php echo $form_deposit['uusersid'];?>">
	        <input type="hidden" name="FIELD_2" value="<?php echo $form_deposit['planid'];?>">
	        <input type="hidden" name="FIELD_3" value="<?php echo $form_deposit['amount'];?>">
	        <input type="submit" id="send" class="black_btn" value="Click here to Invest" name="Send">
	    </form>

	<?php } else if($form_payment['payment_name']=='bitcoin') { ?>

		<h2>BITCOIN</h2>

    <?php } ?>


		
	</div>
	
</div>

</body>
</html>
