开发者

Client's CC double charged when Back is clicked

开发者 https://www.devze.com 2023-03-06 01:18 出处:网络
I have a custom built shopping cart th开发者_如何学JAVAat is double charging clients credit card when they click the back button. My thought is to make them shopping cart empty when they click the bac

I have a custom built shopping cart th开发者_如何学JAVAat is double charging clients credit card when they click the back button. My thought is to make them shopping cart empty when they click the back button. Any ideas will be highly appreciated.


There are multiple ways to solve this problem:

  1. Your form passes a unique GUID as a hidden form field on the submission page. Then your app stores this GUID in the session object on the server. Before you process the payment, you can check to see if this value is already stored in the session.

  2. Your application is not responsible for processing orders... only storing order info in a database. Another application daemon on the server looks for orders waiting to be processed on the server and processes them offline. Advantage here is you won't have HTTP timeout problems, as well as avoiding the refresh problem.

  3. Post/Redirect/Get

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号