• Resolved dkurth

    (@dkurth)


    I have the pro version of woocommerce stripe payments and have just been through the wringer with WOOCOMMERCE SUPPORT..where they answered NO questions and referred me to here.

    I have a website that I need to make some modifications to my own database tables, based on the complete payment, failure, cancellation and other payment hooks. Thus I have written my own plugin and associated code. It appears that using stripe with woocommerce DOES NOT USE any of the standard woocommerce hooks, such as: woocommerce_order_status_completed. Can you confirm this?

    BIG ITEM!!
    Instead I found the calls wc_gateway_stripe_process_payment and wc_gateway_stripe_process_response action calls are the only hooks responded to on a order. Can you confirm that this is the only way I can receive a hook notification that payment has been confirmed and sent? If not, is there another I should be using? This is a subscription payment that I will need to hook into each month, sent automatically by stripe. I will need to update some information in my database tables.

    Lastly, I need documentation on the resulting parameters from the
    wc_gateway_stripe_process_response action call. Specifically “$stripe_response”
    Where is the documentation for this?

    In summary I need assistance with the following:

    1. Woocommerce stripe does not use the standard woocommerce action hooks such as:
    woocommerce_order_status_completed. True?

    2. Where is the documentation about the parameters such as $stripe_response. I need to know what I can do with this parameter.

    3. $order parameter are the same as in woocommerce_order_status_completed?

    4. My plugin add_action calls do not work, unless I put it in the function.php.
    Is there some kind of ordering that I need to do to make the add_action( ‘wc_gateway_stripe_process_response’, ‘my_function()’, 1, 2); work in a plugin?

    5. Are these hooks the same action calls that are invoked when Stripe sends a subscription payment information automatically. The user is not going through the shopping cart again.

    NEED HELP!

    • This topic was modified 6 years, 1 month ago by dkurth.
    • This topic was modified 6 years, 1 month ago by dkurth. Reason: more information
Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter dkurth

    (@dkurth)

    UPDATE:
    Been reviewing the code, still have some questions.

    1. (#1)I may have figured out the question 1. Your status is the state of the payment.
    2. (#3) $Order appears to be the same as in woocommerce action hooks. Can you confirm?
    2. (#5) What action is sent for a subscription payment? The same hook of wc_gateway_stripe_process_response OR wc_gateway_stripe_process_webhook_payment?

    3. New item, what action hook do you send if a customer cancels their subscription?
    wc_stripe_delete_source? Or nothing?

    Basically looking for documentation that explains the parameters and the differences between the action hooks. Looking at code can not take you to the assumptions.

    • This reply was modified 6 years, 1 month ago by dkurth.
    Plugin Support Stuart Duff – a11n

    (@stuartduff)

    Automattic Happiness Engineer

    Hi @dkurth,

    I have the pro version of woocommerce stripe payments and have just been through the wringer with WOOCOMMERCE SUPPORT..where they answered NO questions and referred me to here.

    I’m sorry to hear you have been disappointed in our support services with regards to the Stripe extension for WooCommerce with feeling as though you have been put through the wringer. I’m happy to review the communication you had with our team to see if there is a way we could learn from this interaction with regards to maybe having communicated things better with you.

    In the meantime, I can hopefully clarify a few points for us which maybe help explain why this forum would have been recommended to you.

    We don’t have a Pro version of our stripe plugin available, and this free version is the only Stripe plugin we develop. We do offer support for this on WooCommerce.com but only for questions related to the plugins setup and it’s default features.

    After reading your messages above it seems your questions are mostly developer focused with regards to making some modifications to your sites database tables, based on the complete payment, failure, cancellation and other payment hooks.

    Maybe you were unaware of this until now, but none of the WooCommerce Support staff are PHP developers who could answer these types of questions which you’ve referenced within this forum topic.

    You may, however, find that other users of WooCommerce Stripe who read topics within this public forum maybe knowledgeable with PHP and thus be able to help with answering questions about your development.

    If you would like me to review your ticket communication which you had with us previously please reopen that ticket over at https://woocommerce.com and reply with a link to this forum topic and FAO Stuart and I’ll be happy to do so alternatively, if you can create a follow-up ticket from the existing one that will work too.

    Hopefully, some developers here can also assist you with the questions relating to your custom plugin which you’re developing.

    Thread Starter dkurth

    (@dkurth)

    So your answer is to rationalize a LONG justification instead of helping?? Any one of the support individuals saying, “you know, I don’t know, but let me find out?” Instead your support team on woocommerce, refers me to here now you refer me back to them. WOW. This would not go far in my company as no-one is allowed to say, sorry don’t know. It is I don’t know, let me find out.

    all the other plugin developers have been gracious when questions are asked of them in this manner.

    Mike W

    (@nixiack8)

    Hi @dkurth,

    I am sorry that you appear to be receiving a run-around, it is not something that we want to have happen. I will do my best to answer the questions here, recapping with your first thread post.

    I have the pro version of woocommerce stripe payments and have just been through the wringer with WOOCOMMERCE SUPPORT..where they answered NO questions and referred me to here.

    It is mentioned below that you are making custom modifications to your database tables, and have written your own plugin. Stripe does not have a Pro version, just a standard one that we can support out of the box. As this appears to be custom work the staff at WooCommerce is not able to assist as we are not developers. That may be why you were directed here in the beginning.

    You said in the ticket we were getting you nowhere, and looking up your user here we are unable to find any history in our ticket system. This is why we had asked for a ticket reference so we can review and assist if possible. I am sorry if this seems like you were getting the runaround.

    Several of the questions below involve developer level knowledge, and questions pertaining specifically to WooCommerce integration to Stripe. For more support you can reach out to the WooCommerce Dev Slack channel here:

    https://woocommerceslack.herokuapp.com/

    I have a website that I need to make some modifications to my own database tables, based on the complete payment, failure, cancellation and other payment hooks. Thus I have written my own plugin and associated code. It appears that using stripe with woocommerce DOES NOT USE any of the standard woocommerce hooks, such as: woocommerce_order_status_completed. Can you confirm this?

    1. Woocommerce stripe does not use the standard woocommerce action hooks such as:
    woocommerce_order_status_completed. True?

    Stripe is unique in how it works with WooCommerce. While it can use some of WooCommerce’s standard hooks, for payments you are correct. A complete list of hooks Stripe uses are found at this link.

    2. Where is the documentation about the parameters such as $stripe_response. I need to know what I can do with this parameter.

    That is in the link above, or here for the response in Stripe. As we are not developers we cannot go much beyond this.

    3. $order parameter are the same as in woocommerce_order_status_completed?

    Check in the links above, and if you have questions you can direct them to Stripe, or the developer Slack channel above.

    4. My plugin add_action calls do not work, unless I put it in the function.php.
    Is there some kind of ordering that I need to do to make the add_action( ‘wc_gateway_stripe_process_response’, ‘my_function()’, 1, 2); work in a plugin?

    This is best directed to a developer in the Slack channel, or have one answer here. We will keep this post up in the event one responds ??

    Are these hooks the same action calls that are invoked when Stripe sends a subscription payment information automatically. The user is not going through the shopping cart again.

    If you are referring to the WooCommerce Subscriptions plugin, it does not use the Stripe Subscriptions feature. Instead, it uses a Stripe Customer and Card token and controls the processing of recurring payments. More on Subscriptions and Stripe are found at this link.

    If you have a WooCommerce Subscriptions license, you can ask the Subscriptions developer directly via the Marketplace link. Choose Subscriptions (or type it into the field to select it) then the question will go straight to them. They should be able to answer it. If this is for a different subscription system, since each may use unique options and not the core Stripe functions, it is best to reach out to those developers.

    I know that this is probably leaving you with more questions, and I understand that you are super frustrated. For that I am very sorry – we just are not developers. Please reach out to the Slack channel above, and I will leave this open for other developers to possibly see and assist with ?? I hope you have a great day!

    Mike W

    (@nixiack8)

    Hi @dkurth,

    We have not heard back from you in some time, so I will be closing this thread. If you still have issues please let us know by opening a new thread, and we will be happy to help!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘wc_gateway_stripe_process_response – NEED HELP!’ is closed to new replies.