jontroth
27p11 comments posted · 0 followers · following 0
15 years ago @ Jon Troth - PHP XML Solution for C... · 0 replies · +1 points
This link should answer your question ... scroll down to "Securely Store Customer Data". http://bit.ly/hvgTxZ
If this doesn't answer your question then make sure you post back and explain what you need in more detail.
Jon
15 years ago @ Jon Troth - PHP XML Solution for C... · 0 replies · +1 points
Thank you for the interest in the post.
Jon
15 years ago @ Jon Troth - PHP XML Solution for C... · 1 reply · +2 points
add this to the class ...
private function profile(){
// pull your contact profile from $_post or the database
$profile->phone = '';
$profile->shipping_street_a = '';
$profile->shipping_street_b = '';
$profile->shipping_city = '';
$profile->shipping_zip = '';
$profile->billing_street_a = '';
$profile->billing_street_b = '';
$profile->billing_city = '';
$profile->billing_zip = '';
// pull your cc profile from $_post - never store this in a database
$profile->cc_number = '';
$profile->cc_cvv = '';
$profile->cc_year = '';
$profile->cc_month = '';
return $profile;
}
When you call this class it would be like this ...
$order_code = "AC00001"; // an incremental order number from your database
$order_total = "100"; // the order total ... this is $1.00 ... Orbital total values do not use a decimal point
$orbital = new Orbital();
$returned_value = $orbital->gateway_process( $order_code, $order_total );
$returned_value is either an error or a transaction array.
The customer information is either stored in a session, post or database ... so because so many people do it different ways I did not bother adding all the different ways ... just the core functions for orbital. I hope this helps.
Jon Troth
15 years ago @ Jon Troth - Tracking Anchor tags u... · 0 replies · +1 points
15 years ago @ Jon Troth - PHP XML Solution for C... · 0 replies · +1 points
Jon
15 years ago @ Jon Troth - PHP XML Solution for C... · 0 replies · +1 points
Sorry for the delay in this reply ... i hope it is not too late.
The DTD error is caused when your xml tags are in the wrong order.
Do you have the "Orbital_Gateway_XML_Specification" PDF?
Email me direct at jontroth at gmail.com
Jon
15 years ago @ Jon Troth - PHP XML Solution for C... · 1 reply · +2 points
16 years ago @ Jon Troth - PHP XML Solution for C... · 3 replies · +2 points
public function process( $order_code, $order_total ){
$this->gateway_process( $order_code, $order_total );
}
In your script create a new instance of the class ...
$process = New Orbital();
Then send your order number and order total like this ...
$process->process( "4EOR345", "100" );
Remember that orbital does not like decimal points so $1.00 would be a value of 100.
In the "function xml_build()" there is a reference to $this->profile() ... you'll need to create that method to return an object containing all your users profile information that is relevant to the order.
The $MerchantID is the ID that Orbital provides you for the development site, and for the production site.
Hope this helps.
Jon
16 years ago @ Jon Troth - PHP XML Solution for C... · 3 replies · +4 points
Hope this helps.
http://jontroth.com/demo/orbital.zip
16 years ago @ Jon Troth - PHP XML Solution for C... · 5 replies · +2 points