コード例 #1
0
ファイル: sample-receipt-page.php プロジェクト: RemitaNet/PHP
    $ch = curl_init();
    // Disable SSL verification
    curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
    // Will return the response, if false it print the response
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
    // Set the url
    curl_setopt($ch, CURLOPT_URL, $url);
    // Execute
    $result = curl_exec($ch);
    // Closing
    curl_close($ch);
    $response = json_decode($result, true);
    return $response;
}
if ($orderID != null) {
    $response = remita_transaction_details($orderID);
    $response_code = $response['status'];
    if (isset($response['RRR'])) {
        $rrr = $response['RRR'];
    }
    $response_message = $response['message'];
}
?>
<html>
<head>
<title></title>
</head>
<body>
	<div style="text-align: center;">
		<?php 
if ($response_code == '01' || $response_code == '00') {
コード例 #2
0
ファイル: processpayment.php プロジェクト: Ghaji/transcripts
<?php

require_once "inc/initialize.php";
require_once "inc/remita_functions.php";
$session = new Session();
# Get user details
$user = User::find_by_id($session->id);
if (!$session->is_logged_in()) {
    redirect_to("index.php");
}
if (!isset($_SESSION["transaction_id"])) {
    redirect_to("index.php");
}
# Get transaction details (for transaction stored in session) from remita
$transctiondetails = remita_transaction_details($_SESSION["transaction_id"]);
# Unset transaction id session variable
if (isset($_SESSION["transaction_id"])) {
    unset($_SESSION["transaction_id"]);
}
# Unset type id session variable
if (isset($_SESSION["type_id"])) {
    $type_id = $_SESSION["type_id"];
    unset($_SESSION["type_id"]);
}
# Unset mode id session variable
if (isset($_SESSION["mode_id"])) {
    $mode_id = $_SESSION["mode_id"];
    unset($_SESSION["mode_id"]);
}
# Unset city_or_state session variable
if (isset($_SESSION["city_or_state"])) {