Error IPN
This commit is contained in:
@@ -61,7 +61,7 @@ class BtcpayController(http.Controller):
|
||||
|
||||
tx = None
|
||||
if self.invoice['orderId']:
|
||||
tx_ids = request.registry['payment.transaction'].search(cr, uid, [('reference', '=', self.invoice['orderId'])], context=contex
|
||||
tx_ids = request.registry['payment.transaction'].search(cr, uid, [('reference', '=', self.invoice['orderId'])], context=context)
|
||||
if tx_ids:
|
||||
tx = request.registry['payment.transaction'].browse(cr, uid, tx_ids[0], context=context)
|
||||
|
||||
@@ -81,6 +81,7 @@ class BtcpayController(http.Controller):
|
||||
pass
|
||||
return ''
|
||||
|
||||
|
||||
@http.route(['/btcpay/checkout'], type='http', auth='none', csrf=None, website=True)
|
||||
def checkout(self, **post):
|
||||
cr, uid, context, env = request.cr, SUPERUSER_ID, request.context, request.env
|
||||
|
||||
Reference in New Issue
Block a user