Esempio n. 1
0
 /**
  * Return HttpClient
  * @return HttpClient
  */
 private function httpClient()
 {
     $httpClient = new HttpClient();
     $headers['Authorization'] = ['Basic ' . Parameters::findBy('paynet')['secret_key']];
     $headers['Content-Type'] = ['application/json; charset=UTF-8'];
     $headers['Accept'] = ['application/json; charset=UTF-8'];
     $httpClient->setHeaders($headers);
     return $httpClient;
 }
Esempio n. 2
0
        <td>12/18</td>
    </tr>
    <tr>
        <td>CVV</td>
        <td>:</td>
        <td>000</td>
    </tr>
    <tr>
        <td>3D Şifresi</td>
        <td>:</td>
        <td>a</td>
    </tr>
    <tr>
        <td colspan="3">
            <form action="<?php 
echo Parameters::findBy('system')['url'];
?>
/purchase.php" method="POST">
                <script class="paynet-button" type="text/javascript"
                        src="https://pts-pj.paynet.com.tr/public/js/paynet.min.js"
                        data-key="pbk_pcs_frWfa5oW00jnfUvAq/8aQIgfChTxZDF6"
                        data-amount="1000"
                        data-button_label="Pay"
                        data-image="http://www.ideasoft.com.tr/assets/images/logo.png">
                </script>
            <form>
        </td>
    </tr>
</table>