Commit 799af7fa by Solo Group

error payment

1 parent c1ebab42
......@@ -144,6 +144,9 @@ class Vendor(VendorClass):
log.info("Payment Response: %s" % self.response)
return self.set_pending()
if self.response["responseCode"] != "00":
return self.inquiry_error(self.response)
parsd = self.response_field()
self.serial_number = 'ntb' in result and result["ntb"].strip() \
......
......@@ -55,7 +55,6 @@ class Vendor(VendorClass):
denda = int(resp["chargeAmount"] or '0')
disc_biller = 0
sub_total = pokok + denda - disc_biller
result = self.get_price(sub_total)
admin = int(self.vendor_produk.produk.harga)
rincian = dict(
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!