pymipago package

Submodules

pymipago.constants module

includes some constants used by the library

pymipago.exceptions module

exception pymipago.exceptions.InvalidCPRValue[source]

Bases: exceptions.Exception

Raised when the used CPR value is not valid.

exception pymipago.exceptions.InvalidFormatValue[source]

Bases: exceptions.Exception

Raised when the used Format value is not valid.

exception pymipago.exceptions.InvalidReferenceNumber[source]

Bases: exceptions.Exception

Raised when the format of the reference_number is not valid.

exception pymipago.exceptions.InvalidRegistration[source]

Bases: exceptions.Exception

Raised when the registration of the payment on the Government platform is invalid and has created an error

pymipago.utils module

util functions used by the main module

Module contents

pymipago.make_payment_request(cpr, sender, format, suffix, reference_number, payment_limit_date, quantity, language, return_url, payment_modes=['01', '02'], test_environment=False, extra={})[source]

This method creates an XML file and creates a payment request on the Government platform in order to have the basis to be shown to the end user.

According to the payment platform specs, after the registration, an HTML file is created which must be shown to the user. This HTML file has an “auto-refresh” feature which allows to redirect the user to the payment platform, where all the data of the payment is already entered.

There, the enduser only has to select the bank of his choice to complete the payment.

After completing the payment the user will be redirected to the return_url.

See the documentation for more information about the parameters