-
Notifications
You must be signed in to change notification settings - Fork 20
Design: include.php
#include.php
The second half of the work of include.php is to investigate which pages will require these calls. Once those pages are collected here, a commit can be pushed, version 1.0.2 can be released, and then the preparation for version 1.1 can begin.
The below designed php script was committed here.
//Declare and instantiate the operatorName variable, store default as QuickGateway Operator:
$operatorName = "QuickGateway Operator"; // string value
//Declare and instantiate the operatorEmail variable, store default as support@yourdomain.com:
$operatorEmail = "support@yourdomain.com "; // string value
//Declare and instantiate the gatewayName variable, store default as Read the README.md file to Change This:
$gatewayName = "Read the README.md file to Change This"; // string value
//Declare and instantiate asset array with default BTC:
$asset = array(); $asset['code'] = 'BTC'; // string value
//Declare and instantiate depositFee array with default of 0.0015BTC (as asset[0] is equal to BTC):
$depositFee = array(); $depositFee['amount'] = '0.0015'; // floating point value
//The above is also true for:
$withdrawalFee = array(); $withdrawalFee['amount'] = '0.0015'; // floating point value
//Declare and instantiate the optional transitFee array. As asset[0] relates to BTC, an example of a transit //fee of 0.0025% on each transaction would be:
//This is an optional array
$transitFee = array(); $transitFee['amount'] = '0.0025'; // floating point value
//From: https://github.com/whotooktwarden/QuickGatewayKit/wiki/Proposal:-include.php
//Array: depositDeliveryEstimate, an array with three dimensions to define estimated delivery times for your //IOUs on request of a deposit or a withdrawal (in this case a deposit). //For example depositDeliveryEstimate[0][0][0] could define, relating to asset[0] as BTC, a 1-3 hour estimated //delivery time for their BTC IOU to be processed by the Gateway relating to depositDeliverEstimate[0][0][0] //storing 0,1,3.
//Declare and instantiate the array:
$depositDeliveryEstimate = array(); $depositDeliveryEstimate['minHours'] = 1; // int value $depositDeliveryEstimate['maxHours'] = 24; // int value $depositDeliveryEstimate['asset'] = 'BTC'; // string value
//The above is also true for:
$withdrawalDeliveryEstimate = array(); $withdrawalDeliveryEstimate['minHours'] = 1; // int value $withdrawalDeliveryEstimate['maxHours'] = 24; // int value $withdrawalDeliveryEstimate['asset'] = 'BTC'; // string value