how do we verify order before pay now?

GeorgeHoffman
New Member
7 0 0

When the customer clicks the pay now button during checkout it will direct to processing then the thank you page. Is there any way for our store to verify the order before it goes to the payment gateway (we need to ensure custom discounts are still valid)? We have shopify plus, are using shopify payments, and also have a custom app and app proxy setup. Validation can happen in the custom app or some other mechanism directly on shopify - whichever is the recommended method. We need some mechanism that is tamper proof so please no suggestions about client side ajax or javascript or anything we can block in 2 minutes with fiddler or browser dev tools. It has to be something server to server (shopify->custom app) or by verifying user tags (once again server side) or some other synchronous check. Thanks in advance for your answer!

0 Likes
Jason
Shopify Expert
10272 144 1942

 We need some mechanism that is tamper proof 

Given that comment - no. If the checkout has valid discounts at the time of its last update then it will persist.

Are you willing to share a little more about why you need that? Why would a custom discount no longer be valid?

I jump on these forums to help and share some insights. Not looking to be hired, and not looking for work.

Don't hand out staff invites or give admin password to forum members unless absolutely needed. In most cases the help you need can be handled without that.


★ http://freakdesign.com.au ★
0 Likes
GeorgeHoffman
New Member
7 0 0

The custom discount is no longer valid if there are discount caps. Like we want to offer the discount 100 times. If we offer it 101 times we are financially liable to pay for the extra discount. It would be nice if there was to make a blocking call back into our system to enforce some transactionality.

I actually found that the line item scripts execute one last time after the user clicks the pay now button. Thank god because that is all Shopify gives us that is actually secure. If the total has changed it will direct the user back to an order review page rather than the thank you page. Its not ideal and we have to bend over backwards to make this transactional but I guess it works. We are making the offers available in customer tags as well as tracking in a database on our side so ensure we only put the offer in 100 customer tags. Then we have to manage deleting these tags if the user abandons the checkout for a few hours.

0 Likes