WordPress.org

Ready to get started?Download WordPress

Forums

WP eCommerce
[resolved] [Plugin: WP e-Commerce] wpsc_payment_successful hook not working with paypal pro (5 posts)

  1. simalamdeveloper
    Member
    Posted 2 years ago #

    Hello

    I am trying to write a function that will write some data to the database when the payment is successful. I have tryed the wpsc_payment_successful hook that they suggest you use on their website but it never gets fired on a successful transaction. Is there a way I can do this?

    http://wordpress.org/extend/plugins/wp-e-commerce/

  2. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    The 'wpsc_payment_successful' hook appears to have been perhaps unintentionally deprecated. Let me know where you see that on the website and I'll contact them to have it updated.

    In the meantime, you should be able to get what you need done by hooking in to 'wpsc_confirm_checkout'.

  3. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    I apologize, I misspoke - that action still exists. Lots of reasons it might not be firing though - probably need to ensure that the purchase status is set to '3', which is the ID indicating a successful transaction. Check your gateway code for more info.

  4. simalamdeveloper
    Member
    Posted 2 years ago #

    Purchase status was set to 3

    'wpsc_confirm_checkout' Was being executed twice during check out, and as many times as you refreshed the final transaction summary page.

    I had to create a custom action immediately after the transaction status was set to 3 in the paypal-pro.merchant class

  5. Justin Sainton
    Member
    Plugin Author

    Posted 2 years ago #

    I've filed a ticket about this to investigate further. This would be the ideal hook to hook into for a successful transaction, and it is odd that it's not firing.

    http://code.google.com/p/wp-e-commerce/issues/detail?id=1103&thanks=1103

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.