Releases: laterpay/laterpay-client-python
5.7.0
-
The
ITEM_TYPE_POLITICAL_CONTRIBUTIONconstant was added to theconstants
module. It's to be used in conjuction with theitem_typeattribute on an
ItemDefinition. -
The
ItemDefinitiongained a new key-word argumentelection_idthat must
be set whenitem_typeisITEM_TYPE_POLITICAL_CONTRIBUTIONwhen creating
purchase URLs for political contributions.
5.6.0
-
The
ItemDefinitiongained a new key-word argumentitem_typethat must
be set to'contribution'or'donation'when creating purchase URLs for
contributions or donations. -
Two new constants were added to the
constantsmodule:
ITEM_TYPE_CONTRIBUTIONandITEM_TYPE_DONATIONto be used in conjuction
with the newitem_typeattribute on anItemDefinition.
5.5.0
5.4.0
5.3.1
5.3.0
5.2.0
5.1.0
5.0.0
5.0.0a1
-
Removed the following long deprecated methods from the
laterpay.LaterPayClient:get_access(), useget_access_data()insteadget_iframeapi_balance_url(), usget_controls_balance_url()insteadget_iframeapi_links_url(), usget_controls_links_url()insteadget_identify_url()is not needed following our modern access control
checks
-
Removed the following deprecated arguments from
laterpay.LaterPayClient
methods:use_dialog_apifromget_login_dialog_url()use_dialog_apifromget_signup_dialog_url()use_dialog_apifromget_logout_dialog_url()
-
Removed the following public methods from
laterpay.signing:sign_and_encode()in favor oflaterpay.utils.signed_query()sign_get_url()in favor oflaterpay.utils.signed_url()
Note that
sign_and_encode()andsign_get_url()used to remove existing
'hmac'parameters before signing query strings. This is different to
signed_query()as that function also allows other names for the hmac query
argument. Please remove the parameter yourself if need be. -
Removed the deprecated
cpargument fromlaterpay.ItemDefinition -
Reliably ignore
hmacandgettokenparameters when creating the signature
message. In the pastsigning.sign()andsigning.verify()stripped those
keys when adict()was passed from the passed function arguments but not
for lists or tuples. Note that as a result the provided parameters are not
touched anymore and calling either function will not have side-effects on
the provided arguments.