|
|
@ -184,6 +184,7 @@ class PaymentRequest: |
|
|
|
if CA_match: |
|
|
|
print 'Signed By Trusted CA: ', CA_OU |
|
|
|
|
|
|
|
print "payment url", pay_det.payment_url |
|
|
|
return True |
|
|
|
|
|
|
|
|
|
|
@ -191,9 +192,10 @@ class PaymentRequest: |
|
|
|
def send_ack(self, raw_tx, refund_addr): |
|
|
|
|
|
|
|
pay_det = self.payment_details |
|
|
|
if pay_det.payment_url: |
|
|
|
paymnt = paymentrequest_pb2.Payment() |
|
|
|
if not pay_det.payment_url: |
|
|
|
return |
|
|
|
|
|
|
|
paymnt = paymentrequest_pb2.Payment() |
|
|
|
paymnt.merchant_data = pay_det.merchant_data |
|
|
|
paymnt.transactions.append(raw_tx) |
|
|
|
|
|
|
@ -216,9 +218,12 @@ class PaymentRequest: |
|
|
|
try: |
|
|
|
paymntack = paymentrequest_pb2.PaymentACK() |
|
|
|
paymntack.ParseFromString(r.content) |
|
|
|
print "PaymentACK message received: %s" % paymntack.memo |
|
|
|
except Exception: |
|
|
|
print "PaymentACK could not be processed. Payment was sent; please manually verify that payment was received." |
|
|
|
return |
|
|
|
|
|
|
|
print "PaymentACK message received: %s" % paymntack.memo |
|
|
|
return paymntack.memo |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|