This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE IF NOT EXISTS `transaction_log` ( | |
`id` int(11) NOT NULL AUTO_INCREMENT, | |
`pid` int(11) NOT NULL, | |
`response_code` int(11) NOT NULL, | |
`payment_data` text NOT NULL, | |
`response_data` text NOT NULL, | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=5 ; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if(isset($_POST['run'])) { | |
include('payment_validation.php'); | |
} | |
?> | |
<form action="" method="post" name="payment" onsubmit="document.getElementById('submit_button').disabled = 1;"> | |
<p><input name="page_id" type="hidden" value="4" /></p> | |
<p><label>First Name</label><input name="first_name" type="text" /></p> | |
<p><label>Last Name</label><input name="last_name" type="text" /></p> | |
<p><label>Comments</label><textarea name="comments"></textarea></p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$required_fields = array( | |
'page_id' => 'page_id', | |
'Amount' => 'cc_amount', | |
'Credit Card Number' => 'cc_card_num', | |
'Credit Card Expiration Date' => 'cc_exp_date', | |
'Description' => 'cc_description' | |
); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Settings | |
$post_url = "https://test.authorize.net/gateway/transact.dll"; | |
$db_host = "localhost"; | |
$db_user = "root"; | |
$db_pass = ""; | |
$db_name = "payments"; | |
$db_table = "transaction_log"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
:root #element-id { | |
margin: 40px\9; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
AL|AK|AZ|AR|CA|CO|CT|DE|FL|GA|HI|ID|IL|IN|IA|KS|KY|LA|ME|MD|MA|MI|MN|MS|MO|MT|NE|NV|NH|NJ|NM|NY|NC|ND|OH|OK|OR|PA|RI|SC|SD|TN|TX|UT|VT|VA|WA|WV|WI|WY |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Model() { | |
this.init = function() { | |
alert('model init'); | |
} | |
} | |
module.exports = function() { | |
return new Model(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var grad_degrees = new Array( | |
"EDS - Director of Special Education: Exceptional Child", | |
"EDS - Dirirector of Special Education: Education Leadership", | |
"EDS - Educational Leadership: Superintendent", | |
"EDS - Educational Leadership: Building Administrator", | |
"EDD - Educational Leadership", | |
"MA - Christian Education", | |
"MA - Missional Leadership", | |
"MA - Pastoral Ministry", | |
"MA - Spiritual Formation", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var majors = new Array( | |
"Accounting", | |
"Applied Studies", | |
"Art", | |
"Biblical Studies", | |
"Biology", | |
"Business Administration", | |
"Chemistry", | |
"Christian Ministry", | |
"Communication", |