We should be sending a new order id (x_invoice) with every call to NewInvoice. This should be generated as ct_id.numAttempt.
There is logic to increment numAttempt and retry the api call every time we get a 'duplicate invoice' error message back, but in a lot of cases we seem to be repeatedly sending the same one.
Description
Description
Details
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
Generate new order IDs for each NewInvoice call | mediawiki/extensions/DonationInterface | master | +98 -13 |
Related Objects
Related Objects
Event Timeline
Comment Actions
Note to self: numAttempt only gets incremented when you set a final status. Either the AstroPay adapter will have to redefine what numAttempt means (and increment it every time we call NewInvoice), or it will have to do something else to make the invoice ID unique
Comment Actions
Change 227256 had a related patch set uploaded (by Ejegg):
Generate new order IDs for each NewInvoice call