Skip to content

Commit

Permalink
Merge pull request #21 from razorpay/release-27Dec2021
Browse files Browse the repository at this point in the history
Release - isValidVpa fixes
  • Loading branch information
ramprasadAnand authored Dec 27, 2021
2 parents 8e854f8 + 370c34c commit 088a7c0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@
## 1.1.1

* Bug fixes

## 1.1.2

* Bug fixes on android

## 1.2.0

* Validate VPA fixes
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,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
razorpay_flutter_customui: ^1.1.0
Frazorpay_flutter_customui: ^1.2.0
```
**Note for Android**: Make sure that the minimum API level for your app is 19 or higher.
Expand Down
10 changes: 1 addition & 9 deletions ios/Classes/RazorpayDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -125,15 +125,7 @@ class RazorpayDelegate: NSObject {
public func isValidVpa(value: String, result: @escaping FlutterResult) {
self.pendingResult = result
self.razorpay?.isValidVpa(value, withSuccessCallback: { successResponse in
if let vpaValidationResult = successResponse as? [String: Any] {
if let isValid = vpaValidationResult["success"] as? Bool {
self.pendingResult(isValid)
}
} else {
self.pendingResult(false)
}
// TODO: Un-Comment the below line when android fixes this.
// self.pendingResult(successResponse as NSDictionary)
self.pendingResult(successResponse as NSDictionary)
}, withFailure: { errorResponse in
self.pendingResult(errorResponse)
})
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.0.0'
s.version = '1.2.0'
s.summary = 'Flutter plugin for Razorpay Custom SDK.'
s.description = 'Flutter plugin for Razorpay Custom SDK.'
s.homepage = 'http://example.com'
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.1.1
version: 1.2.0
# author: Razorpay
homepage: https://github.com/razorpay/razorpay-flutter-customui

Expand Down

0 comments on commit 088a7c0

Please sign in to comment.