Skip to content

Releases

4.0.0-beta.4

4.0.0-beta.4 Pre-release
Pre-release

Choose a tag to compare

@NoflexGit NoflexGit released this 11 Nov 21:05

Pre-release from main: not for production.

Added

  • PaymentTextStyle.fontFamily takes a font the app ships (PaymentFontFamily); null keeps the system font.
  • iOS: SdkCoreConfig(cardParams:timestamp:) without registeredFrom:.

Changed

  • iOS: the SDK ships as three Swift Package Manager products instead of the one PayrdrSDK / sdk_payment_scanner:
    RadarpaymentsSDKPayment (the payment sheet, with SDK Core inside), RadarpaymentsSDKScanner (the card scanner) and
    RadarpaymentsSDKCore (SDK Core alone, for an app with its own payment form). Replace import sdk_payment_scanner
    with import RadarpaymentsSDKPayment; an app that passes MlKitVisionCardScannerProvider also adds the
    RadarpaymentsSDKScanner product and imports it. An app takes either RadarpaymentsSDKPayment or
    RadarpaymentsSDKCore, never both. The release assets are RadarpaymentsSDKPayment-<version>.xcframework.zip,
    RadarpaymentsSDKCore-<version>.xcframework.zip and RadarpaymentsSDKScanner-<version>.zip (Swift sources); in
    4.0.0-beta.3 the two framework zips had no version in the name.
  • iOS: the payment framework no longer contains camera code, so an app without the scanner product links no capture
    API. MlKitVisionCardScannerProvider(logTransport:) now comes from RadarpaymentsSDKScanner, and logTransport may
    be left out.
  • iOS: SDK Core types lose the Sdk_core prefix in Swift: Sdk_coreTokenResult is TokenResult,
    Sdk_corePaymentCardParams is PaymentCardParams.
  • The Flutter plugin's release archive is payrdr-flutter-sdk-<version>.tar.gz (was payrdr_sdk-<version>.tar.gz);
    the folder inside is still payrdr_sdk.
  • iOS: the checkout and the card scanner screens are SwiftUI instead of Compose Multiplatform. The framework no longer
    carries the Compose and Skia runtime: the stripped binary drops from about 39 MB to about 9 MB and the zipped
    XCFramework from 71 MB to 22 MB. PayrdrCheckout, the SwiftUI modifier and the results are unchanged.
  • The theme no longer uses Compose types, so the same PaymentTheme.Custom works on both platforms: colours are
    PaymentColor (ARGB), text styles PaymentTextStyle (size, weight, line height, letter spacing, tabular figures)
    and corners PaymentCorners (Radius or Pill). On Android, PaymentColors(...) and PaymentTypography(...)
    overloads take Compose Color and TextStyle, and Color.toPaymentColor(), PaymentColor.toColor() and
    TextStyle.toPaymentTextStyle() convert single values; iOS apps build the theme from PaymentColor values.
  • CardParams.mdOrder and BindingParams.mdOrder have no default any more. The empty default always failed with
    ParamField.MD_ORDER required; pass the order, or use CardInstantParams / BindingInstantParams without one.
  • sdk-payment exposes androidx.activity to the app's compile classpath, since PayrdrCheckout takes its types.

Fixed

  • After a card was added (a save-card-only session), the next payment sheet opened as "New card" and switched to the
    saved cards a moment later: the add-card session overwrote the remembered card count used for the skeleton. It no
    longer does.
  • iOS: a step whose content had not been measured yet no longer makes the sheet jump up for one frame.
  • SDK Core reports a card whose expiry month has passed: generate returns ParamField.EXPIRY with invalid, and
    the bridge {"errors": {"expiry": "invalid"}}. Before, only the payment sheet's form checked the date, so an app
    with its own form got a token for an expired card and the buyer saw the gateway's decline instead. The date is that
    of SdkCoreConfig.timestamp in the device's time zone: pass the current time in milliseconds.

