Skip to content

Commit

Permalink
Merge pull request #42 from razorpay/b/getBankLogoUrl_exposed
Browse files Browse the repository at this point in the history
exposed getBankLogoUrl function, updated version number
  • Loading branch information
ramprasadAnand authored Jul 11, 2022
2 parents 4f843be + 5702258 commit 46ac222
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,7 @@

- Added native dependency via cocoapods
- Minor bug fixes

## 1.3.1

- Exposed getBankLogoUrl
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ This plugin is available on Pub: [https://pub.dev/packages/razorpay_flutter_cust
Add this to `dependencies` in your app's `pubspec.yaml`

```yaml
Frazorpay_flutter_customui: ^1.3.0
razorpay_flutter_customui: ^1.3.1
```
**Note for Android**: Make sure that the minimum API level for your app is 19 or higher.
Expand Down
6 changes: 3 additions & 3 deletions example/lib/payment_slection_page.dart
Original file line number Diff line number Diff line change
Expand Up @@ -541,7 +541,6 @@ class _PaymentSelectionPageState extends State<PaymentSelectionPage> {
"card[number]": cardInfoModel?.cardNumber,
"contact": cardInfoModel?.mobileNumber,
"currency": "INR",
"display_logo": "0",
'email': cardInfoModel?.email,
'description': 'Fine T-Shirt',
"method": "card"
Expand All @@ -567,8 +566,9 @@ class _PaymentSelectionPageState extends State<PaymentSelectionPage> {
'provider': 'cred',
// 'callback_url': 'flutterCustomUI://'
};
_razorpay.submit(options);

// _razorpay.submit(options);
// String logo = await _razorpay.getBankLogoUrl("UTIB");
// print(logo);
/* final isvalidVpa = await _razorpay.isValidVpa('9663976539@upi');
print(isvalidVpa); */

Expand Down
2 changes: 1 addition & 1 deletion ios/razorpay_flutter_customui.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#
Pod::Spec.new do |s|
s.name = 'razorpay_flutter_customui'
s.version = '1.3.0'
s.version = '1.3.1'
s.summary = 'Flutter plugin for Razorpay Custom SDK.'
s.description = 'Flutter plugin for Razorpay Custom SDK.'
s.homepage = 'http://example.com'
Expand Down
7 changes: 7 additions & 0 deletions lib/razorpay_flutter_customui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,12 @@ class Razorpay {
return walletLogoUrl;
}

Future<String> getBankLogoUrl(String bankName) async {
final bankLogoUrl =
await _channel.invokeMethod('getBankLogoUrl', bankName);
return bankLogoUrl;
}

Future<dynamic> getSubscriptionAmount(String subscriptionId) async {
final dynamic subscriptionAmount =
await _channel.invokeMethod('getSubscriptionAmount', subscriptionId);
Expand All @@ -82,6 +88,7 @@ class Razorpay {
return isValidVpa;
}


initilizeSDK(String key) {
_channel.invokeMethod('initilizeSDK', key);
}
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: razorpay_flutter_customui
description: Flutter plugin for Razorpay SDK. To know more about Razorpay, visit http://razorpay.com.
version: 1.3.0
version: 1.3.1
# author: Razorpay
homepage: https://github.com/razorpay/razorpay-flutter-customui

Expand Down

0 comments on commit 46ac222

Please sign in to comment.