You have no items in your shopping cart.

Friday, March 29, 2024 5:21:25 PM

[BUG] Payment made, order not created

Posted: 2 years ago

#11449 Quote

wize1

Posted: 2 years ago

#11449 Quote
Hi again,

I'm glad to see you fixed some of bugs since we last spoke.
But I have one more for you to squeeze.

So here is scenario:

1. POST /v1/payment_intents 200 OK
- PaymentIntent status: requires_confirmation
2. WEBHOOK payment_intent.created - NOT SENT AS PER CONFIG
3. POST /v1/payment_intents/pi_1IkAv.../confirm 200 OK
- PaymentIntent status: requires_action
4. WEBHOOK payment_intent.requires_action - NOT SENT AS PER CONFIG
5. POST /v1/payment_intents/pi_1IkA.../confirm 200 OK
- PaymentIntent status: succeeded
- 3D Secure succeeded
6. WEBHOOK charge.succeeded - NOT SENT AS PER CONFIG
7. WEBHOOK payment_intent.succeeded - SENT, BUT FAILS

So payment_intent.succeeded webhook fails, because it nopcommerce does not have order by order guid specified in webhook. So the there is no order, but money is charged.

Im not sure what workflow you have in your plugin setup, at which point do you create order? Because in my case order is not created, but money is charged.

Regards, Dmitri




Customer

Posted: 2 years ago

#11451 Quote

itinnovations

Posted: 2 years ago

#11451 Quote
I bet you are using one page chekout. I had the same issue. It has to do with form validation where some fields are required but doesnt stop the payment plugin from pushing through the paytment. Fox sent to me a beta to test v3.07 which is supposed to check if the form is validated, however, I opted to get rid of one page checkout due to many things going on at this step. By the time users get to the payment page, I want them fully validated to make the payment plugin work less. Hope this helps.

Posted: 2 years ago

#11454 Quote

Support

Posted: 2 years ago

#11454 Quote
Try to use the native nopcommerce onepage checkout or another vendor one page checkout plugin.

Posted: 2 years ago

#11455 Quote

wize1

Posted: 2 years ago

#11455 Quote
Support wrote:
Try to use the native nopcommerce onepage checkout or another vendor one page checkout plugin.


I'm using native nopcommerce one page checkout.

Posted: 2 years ago

#11456 Quote

Support

Posted: 2 years ago

#11456 Quote
>So payment_intent.succeeded webhook fails, because it nopcommerce does not have order by order guid specified in webhook. So the there is no order, but money is charged.

Stripe changed the logic and sends webhook at once after payment but nopcommerce didn't create the nop order yet.
I added the timeout in the webhook handler.
Can you upgrade the plugin and check this issue again?

Posted: 2 years ago

#11457 Quote

wize1

Posted: 2 years ago

#11457 Quote
Support wrote:
>So payment_intent.succeeded webhook fails, because it nopcommerce does not have order by order guid specified in webhook. So the there is no order, but money is charged.

Stripe changed the logic and sends webhook at once after payment but nopcommerce didn't create the nop order yet.
I added the timeout in the webhook handler.
Can you upgrade the plugin and check this issue again?


Where do i find fixed version? i only see 3.07 which im using now

Posted: 2 years ago

#11458 Quote

Support

Posted: 2 years ago

#11458 Quote
>Because in my case order is not created, but money is charged.
No, your issue is in another place.

Nopcommerce can't create the nop order.
You use the native onepage checkout, it means that  customer addresses were validated in the one of checkout steps.
Do you see any error message in the nopcommerce log?

Posted: 2 years ago

#11459 Quote

wize1

Posted: 2 years ago

#11459 Quote
Support wrote:
>Because in my case order is not created, but money is charged.
No, your issue is in another place.

Nopcommerce can't create the nop order.
You use the native onepage checkout, it means that  customer addresses were validated in the one of checkout steps.
Do you see any error message in the nopcommerce log?



Nope :(

Posted: 2 years ago

#11460 Quote

Support

Posted: 2 years ago

#11460 Quote
nop 4.30?

Posted: 2 years ago

#11461 Quote

wize1

Posted: 2 years ago

#11461 Quote
Support wrote:
nop 4.30?


4.20

Posted: 2 years ago

#11462 Quote

Support

Posted: 2 years ago

#11462 Quote
Open the plugin configure page and enable debugging.
Clear the plugin log file.
Try to checkout. Send me the plugin log file to support@foxnetsoft.com.

Posted: 2 years ago

#11463 Quote

wize1

Posted: 2 years ago

#11463 Quote
I can't the problem happens in rare cases, but when it happens customers are very unhappy and claiming that we trying steal they money, because money taken and order not created.

Posted: 2 years ago

#11464 Quote

Support

Posted: 2 years ago

#11464 Quote
I need to think how to catch this issue....
Open the plugin configure page and enable debugging.
When the customer has issue with the payment you will send me the plugin log file and Stripe payment ID

Posted: 2 years ago

#11536 Quote

hokeypokey

Posted: 2 years ago

#11536 Quote
I am also experiencing the exact same issue.  Not in all cases, but sometimes the order payment goes through to Stripe, but the webhook returns 500 and the order never get's placed in Nopcommerce.  
I just turned on debugging, so next time it happens I will also send you log file to see if it's something that can be fixed.

( Nop 4.2 )

Posted: 2 years ago

#11537 Quote

Support

Posted: 2 years ago

#11537 Quote
Do you use the nopcommerce checkout or checkout from external developers?

Posted: 2 years ago

#11538 Quote

hokeypokey

Posted: 2 years ago

#11538 Quote
Nopcommerce checkout, one page checkout.

Posted: 2 years ago

#11539 Quote

Support

Posted: 2 years ago

#11539 Quote
1. Upgrade the plugin and use the last release
2.  Open the plugin configure page and enable debugging.
3. When you see the same issue you need to send me the plugin log file and check the nopcommerce log.

Posted: 2 years ago

#11540 Quote

hokeypokey

Posted: 2 years ago

#11540 Quote
Sounds good, I will do that.

Much appreciated!

Powered by nopCommerce

Copyright © 2023 FoxNetSoft. All rights reserved