I am using Moneris as a online payment gateway and everything worked fine until client came across with a order_id miss match between a system recorded payment transaction and Moneris Payment Transaction reports.
In the system we create payment transaction record with a unique order_id and send that along with the moneris payment request.
secureOnlinePaymentRequestStringBuilder.AppendFormat("<input type='hidden' name='ps_store_id' value='{0}'>", store_id);
secureOnlinePaymentRequestStringBuilder.AppendFormat("<input type='hidden' name='hpp_key' value='{0}'>", hpp_key);
secureOnlinePaymentRequestStringBuilder.AppendFormat("<input type='hidden' name='order_id' value='{0}'>", order_id);
secureOnlinePaymentRequestStringBuilder.AppendFormat("<input type='hidden' name='cust_id' value='{0}'>", cust_id);
I guess here the user must have tried with a declined credit card and there when the user re-submit several times Moneris had incremented provided order_id using suffixes like r01, r02, etc.
ex: Original Order_id sent : 123456
the approved order_id in Moneris system : 123456-r03
Since I am capturing the result with the original order_id I generated I cannot track the updated response in my system.
Is there a way to restrict Moneris to edit the provided order_id.
Or else can you please suggest a way to avoid this kind of request, response miss match problem in Moneris.
Aucun commentaire:
Enregistrer un commentaire