uc_payment_enter() is pretty useless if you need to create payment receipts that are related to 3rd party modules, because there is no way to get the correct receipt ID after creating the receipt.
As a quick fix, I suggest the insert query result is returned.
Comments
Comment #1
sobi3ch commented+1
Comment #2
sobi3ch commentedComment #3
longwaveFixed in http://drupalcode.org/project/ubercart.git/commitdiff/6ca6deb