payment_status

payment_status.invalid_question_answer

exception lsserver.payment_gateway.payment_status.InvalidQuestionAnswer(question_text, options, invalid_answer)

Bases: lscore.errors.server_errors.ServerError, lsserver.payment_gateway.payment_status.PaymentStatusError

Parameters:
  • question_text (string) – the question’s wording
  • invalid_answer (string) – invalid answer response
HTTP code: 500 Internal Server Error
Example: Question “None” with options [None] does not have option “None”.
type = 'payment_status.invalid_question_answer'
localizable_message = <LocalizableMessage key='payment_status.invalid_question_answer' ...>

payment_status.invalid_question_code

exception lsserver.payment_gateway.payment_status.InvalidQuestionCode(question_code, question_text, answer)

Bases: lscore.errors.server_errors.ServerError, lsserver.payment_gateway.payment_status.PaymentStatusError

Parameters:
  • question_text (string) – the question’s wording
  • invalid_answer (string) – invalid answer response
HTTP code: 500 Internal Server Error
Example: Invalid question code [None] when answering question “None with answer “None”
type = 'payment_status.invalid_question_code'
localizable_message = <LocalizableMessage key='payment_status.invalid_question_code' ...>

payment_status.payment_state_error

exception lsserver.payment_gateway.payment_status.PaymentStateError(payment_action, payment_state)

Bases: lscore.errors.server_errors.ServerError, lsserver.payment_gateway.payment_status.PaymentStatusError

Parameters:
  • payment_action (string) – Attempted payment action resulting in error.
  • invalid_answer (string) – State payment was in when payment action attempted.
HTTP code: 500 Internal Server Error
Example: Couldn’t [None] due to the payment’s state being [None].
type = 'payment_status.payment_state_error'
localizable_message = <LocalizableMessage key='payment_status.payment_state_error' ...>