Skip to content

Commit

Permalink
Updates Readme
Browse files Browse the repository at this point in the history
  • Loading branch information
cb-haripriyan committed Nov 30, 2023
1 parent 75d1224 commit 64de64c
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## 1.0.0-beta.1
* Handles Android Billing library 5 changes to handle base plan and offer tokens

## 0.4.0
Chore
* Updates Android Billing library version from 4.x to 5.2.1
Expand Down
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Flutter SDK

> [!NOTE]
> #### Updates for Billing Library 5
> - SDK Version 1.0: This version uses Google Billing Library 5.2.1 APIs to fetch product information from the Google Play Console and make purchases. If you’re integrating Chargebee’s SDK for the first time, then use this version, and if you’re migrating from the older version of SDK to this version, follow the migration steps in this [document](https://www.chargebee.com/docs/2.0/mobile-playstore-billing-library-5.html).
> - SDK Version 0.4.0: This [version](https://github.com/chargebee/chargebee-flutter/tree/master) includes Billing Library 5.2.1 but still uses Billing Library 4.0 APIs to fetch product information from the Google Play Console and make purchases. This will enable you to list or update your Android app on the store without any warnings from Google and give you enough time to migrate to version 2.0.
Chargebee's Flutter SDK enables you to build a seamless and efficient customer experience for your subscription business.

Post-installation, initialization, and authentication with the Chargebee site, this SDK will support the following process.
Expand Down Expand Up @@ -27,7 +32,7 @@ To use Chargebee SDK in your Flutter app, follow these steps:

``` dart
dependencies:
chargebee_flutter: ^0.4.0
chargebee_flutter: ^1.0.0-beta.1
```
2. Install dependency.
Expand Down Expand Up @@ -100,7 +105,7 @@ Pass the `Product` and `CBCustomer` objects to the following function when the
``` dart
try {
final customer = CBCustomer('customerId','firstName','lastName','emailId');
final result = await Chargebee.purchaseStoreProduct(product, customer: customer);
final result = await Chargebee.purchaseProduct(product, customer: customer);
print("subscription id : ${result.subscriptionId}");
print("subscription status : ${result.status}");
} on PlatformException catch (e) {
Expand Down
2 changes: 1 addition & 1 deletion android/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
group 'com.chargebee.flutter.sdk'
version '0.4.0'
version '1.0.0-beta.1'

buildscript {
ext.kotlin_version = '1.6.0'
Expand Down
2 changes: 1 addition & 1 deletion ios/chargebee_flutter.podspec
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Pod::Spec.new do |s|
s.name = 'chargebee_flutter'
s.version = '0.4.0'
s.version = '1.0.0-beta.1'
s.summary = 'This is the official Software Development Kit (SDK) for Chargebee Flutter.'
s.description = <<-DESC
A new Flutter plugin.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/models/product.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class Product {
/// For Android, the offerToken will be returned.
late String? offerToken;

/// title of the product
/// Title of the product
late String title;

/// Currency code for the price
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: chargebee_flutter
description: This is the official Software Development Kit (SDK) for Chargebee Flutter.
version: 0.4.0
version: 1.0.0-beta.1
homepage: 'https://chargebee.com'
repository: 'https://github.com/chargebee/chargebee-flutter'

Expand Down

0 comments on commit 64de64c

Please sign in to comment.