 misterseth
|
First of all, thanks for developing the store, its a really decent solution for a lot of people!
Now forgive my ignorance, I’m a novice in this area. I have set up an Amazon S3 account, PayPal account and the mysql server. I’ve installed and configured your store on my server, and it works so far except that the links to the files that are generated upon payment link to nothing. They are creating nonexistent folder locations on my site (e.g. http://www.mysite.com/s54hjf983qx). I feel like I’m really stupid here but how the hell do you get your audio files into the Amazon S3 bucket so that they eventually show up in the purchased links? I’m missing a vital step somewhere. Can anyone clarify this?
|
 Brad
|
Hi misterseth,
I used S3 Firefox Organizer to get my files into S3. Then you put the corresponding filename info into your items.ini file.
Does that clear it up? Let me know.
|
 misterseth
|
Hi Brad,
Thanks for the speedy reply.
I managed to get the files onto S3 now, in a folder with the same name as the variable BUCKETNAME in config.php and everything set up correctly in the items.ini file but its still not working. The link that I’m sent once the paypal transaction is completed is something like http://www.blahblah.com/downloadshop/8FHXQFZ8YAUP6
And of course there’s no such page or directory. I’m assuming this is supposed to point to what’s in the S3 bucket, and I can’t figure out why it isn’t working while everything else is. Any ideas?
|
 Brad
|
It doesn’t email the user a link to the bucket & object, it emails them a link to their download page, which contains links to any files they’ve purchased. By default that would be:
/your-dds-directory/index.php?userid=8FHXQFZ8YAUP6
The “8FHXQFZ8YAUP6″ is their Paypal user ID.
|
 misterseth
|
Okay, I appendend “index.php?userid=” to $GLOBALS['ROOT'] in notify.php…
(as such: $store_url = $GLOBALS['ROOT'] . “index.php?userid=” . $payer_id;)
…in order to get the correctly formatted url into the email. That worked fine, the page displays the purchased downloads etc.
Now I’m encountering a different problem: even though I’ve purchased a download and received the link, the status in the database never changes from ‘Pending.’ The downloads are definitely active; I’ve changed the expiry time to 10 days but I had to temporarily disable part of the listPurchases function:
if($info['status'] == “Pending” OR $info['currency'] != “USD”) {
$link = “waiting”;
}
…in order to get the download links to show up. The links themselves are working fine now.
|
 Brad
|
Why are they showing up as Pending? (I think) that should only happen if people pay with eChecks. And when they do you need to approve them manually using the admin page.
|
 misterseth
|
I know why – its because I’m paying in GBP and the PayPal account is also set up in GBP! Got there in the end :)
|
 misterseth
|
Thanks for all your help Brad.
|
 Brad
|
No problem. Let me know when the store’s operational, I’d love to check it out.
|