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
state = context.getSimulationState()
#if (state != 'started') or (context.getPaymentMode() != 'payzen'):
# return
#else:
_, transaction_id = context.PaymentTransaction_getPayzenId()
if (state != 'started') or (context.getPaymentMode() != 'payzen'):
return
else:
_, transaction_id = context.PaymentTransaction_getPayzenId()
if transaction_id is not None:
# so the payment is registered in payzen
context.PaymentTransaction_createPayzenEvent().updateStatus()
if transaction_id is not None:
# so the payment is registered in payzen
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