Commit 9bd2ad5a authored by Thomas Gambier's avatar Thomas Gambier 🚴🏼

slapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after...

slapos_jio: fix AccountingTransaction_getPaymentStateAsHateoas after f512ad84
parent 40501fca
...@@ -3,7 +3,7 @@ import json ...@@ -3,7 +3,7 @@ import json
state = context.AccountingTransaction_getPaymentState() state = context.AccountingTransaction_getPaymentState()
payment_transaction = None payment_transaction = None
if state == "Pay now": if state == "Pay now":
payment_transaction = context.SaleInvoiceTransaction_getPayzenPaymentRelatedValue().getRelativeUrl() payment_transaction = context.SaleInvoiceTransaction_getSlapOSPaymentRelatedValue().getRelativeUrl()
return json.dumps({"state": state, return json.dumps({"state": state,
"payment_transaction": payment_transaction}) "payment_transaction": payment_transaction})
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment