Skip to content

Proposal: include.php

Taylor Warden edited this page Jun 1, 2015 · 3 revisions

#Proposal closed.

design here and first commit here.

include.php,

The function of this PHP file is to define the following attributes of the website. Simply refractor into the pages an include statement for this file and remove static data with a call to the PHP script.

New PHP variables:

Array: asset, defines an array of Currency Codes. The offered assets of the Gateway.

Array: depositFee, defines an array of fees charged on deposit. For example, you accept deposit for BTC and LTC which is stored in asset[0] and asset[1] which corresponds to depositFee[0] and depositFee[1].

Array: withdrawalFee, defines an array of fees charged of withdrawal. Refer to above example.

Array: transitFee, defines an array of fees charged on transit. Optional array, if you do not plan to charge transit fees this is not needed. If you do however, transitFee[0] and so on would correspond to the transit fee of asset[0] etc.

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.

Array withdrawalDeliverEstimate, an array with threedimensions to define the estimated delivery times for your IOUs on request for a withdrawal. Refer to above example.

String: operatorName, defines the Full Name of the Gateway Operator. This could be your full legal name or a username. Optional variable.

String: operatorEmail, defines the Email Address for [email protected] regarding your Gateway's operation. It is required that you display a valid contact address on your Gateway website.

String: gatewayName, defines the name of your Gateway. Required.

Clone this wiki locally