Commit cad62fc1 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_payzen: Partially revert slapos_payzen: Start Moving SlapOS Payzen to REST API

  Changes on PaymentTransaction_updateStatus were added for debugging purpose it seems.
parent f756596d
from DateTime import DateTime from DateTime import DateTime
state = context.getSimulationState() state = context.getSimulationState()
#if (state != 'started') or (context.getPaymentMode() != 'payzen'): if (state != 'started') or (context.getPaymentMode() != 'payzen'):
# return return
#else: else:
_, transaction_id = context.PaymentTransaction_getPayzenId() _, transaction_id = context.PaymentTransaction_getPayzenId()
if transaction_id is not None: if transaction_id is not None:
# so the payment is registered in payzen # so the payment is registered in payzen
context.PaymentTransaction_createPayzenEvent().updateStatus() context.PaymentTransaction_createPayzenEvent().updateStatus()
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