Releases: laterpay/laterpay-client-python
5.7.0
-
The
ITEM_TYPE_POLITICAL_CONTRIBUTION
constant was added to theconstants
module. It's to be used in conjuction with theitem_type
attribute on an
ItemDefinition
. -
The
ItemDefinition
gained a new key-word argumentelection_id
that must
be set whenitem_type
isITEM_TYPE_POLITICAL_CONTRIBUTION
when creating
purchase URLs for political contributions.
5.6.0
-
The
ItemDefinition
gained a new key-word argumentitem_type
that must
be set to'contribution'
or'donation'
when creating purchase URLs for
contributions or donations. -
Two new constants were added to the
constants
module:
ITEM_TYPE_CONTRIBUTION
andITEM_TYPE_DONATION
to be used in conjuction
with the newitem_type
attribute 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_api
fromget_login_dialog_url()
use_dialog_api
fromget_signup_dialog_url()
use_dialog_api
fromget_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
cp
argument fromlaterpay.ItemDefinition
-
Reliably ignore
hmac
andgettoken
parameters 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.