Viewing 15 replies - 1 through 15 (of 19 total)
  • Hey there, @beycanpress! Thanks for contacting us.

    As I understand since Stripe update your store is getting two invoiced on FreshBooks for orders done with Stripe, correct?

    Could you please confirm if you have contacted FreshBooks to verify their compatibility with the current version of Stripe?

    Kindly keep in mind that we are unable to provide support for third-party plugins/integrations. Ensuring compatibility with our plugin’s current version is the responsibility of the respective third party, not us.

    I hope this was clarifying. Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    Thread Starter BeycanPress LLC

    (@beycanpress)

    Yes, that’s exactly right. There was no such problem before. And after the latest updates, two invoices are created.

    I developed the FreshBooks SDK, but there can’t be a problem there. Because this is not a SYNC plugin. So as you can see in the code I sent you, it is triggered once after the order is completed.

    Sometimes I really don’t understand. I didn’t update anything related to FreshBooks. It was working normal and stable. But I update WordPress regularly, and after an update, this problem started to occur “only with Stripe payments”.

    Look, I’m only talking about Stripe payments. Exactly which third-party plugin and problem are you talking about? Can you understand me, because I can’t understand you.

    That’s not very clear. Why is the “order_completed” hook being triggered twice out of the blue and I guess because this happens at the same time, the conditions I added do not work because the second is processed before the first invoice is created.

    Again, there was no problem before. PayPal payments are still fine. Stripe payments are fine.

    Can you look for things in your latest updates that could cause this problem?

    Hey, @beycanpress!

    Look, I’m only talking about Stripe payments. Exactly which third-party plugin and problem are you talking about? Can you understand me, because I can’t understand you.

    I’m sorry, I had not understand you developed the FreshBooks SDK. I thought it was a third-party plugin you were using. Thank you for clarifying.

    Can you look for things in your latest updates that could cause this problem?

    Unfortunately this falls out of our scope of support here, as the integration is custom code.

    While we can’t provide support for code customization as per our support policy, we do our best to offer advice and direct you to appropriate resources.

    You can visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there too.

    Please let us know if there’s anything else we can do to help or if you have any questions.

    Have a wonderful day!

    Thread Starter BeycanPress LLC

    (@beycanpress)

    So you really don’t want to understand me, do you? Let me explain it clearly.

    Previously, the “woocommerce_order_status_completed” hook was triggered once and an invoice was created.

    For PayPal payments, the “woocommerce_order_status_completed” hook is still triggered once and an invoice is generated.

    For Stripe payments, I think “woocommerce_order_status_completed” is triggered twice at the same time and since the process starts at the same time, two invoices are created at the same time without the invoice being created and added to the meta.

    What exactly is the problem here in another plugin and code? The normal working thing is broken after your updates, not mine. I am not asking you to come and examine my code. “examine your code” you created something in your last updates.

    Plugin Support Zubair Zahid (woo-hc)

    (@doublezed2)

    Hello BeycanPress LLC

    Thank you for the clarification.

    I completely understand that your code was working fine before you updated the Stripe for WooCommerce plugin to the latest version that was released about 4 days ago.

    You are saying that you have not changed anything in your code so it must be some code change in the latest release of Stripe for WooCommerce that is causing the problem.

    Having said that, this forum’s support policy does not cover questions related to code.
    I recommend you to go to the GitHub page for Stripe for WooCommerce plugin and submit an issue there. This way our devs can look into your problem and if needed, release a fix.

    I hope this clarifies the situation.
    Let me know if you have any questions. ??

    Best regards.

    Hi ?? We haven’t heard back from you in a while, so I’m going to mark this as resolved – we’ll be here if and/or when you are ready to continue.

    Thread Starter BeycanPress LLC

    (@beycanpress)

    I am still not sure about this issue. I need to check the invoices.

    Thread Starter BeycanPress LLC

    (@beycanpress)

    Hello, see I have not been able to solve this problem in any way. I have tried to take various measures but every time this hook is triggered twice. Please review the latest updates and resolve this bug. PayPal payments are fine but Stripe payments always generate two invoices.

    https://prnt.sc/G_vaGatyaahO

    Hi @beycanpress

    Thank you for reaching back, with further details on this.

    I have not been able to solve this problem in any way. I have tried to take various measures but every time this hook is triggered twice. Please review the latest updates and resolve this bug. PayPal payments are fine but Stripe payments always generate two invoices.

    https://prnt.sc/G_vaGatyaahO

    +

    For Stripe payments, I think “woocommerce_order_status_completed” is triggered twice at the same time and since the process starts at the same time, two invoices are created at the same time without the invoice being created and added to the meta.

    From what I gather, the issue is with double invoices being created via this plugin of yours, when the Stripe payment gateway is used at checkout. Correct?

    Best to consult this document, as it describes all hooks available to you if you need to manipulate how the Stripe WooCommerce Extension functions.

    Moreover, I assume it is known up to what version of Stripe payment gateway only one invoice is created with your plugin, therefore, it would be helpful to cross-reference with the changelog, for the changes that took place meanwhile.

    I trust that points you in the right direction, but if you have more questions, let us know.

    We’re happy to help.

    Thread Starter BeycanPress LLC

    (@beycanpress)

    I think it happened in the first updates in the last 1-2 months. But I don’t remember exactly when it happened. We use the general hook of WooCommerce, so assuming there is no problem with the other PayPal plugin, the problem is in this plugin. We’ve now switched to an alternative Stripe payment plugin just to be sure. Let us see if the same thing happens. We can keep you informed.

    Plugin Support ckadenge (woo-hc)

    (@ckadenge)

    Hi @beycanpress,

    We’d be glad if you kept us informed so that we can be able to investigate the issue even further from our end.

    Thanks.

    Thread Starter BeycanPress LLC

    (@beycanpress)

    We have just received a payment and I can confirm that this did not happen. Only in your plugin the hook “woocommerce_order_status_completed” is triggered twice and this happens consecutively. That’s why it doesn’t work in our conditions.

    https://github.com/BeycanPress/woocommerce-freshbooks/blob/06bb0e21913fb90902bbe03f9295a6cd1734e911/app/WooCommerce.php#L66

    Hi there @beycanpress

    Only in your plugin the hook “woocommerce_order_status_completed” is triggered twice and this happens consecutively. That’s why it doesn’t work in our conditions.

    Just to note, the woocommerce_order_status_completed hook does not appear to be an available WooCommerce hook. Linking to a screenshot here, for reference.

    Or an available hook for the?Stripe payment gateway?either, for that matter. Linked here is a screenshot, for reference.

    Feel free to consult the documentation, linked above, on how to make your plugin able to hook into the?Stripe payment gateway?as required.

    I trust this provides clarity. Please let us know if you have any further questions or concerns.
    We will be happy to help you further.

    Thread Starter BeycanPress LLC

    (@beycanpress)

    ‘woocommerce_order_status_{$status}’

    Edit: It’s really interesting that you don’t even understand the problem after all these conversations. I’ll pass. I’m sorry.

    Plugin Support rezzap a11n

    (@rezzap)

    @beycanpress, if you use the Stripe Extension on its own without the FreshBooks integration, do you still receive two invoices? If that’s the case, we’d want to look into this further. But if this is only happening via the integration, then this needs to be updated in the integration.

    As we’ve suggested before, checking in with the #developers channel of the WooCommerce Community Slack would be a good way to proceed so you can receive guidance from the community regarding the integration.

    Thank you!

Viewing 15 replies - 1 through 15 (of 19 total)
  • The topic ‘You created an unknown problem in the last update.’ is closed to new replies.