Install

  • iOS: Swift Package Manager, https://github.com/Radarpayments/mobile-sdk, exact version 4.0.0-beta.4, products
    RadarpaymentsSDKPayment (the checkout) and, for the card scanner, RadarpaymentsSDKScanner; an app with its own
    payment form takes RadarpaymentsSDKCore instead of the two. Or embed the XCFrameworks from the zips below
    and add the sources of RadarpaymentsSDKScanner-4.0.0-beta.4.zip to the app.
  • Android: implementation("io.github.radarpayments:sdk-payment:4.0.0-beta.4") from Maven Central; the AARs below are the
    same libraries to download (their dependencies are listed in the POMs on Maven Central).
  • Flutter 1.0.0-beta.4: unpack payrdr-flutter-sdk-1.0.0-beta.4.tar.gz (a payrdr_sdk folder) and depend on it by path.
  • React Native 1.0.0-beta.4: npm install ./payrdr-react-native-sdk-1.0.0-beta.4.tgz.

The plugins' Android part takes the SDK from Maven Central.

4.0.0-beta.3

4.0.0-beta.3 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Nov 16:49

Pre-release from main: not for production.

Added

  • PaymentTextStyle.fontFamily takes a font the app ships (PaymentFontFamily); null keeps the system font.

Changed

  • iOS: the SDK ships as three Swift Package Manager products instead of the one PayrdrSDK / sdk_payment_scanner:
    RadarpaymentsSDKPayment (the payment sheet, with SDK Core inside), RadarpaymentsSDKScanner (the card scanner) and
    RadarpaymentsSDKCore (SDK Core alone, for an app with its own payment form). Replace import sdk_payment_scanner
    with import RadarpaymentsSDKPayment; an app that passes MlKitVisionCardScannerProvider also adds the
    RadarpaymentsSDKScanner product and imports it. An app takes either RadarpaymentsSDKPayment or
    RadarpaymentsSDKCore, never both. The release assets are RadarpaymentsSDKPayment.xcframework.zip,
    RadarpaymentsSDKCore.xcframework.zip and RadarpaymentsSDKScanner-<version>.zip (Swift sources).
  • iOS: the payment framework no longer contains camera code, so an app without the scanner product links no capture
    API. MlKitVisionCardScannerProvider(logTransport:) now comes from RadarpaymentsSDKScanner, and logTransport may
    be left out.
  • iOS: SDK Core types lose the Sdk_core prefix in Swift: Sdk_coreTokenResult is TokenResult,
    Sdk_corePaymentCardParams is PaymentCardParams.
  • The Flutter plugin's release archive is payrdr-flutter-sdk-<version>.tar.gz (was payrdr_sdk-<version>.tar.gz);
    the folder inside is still payrdr_sdk.
  • iOS: the checkout and the card scanner screens are SwiftUI instead of Compose Multiplatform. The framework no longer
    carries the Compose and Skia runtime: the stripped binary drops from about 39 MB to about 9 MB and the zipped
    XCFramework from 71 MB to 22 MB. PayrdrCheckout, the SwiftUI modifier and the results are unchanged.
  • The theme no longer uses Compose types, so the same PaymentTheme.Custom works on both platforms: colours are
    PaymentColor (ARGB), text styles PaymentTextStyle (size, weight, line height, letter spacing, tabular figures)
    and corners PaymentCorners (Radius or Pill). On Android, PaymentColors(...) and PaymentTypography(...)
    overloads take Compose Color and TextStyle, and Color.toPaymentColor(), PaymentColor.toColor() and
    TextStyle.toPaymentTextStyle() convert single values; iOS apps build the theme from PaymentColor values.

Fixed

  • After a card was added (a save-card-only session), the next payment sheet opened as "New card" and switched to the
    saved cards a moment later: the add-card session overwrote the remembered card count used for the skeleton. It no
    longer does.
  • iOS: a step whose content had not been measured yet no longer makes the sheet jump up for one frame.

