Titan West – Web Design and Development

Olympia WA Based Web Design, Streaming Video, E-commerce, Blogs, and Other Web Services

Download Store – WP e-Commerce with PayPal

For a recent job, I started working on a download store. Basically, the customer wanted to be able to sell collections of MP3s, but they could be downloadable books or PDFs or what ever.

I had previously seen that the free WP e-Commerce plugin for Word Press has a downloadable product option, so I grabbed the plugin and checked it out.

Few quick things:

  • The Upload tool for the files only goes up to 8mb. Upload larger files straight to your server at /wp-content/uploads/wpsc/downloadable then they will be an option from the individual product page, near the bottom
  • If using PayPal, you need to fiddle with the Instant Payment Notification settings a touch to get the payment info back from Paypal. Honestly, I am still help up on this step and it might be enough that I can’t use WP e-Commerce if its not resolved.
    Here are the basic steps for setting up Paypal with WP e-Commerce download store.
    WP e-Commerce
    In your Word Press Admin
    Go to WordPress/ e-Commerce/ settings… “Payment”
    Payment Gateway: Paypal (not express)
    PayPal Username: paypal account you wish to send the money to
    PayPal Url: https://www.paypal.com/cgi-bin/webscr
    PayPal IPN: Yes

    On Your PayPal Admin
    Select Account -> Profile -> Instant Payment Notification preferences (Under Selling preferences)
    IPN: ON
    IPN-URL: http://your_domain.com/?ipn_request=true

    Under Select Account -> Profile -> Website Payment Preferences (Under Hosted payment settings)
    Auto Return: ON
    Return URL: copy-paste your “Transaction URL” from e-Commerce/ settings
    Payment Data Transfer: ON

As I write this, I have gotten hung up because the Order status come back from PayPal as ‘Order received’ and need to be ‘Payment Accepted’ in order to create the link to download the item
detailed here

If I can’t get this working today, I’ll scrap using WP e-Commerce and look for another cart.
Bummer, I will have wasted a lot of time on WP e-Commerce

5 Responses to Download Store – WP e-Commerce with PayPal

  1. Ryan says:

    Still working on this while installing a different cart
    the URL from PayPal looks something like
    http://www.domainname.com/location/transaction-results/?sessionid=851125571xxxx&gateway=paypal&tx=2V6885633X99xxx&st=Pending&amt=0.01&cc=EUR&cm=&item_number=

    st=Pending is what gets my attention

    Does anyone know that status WP e-Commerce wants in order to move the order straight to Accepted or Closed?
    I have tried Accept, Closed, Accepted, but all after the fact

    I email Godaddy and they claim not to block anything that would prevent the IPN from doing its job

    We do not block any sort of information like the PayPal IPN. You may want to contact PayPal directly or the author of the plugin’s you are using to perform this automation.

    This leave me at a PayPal setting that will return Accepted or Closed or what ever, or hacking WP e-Commerce to always set the status to what ever WP e-Commerce wants in order to release the download link. Seems like a lot of freaking work in order to sell an MP3

  2. admin says:

    From PayPal

    https://cms.paypal.com/us/cgi-bin/?cmd=_render-content&content_ID=developer/e_howto_html_IPNandPDTVariables

    So these variables being returned are actually PDT values, not IPN

    Description

    amt Amount of the transaction

    cc Currency code

    cm Custom message

    st Transaction status

    tx Transaction ID/PDT token

    So I presume st ( Transaction status) is like payment_status. I presume this because its the only variable that come in Uppercase and has the possible value of Pending.
    But bummer for me, switching that value in the URL to Completed does not push the order to a status that will display the links to the downloadable media.

  3. admin says:

    support email from PayPal

    Hello Ryan,

    That looks like PDT and not IPN. PDT uses tx. The rest of the variables you should ignore. You should focus on what you get back from our server on the post back from us. Please review the PDT guide:
    https://cms.paypal.com/us/cgi-bin/?&cmd=_render-content&content_ID=developer/howto_html_paymentdatatransfer
    Please reply if you have further questions.

  4. I’ve recently started a blog, the information you provide on this site has helped me tremendously. Thank you for all of your time & work.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>