Selling credits script

stairie
by stairie · 12 posts
14 years ago in Basic Creator Help
Posted 14 years ago · Author
I sell credits on my site (really really cheap btw :)) and currently I transfer them manually when someone buys them, but I want to make it instant and automatic. Can someone point me in the direction of creating a php script that will do this for me?

Thanks.
Posted 14 years ago
Do you know PHP?

Have you already tried creating the script?

If so, where are you having problems?

I can give you the link for sending crdits.

I spent a good hour google hacking for this script and found nothing.
Posted 14 years ago · Author
I know a little PHP... still in the process of teaching myself. I use zencart for my website and have been pretty successful making it do what I want it to do. I found a script using cURL that will login into an external site in the background, but I don't know enough yet to make it do more.
Posted 14 years ago · Author
YESSSS!!!! I fucking did it!! :D I had to modify it so it would work properly, but I found a script that would allow me to send credits seamlessly in the background. If anyone's interested, I'm charging 100 bucks for it... lol.... just kidding. PM me if you want it... or I can even post it on here...
Posted 14 years ago
Damn, I wish you had told me.

I just spent 2 hours google hacking to find this:

Instructions on how to script credit & product transfers in php: http://74.125.113.132/search?q=cache:wn ... clnk&gl=us

Could you email that script you found, please, to: jennifer.dodds-vigouroux@ncl.ac.uk
Posted 14 years ago · Author
Sorry man, but thank you for looking. Your find will be helpful when I implement a way to automatically gift products after purchasing though.
Posted 14 years ago
Script may also be sent to ludotack@hotmail.com if you are willing :)
Not gonna use it soon though, just for future purposes.

Thanks a zillion
Posted 14 years ago
Code
function fetch($url,$post=false,$cookie=false,$timeout=30) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
if ($cookie) {
curl_setopt($ch, CURLOPT_COOKIEJAR, $cookie);
curl_setopt($ch, CURLOPT_COOKIEFILE, $cookie);
}
if ($post) {
curl_setopt($ch, CURLOPT_POSTFIELDS, $post);
curl_setopt($ch, CURLOPT_POST, TRUE);
}
curl_setopt($ch, CURLOPT_TIMEOUT, $timeout);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_USERAGENT, $_SERVER['HTTP_USER_AGENT']);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
//curl_setopt($ch, CURLOPT_HEADER, TRUE); //debug
$output=curl_exec($ch);
curl_close($ch);
return $output;
}
$cookie=cookie.txt;
$url='http://www.imvu.com/catalog/login.php?action=process';
$post='avatarname=stormiie74&password=******';
fetch($url,$post,$cookie);
$credits_amount = $what_ordered->fields['products_quantity'];
$the_customer = $the_customer_name->fields['customers_telephone'];
$url='http://www.imvu.com/catalog/web_give_av.php?nav_section=credits&nav_subsection=give';
$post='action=confirm&confirm_password=*****&payee=' . $the_customer . '&payment_amount=' . $credits_amount*2000 . '&greeting=&Give=Give';
fetch($url,$post,$cookie);
$credits_amount = $what_ordered->fields['products_quantity'];
$the_customer = $the_customer_name->fields['customers_telephone'];
$url='http://www.imvu.com/catalog/web_give_av.php';
$post='action=process&confirm_password=*****&payee=' . $the_customer . '&payment_amount=' . $credits_amount*2000 . '&greeting=&Give=Give';
fetch($url,$post,$cookie);

Create an account or sign in to comment

You need to be a member in order to leave a comment

Sign in

Already have an account? Sign in here

SIGN IN NOW

Create an account

Sign up for a new account in our community. It's easy!

REGISTER A NEW ACCOUNT
Select a forum Protection     Help & Support     Introductions     Mafia News     IMVU News General Discussion     IMVU Lounge        IMVU Series / Roleplaying        Social Games     Mafia Market     Mafia Tools        Premium IMVU Tools        Off Topic Tools     Off Topic     Contests Creator Corner     Graphics Design        Photoshop        GIMP     Basic Creator Help     Catalog And Product Showcase     3D Meshing        3Ds Max        Sketchup        Blender Gangsters with Connections     White Hat Activities        Google Hacking        Trackers Programming Corner     Coding        Python        .Net (C#, VB, etc)        Flash        JAVA        Autoit        Batch        HTML & CSS        Javascript        PHP        Other        IMVU Homepage Codes           General           About me Panel           Messages Panel           Special Someone Panel           Visitors Panel           New Products Panel           Rankings Panel           Wishlist Panel           My Badges Panel           Outfits Panel           Url Panel           Groups Panel           Slideshow Panel           My Room Panel           Sandbox panel           Layouts     Help & Requests Free Credits     Approved Methods     Submit Methods Free Money     Approved Methods     Submit Methods Adult Corner     Get Mafia AP Here     AP Lounge        AP Social Games        Casual Dating Tips     IMVU Slave Market & Escorts