Liquid syntax error: Unknown tag 'endraw'
For further actions, you may consider blocking this person and/or reporting abuse
Liquid syntax error: Unknown tag 'endraw'
For further actions, you may consider blocking this person and/or reporting abuse
Shubham Murti -
rose rusell -
Franck Pachot -
Timur Takhtashov -
Top comments (4)
Hi and thanks for this article. I have a small question, in the method 2 you use check if the payment exists in-memory but why not to just store the payment in-memory and handle the exception
// make a unique reference key for each payment transaction
var paymentKey = 'PAYMENT' + user_id + order_id
Hey, you could store the payment in in-memory, however, if you are application is scaled across multiple nodes, that method makes it hard to avoid duplicate constraint. Let me know whats your thoughts if you could elaborate more about your approach.
Hi, thanks for the explanation above. However, may i know does your backend use Node instead of PHP, as i did experience use method 4 with PHP will still face the issue due to slow read/write of mysql?
My Backend was Node.
However, if the read/write is slow, with method 4, you are guaranteed that there will not be a duplicate due to DB constraint policy.