Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
hi,
im currently building my own site and using 2checkout.com to process my payments. i have my realtime setup up and running but i just want to try
and fine tune it so its abit more user friendly this is the script i currently haveCode: Select all
<?php
$toEmail = "xxxxxxx@xxxxxxx.xxx";
$fromEmail = "xxxxxx@xxxxxx.xxx";
$thankURL = "https://xxxxxx.xxx/addpack.cgi?authcode=xxxxxxxxxx;email=$email;M_domain=$merchant_order_id;M_typeid=xxxx;status=Y";
$body =
"Credit Card Status .. $credit_card_processed \n" .
"Total Billed ........ $total \n" .
"Order Number ........ $order_number \n" .
"Merchant Order ID ... $merchant_order_id \n" .
"Cart Order ID ....... $cart_order_id \n" .
"Product ID .......... $product_id \n\n" .
"Card Holder Name .... $card_holder_name \n" .
"Email Address ....... $email \n" .
"Phone Number ........ $phone \n" .
"Street Address ...... $street_address \n" .
"City, State Zip ..... $city, $state $zip \n" .
"Country ............. $country \n" .
mail("$toEmail", "New Order: $merchant_order_id", $body, "FROM: $fromEmail");
header("Location: $thankURL");
?>im wondering if someone can help me with this script what i need to achieve is the values in the thankurl need to be sent to my secure serve in
order for the real time activation to take place but i would also like the remainder of the details emailed to me.
is this possible with php as im relatively new to it but with a few pointers am more than willing to give it ago myself.
If this is not possible with php what program would you suggest i use as i either need to pass the variables returned from 2checkout as a url or
have a script pass them which is over my head although im going to give it ago with some research and see what i can come up with.
any help would be gratefully appreciated
thanks in advance
al
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]