FROM CACHE - en_header

Order confirmation email is sent regardless of payment status

Solved
Rapyd
New Member
2 0 0

We have a hosted payment app on Shopify where buyers complete payments on a hosted checkout page. We have gotten feedback that buyers are getting the order confirmation email even if the payment has not been completed. 

We are sending "x_result = pending" to the x_url_callback endpoint when payments are still active in our system and then update with "x_result = completed" when the payments are closed. 

Can anyone say why this is happening? Are order confirmation emails not dependant on the status of the payment? 

Thanks.

 

 

Accepted Solution (1)

Accepted Solutions
GrahamS
Shopify Staff
Shopify Staff
193 36 49

This is an accepted solution.

Hello @Rapyd ,

"Are order confirmation emails not dependant on the status of the payment?"

This is the case - payment status is arbitrary when it comes to order confirmation. Order confirmation notifications are triggered based on a parameter that is included in the Order creation API body, and cannot be triggered later if that parameter is intentionally left out.

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Reply 1 (1)
GrahamS
Shopify Staff
Shopify Staff
193 36 49

This is an accepted solution.

Hello @Rapyd ,

"Are order confirmation emails not dependant on the status of the payment?"

This is the case - payment status is arbitrary when it comes to order confirmation. Order confirmation notifications are triggered based on a parameter that is included in the Order creation API body, and cannot be triggered later if that parameter is intentionally left out.

Graham S | API Support @ Shopify
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution
- To learn more visit Shopify.dev or the Shopify Web Design and Development Blog