Skip to content

Releases: laterpay/laterpay-client-python

5.7.0

12 Mar 16:49
Compare
Choose a tag to compare
  • The ITEM_TYPE_POLITICAL_CONTRIBUTION constant was added to the constants
    module. It's to be used in conjuction with the item_type attribute on an
    ItemDefinition.

  • The ItemDefinition gained a new key-word argument election_id that must
    be set when item_type is ITEM_TYPE_POLITICAL_CONTRIBUTION when creating
    purchase URLs for political contributions.

5.6.0

28 Feb 11:14
Compare
Choose a tag to compare
  • The ItemDefinition gained a new key-word argument item_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 and ITEM_TYPE_DONATION to be used in conjuction
    with the new item_type attribute on an ItemDefinition.

5.5.0

28 Feb 11:14
Compare
Choose a tag to compare
  • Added support for Python 3.6

  • Allowed article_ids when fetching access data to be a
    collections.Iterable and not just a string, list or tuple. Passing
    anything else will raise a DeprecationWarning.

5.4.0

28 Feb 11:13
Compare
Choose a tag to compare
  • Added the connection_handler to LaterPayClient to simplify connection
    pooling.

  • Updated test dependencies.

5.3.1

16 May 17:55
Compare
Choose a tag to compare
  • Enforced only on of lptoken and muid is passed to /access

5.3.0

16 May 17:54
Compare
Choose a tag to compare
  • Added support for merchant defined user IDs

5.2.0

08 Feb 14:18
Compare
Choose a tag to compare
  • Added constants outlining expiration and duration time bases for purchases

5.1.0

07 Feb 10:05
Compare
Choose a tag to compare
  • Ignored HMAC character capitalization
    (#93)
  • Added support for /dialog/subscribe and LaterPay's subscription system

5.0.0

03 Jan 11:27
Compare
Choose a tag to compare
Bump version 5.0.0

5.0.0a1

21 Nov 13:58
Compare
Choose a tag to compare
5.0.0a1 Pre-release
Pre-release
  • Removed the following long deprecated methods from the
    laterpay.LaterPayClient:

    • get_access(), use get_access_data() instead
    • get_iframeapi_balance_url(), us get_controls_balance_url() instead
    • get_iframeapi_links_url(), us get_controls_links_url() instead
    • get_identify_url() is not needed following our modern access control
      checks
  • Removed the following deprecated arguments from laterpay.LaterPayClient
    methods:

    • use_dialog_api from get_login_dialog_url()
    • use_dialog_api from get_signup_dialog_url()
    • use_dialog_api from get_logout_dialog_url()
  • Removed the following public methods from laterpay.signing:

    • sign_and_encode() in favor of laterpay.utils.signed_query()
    • sign_get_url() in favor of laterpay.utils.signed_url()

    Note that sign_and_encode() and sign_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 from laterpay.ItemDefinition

  • Reliably ignore hmac and gettoken parameters when creating the signature
    message. In the past signing.sign() and signing.verify() stripped those
    keys when a dict() 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.