Skip to content

Releases: cashapp/cash-app-pay-android-sdk

v2.6.0

04 Apr 16:10
26dbbe5
Compare
Choose a tag to compare

What's Changed

Full Changelog: v2.5.0...v2.6.0

v2.5.0

19 Jul 17:57
adb3284
Compare
Choose a tag to compare
  • Fix correct usage of account_reference_id in OnFileAction
  • Add reference_id as a parameter of creating a customer request. This is to bring the Android SDK to parity with iOS and Web.

v2.4.0

19 Jul 17:56
Compare
Choose a tag to compare
  • Fix: OnFileAction param accountReferenceId is now properly being sent over the network
  • Update Android target SDK version to API 33
  • Update internal dependencies to recent versions, ensuring strong backward compatibility support

v2.3.0

20 Aug 19:08
a6accbf
Compare
Choose a tag to compare

Updates / Fixes

  • The class CashAppPayInitializer was made open, so that androidx.startup can be manually overridden.
  • This version bundles fixes for minify enabled builds.
  • Updated internal dependency on OkHttp to version 4.11.0.

Breaking Changes

  • Renamed class CashAppCashAppPayApiNetworkException to CashAppPayApiNetworkException
  • Renamed class CashAppCashAppPayApiNetworkException to CashAppPayApiNetworkException
  • This version contains a change to the bundled Cash App Pay button.
    Previously, light and dark variants of the button were made possible by using 2 different
    views, respectively CashAppPayButtonLight an CashAppPayButtonDark. As of this version, the
    there will only be a single CashAppPayButton view, which has been updated to support both variants.
    To obtain different variants, developers should use the XML style attribute to specify the variant they want, as follows:

Light Variant:

<app.cash.paykit.core.ui.CashAppPayButton
      style="@style/CAPButtonStyle.Light"
      android:layout_height="54dp"
      android:layout_width="match_parent"/>

Dark Variant:

<app.cash.paykit.core.ui.CashAppPayButton
      style="@style/CAPButtonStyle.Dark"
      android:layout_height="54dp"
      android:layout_width="match_parent"/>

This change makes it possible for developer to use the button in a more flexible way, such as using
a style that changes accordingly to the OS theme.

You should migrate any instances of CashAppPayButtonLight and CashAppPayButtonDark to CashAppPayButton.

v2.2.1

07 Jul 22:32
b62ee84
Compare
Choose a tag to compare

Here's what has changed on this release:

  • Information that can be considered PII is now marked as such by implementing the interface PiiContent.
    • This is possibly a breaking change, but in practice for the majority of people out there, these shouldn't be properties that you're using.
  • Improved Thread management to prevent memory leaks and unexpected behavior.

v2.2.0

29 Jun 21:52
8478e8b
Compare
Choose a tag to compare

In this release of our open source SDK, we've made a significant update that involves modifying the date types within our returned payloads from string to Instant. Please note that this modification is a breaking change. Here's what has been altered:

  • The dates in the models have been transitioned from string to Instant.
  • Metrics timestamps are now accurately recorded in Epoch usec.
  • In situations where the auth flow token has expired, it will now be automatically refreshed, thereby ensuring a successful request.
  • We've added a new state: Refreshing. This state is triggered exclusively when the auth flow token needs a refresh during a customer authorization attempt. Typically, this state acts as a bridge between Authorizing and PollingTransactionStatus states.

v2.1.0

28 Apr 21:00
ec6af85
Compare
Choose a tag to compare

This version introduces a concrete type for GrantType under the Grant class. Before this field was a string.
This is a breaking change. The following has changed:

  • Grant.type from string to GrantType
  • Possible GrantType values: ONE_TIME, EXTENDED, UNKNOWN. These values match their spelling with what is described by our public API.
  • For convenience, ONE_TIME applies to a grant can only be used once, where EXTENDED applies to grants that can be repeatedly used.
  • Fixes to the behavior of startWithExistingCustomerRequest

v2.0.0

05 Apr 21:43
c3bb420
Compare
Choose a tag to compare

This version introduces support for multiple CashAppPayPaymentAction per createCustomerRequest.
This is a breaking change. The following functions have changed:

  • createCustomerRequest(paymentAction: CashAppPayPaymentAction) to createCustomerRequest(paymentAction: CashAppPayPaymentAction, redirectUri: String?)
  • CashAppPayPaymentAction no longer contains the redirectUri parameter. Instead pass that value to the createCustomerRequest function.

And the following functions were introduced:

  • createCustomerRequest(paymentActions: List<CashAppPayPaymentAction>, redirectUri: String?)
  • updateCustomerRequest(requestId: String, paymentActions: List<CashAppPayPaymentAction>)

v1.0.8

23 Mar 21:05
de118db
Compare
Choose a tag to compare

What's Changed

  • Add environment property to Analytics

Full Changelog: v1.0.7...v1.0.8

v1.0.7

09 Mar 22:22
5d59b67
Compare
Choose a tag to compare
  • Breaking change: authorizeCustomerRequest no longer requires a context to be passed as a parameter
  • Breaking change: several class names have changed to better align across platforms. The gist of it, is that PayKit becomes CashAppPay

Class renaming correspondence:

PayKitState -> CashAppPayState
PayKitExceptionState -> CashAppPayExceptionState
PayKitCurrency -> CashAppPayCurrency
PayKitPaymentAction -> CashAppPayPaymentAction
CashAppPayKit -> CashAppPay
CashAppPayKitFactory -> CashAppPayFactory
CashAppPayKitListener -> CashAppPayListener
CashPayKitLightButton -> CashAppPayLightButton
CashPayKitDarkButton -> CashAppPayDarkButton