Install

  • iOS: Swift Package Manager, https://github.com/Radarpayments/mobile-sdk, exact version 4.0.0-beta.3, products
    RadarpaymentsSDKPayment (the checkout) and, for the card scanner, RadarpaymentsSDKScanner; an app with its own
    payment form takes RadarpaymentsSDKCore instead of the two. Or embed the XCFrameworks from the zips below
    and add the sources of RadarpaymentsSDKScanner-4.0.0-beta.3.zip to the app.
  • Android: implementation("io.github.radarpayments:sdk-payment:4.0.0-beta.3") from Maven Central; the AARs below are the
    same libraries to download (their dependencies are listed in the POMs on Maven Central).
  • Flutter 1.0.0-beta.3: unpack payrdr-flutter-sdk-1.0.0-beta.3.tar.gz (a payrdr_sdk folder) and depend on it by path.
  • React Native 1.0.0-beta.3: npm install ./payrdr-react-native-sdk-1.0.0-beta.3.tgz.

The plugins' Android part takes the SDK from Maven Central.

4.0.0-beta.2

4.0.0-beta.2 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 11 Nov 13:24

Pre-release from main: not for production.

Added

  • PaymentTextStyle.fontFamily takes a font the app ships (PaymentFontFamily); null keeps the system font.

Changed

  • iOS: the checkout and the card scanner screens are SwiftUI instead of Compose Multiplatform. The framework no longer
    carries the Compose and Skia runtime: the stripped sdk_payment_scanner binary drops from about 39 MB to about 9 MB
    and the zipped XCFramework from 71 MB to 22 MB. PayrdrCheckout, the SwiftUI modifier and the results are unchanged.
  • The theme no longer uses Compose types, so the same PaymentTheme.Custom works on both platforms: colours are
    PaymentColor (ARGB), text styles PaymentTextStyle (size, weight, line height, letter spacing, tabular figures)
    and corners PaymentCorners (Radius or Pill). On Android, PaymentColors(...) and PaymentTypography(...)
    overloads take Compose Color and TextStyle, and Color.toPaymentColor(), PaymentColor.toColor() and
    TextStyle.toPaymentTextStyle() convert single values; iOS apps build the theme from PaymentColor values.

Fixed

  • After a card was added (a save-card-only session), the next payment sheet opened as "New card" and switched to the
    saved cards a moment later: the add-card session overwrote the remembered card count used for the skeleton. It no
    longer does.
  • iOS: a step whose content had not been measured yet no longer makes the sheet jump up for one frame.

Install

  • iOS: Swift Package Manager, https://github.com/Radarpayments/mobile-sdk, exact version 4.0.0-beta.2, product PayrdrSDK
    (import sdk_payment_scanner); or embed sdk_payment_scanner.xcframework from the zip below.
  • Android: implementation("io.github.radarpayments:sdk-payment:4.0.0-beta.2") from Maven Central; the AARs below are the
    same libraries to download (their dependencies are listed in the POMs on Maven Central).
  • Flutter 1.0.0-beta.2: unpack payrdr-flutter-sdk-1.0.0-beta.2.tar.gz (a payrdr_sdk folder) and depend on it by path.
  • React Native 1.0.0-beta.2: npm install ./payrdr-react-native-sdk-1.0.0-beta.2.tgz.

The plugins' Android part takes the SDK from Maven Central.

4.0.0-beta.1

4.0.0-beta.1 Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 09 Nov 22:23

Pre-release from main: not for production.

No changes for integrators.

Install

  • iOS: Swift Package Manager, https://github.com/Radarpayments/mobile-sdk, exact version 4.0.0-beta.1, product PayrdrSDK
    (import sdk_payment_scanner); or embed sdk_payment_scanner.xcframework from the zip below.
  • Android: implementation("io.github.radarpayments:sdk-payment:4.0.0-beta.1") from Maven Central; the AARs below are the
    same libraries to download (their dependencies are listed in the POMs on Maven Central).
  • Flutter 1.0.0-beta.1: unpack payrdr_sdk-1.0.0-beta.1.tar.gz and depend on it by path.
  • React Native 1.0.0-beta.1: npm install ./payrdr-react-native-sdk-1.0.0-beta.1.tgz.

The plugins' Android part takes the SDK from Maven Central.