Repository navigation
Releases
Releases · Radarpayments/mobile-sdk
4.0.0-beta.4
Pre-release from main: not for production.
Added
PaymentTextStyle.fontFamilytakes a font the app ships (PaymentFontFamily);nullkeeps the system font.- iOS:
SdkCoreConfig(cardParams:timestamp:)withoutregisteredFrom:.
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). Replaceimport sdk_payment_scanner
withimport RadarpaymentsSDKPayment; an app that passesMlKitVisionCardScannerProvideralso adds the
RadarpaymentsSDKScannerproduct and imports it. An app takes eitherRadarpaymentsSDKPaymentor
RadarpaymentsSDKCore, never both. The release assets areRadarpaymentsSDKPayment-<version>.xcframework.zip,
RadarpaymentsSDKCore-<version>.xcframework.zipandRadarpaymentsSDKScanner-<version>.zip(Swift sources); in
4.0.0-beta.3the 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 fromRadarpaymentsSDKScanner, andlogTransportmay
be left out. - iOS: SDK Core types lose the
Sdk_coreprefix in Swift:Sdk_coreTokenResultisTokenResult,
Sdk_corePaymentCardParamsisPaymentCardParams. - The Flutter plugin's release archive is
payrdr-flutter-sdk-<version>.tar.gz(waspayrdr_sdk-<version>.tar.gz);
the folder inside is stillpayrdr_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.Customworks on both platforms: colours are
PaymentColor(ARGB), text stylesPaymentTextStyle(size, weight, line height, letter spacing, tabular figures)
and cornersPaymentCorners(RadiusorPill). On Android,PaymentColors(...)andPaymentTypography(...)
overloads take ComposeColorandTextStyle, andColor.toPaymentColor(),PaymentColor.toColor()and
TextStyle.toPaymentTextStyle()convert single values; iOS apps build the theme fromPaymentColorvalues. CardParams.mdOrderandBindingParams.mdOrderhave no default any more. The empty default always failed with
ParamField.MD_ORDERrequired; pass the order, or useCardInstantParams/BindingInstantParamswithout one.sdk-paymentexposesandroidx.activityto the app's compile classpath, sincePayrdrCheckouttakes 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:
generatereturnsParamField.EXPIRYwithinvalid, 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
ofSdkCoreConfig.timestampin the device's time zone: pass the current time in milliseconds.
Install
- iOS: Swift Package Manager,
https://github.com/Radarpayments/mobile-sdk, exact version4.0.0-beta.4, products
RadarpaymentsSDKPayment(the checkout) and, for the card scanner,RadarpaymentsSDKScanner; an app with its own
payment form takesRadarpaymentsSDKCoreinstead of the two. Or embed the XCFrameworks from the zips below
and add the sources ofRadarpaymentsSDKScanner-4.0.0-beta.4.zipto 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: unpackpayrdr-flutter-sdk-1.0.0-beta.4.tar.gz(apayrdr_sdkfolder) and depend on it bypath. - 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
Pre-release from main: not for production.
Added
PaymentTextStyle.fontFamilytakes a font the app ships (PaymentFontFamily);nullkeeps 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). Replaceimport sdk_payment_scanner
withimport RadarpaymentsSDKPayment; an app that passesMlKitVisionCardScannerProvideralso adds the
RadarpaymentsSDKScannerproduct and imports it. An app takes eitherRadarpaymentsSDKPaymentor
RadarpaymentsSDKCore, never both. The release assets areRadarpaymentsSDKPayment.xcframework.zip,
RadarpaymentsSDKCore.xcframework.zipandRadarpaymentsSDKScanner-<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 fromRadarpaymentsSDKScanner, andlogTransportmay
be left out. - iOS: SDK Core types lose the
Sdk_coreprefix in Swift:Sdk_coreTokenResultisTokenResult,
Sdk_corePaymentCardParamsisPaymentCardParams. - The Flutter plugin's release archive is
payrdr-flutter-sdk-<version>.tar.gz(waspayrdr_sdk-<version>.tar.gz);
the folder inside is stillpayrdr_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.Customworks on both platforms: colours are
PaymentColor(ARGB), text stylesPaymentTextStyle(size, weight, line height, letter spacing, tabular figures)
and cornersPaymentCorners(RadiusorPill). On Android,PaymentColors(...)andPaymentTypography(...)
overloads take ComposeColorandTextStyle, andColor.toPaymentColor(),PaymentColor.toColor()and
TextStyle.toPaymentTextStyle()convert single values; iOS apps build the theme fromPaymentColorvalues.
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 version4.0.0-beta.3, products
RadarpaymentsSDKPayment(the checkout) and, for the card scanner,RadarpaymentsSDKScanner; an app with its own
payment form takesRadarpaymentsSDKCoreinstead of the two. Or embed the XCFrameworks from the zips below
and add the sources ofRadarpaymentsSDKScanner-4.0.0-beta.3.zipto 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: unpackpayrdr-flutter-sdk-1.0.0-beta.3.tar.gz(apayrdr_sdkfolder) and depend on it bypath. - 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
Pre-release from main: not for production.
Added
PaymentTextStyle.fontFamilytakes a font the app ships (PaymentFontFamily);nullkeeps 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 strippedsdk_payment_scannerbinary 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.Customworks on both platforms: colours are
PaymentColor(ARGB), text stylesPaymentTextStyle(size, weight, line height, letter spacing, tabular figures)
and cornersPaymentCorners(RadiusorPill). On Android,PaymentColors(...)andPaymentTypography(...)
overloads take ComposeColorandTextStyle, andColor.toPaymentColor(),PaymentColor.toColor()and
TextStyle.toPaymentTextStyle()convert single values; iOS apps build the theme fromPaymentColorvalues.
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 version4.0.0-beta.2, productPayrdrSDK
(import sdk_payment_scanner); or embedsdk_payment_scanner.xcframeworkfrom 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: unpackpayrdr-flutter-sdk-1.0.0-beta.2.tar.gz(apayrdr_sdkfolder) and depend on it bypath. - 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
Pre-release from main: not for production.
No changes for integrators.
Install
- iOS: Swift Package Manager,
https://github.com/Radarpayments/mobile-sdk, exact version4.0.0-beta.1, productPayrdrSDK
(import sdk_payment_scanner); or embedsdk_payment_scanner.xcframeworkfrom 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: unpackpayrdr_sdk-1.0.0-beta.1.tar.gzand depend on it bypath. - 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.