Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,11 @@

- getBankLogoUrl Bug Fix

## 1.3.4

- iOS: Updated to use static methods for getPaymentMethods and getSubscriptionAmount
- iOS: Fixed publishUri throwing method handling

## 1.3.3

- Removed JCenter from build.gradle for android due to Deprecation
Expand Down
6 changes: 3 additions & 3 deletions ios/Classes/RazorpayDelegate.swift
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class RazorpayDelegate: NSObject {

public func getPaymentMethods(result: @escaping FlutterResult) {
self.pendingResult = result
self.razorpay?.getPaymentMethods(withOptions: nil, withSuccessCallback: { successResponse in
RazorpayCheckout.getPaymentMethods(withOptions: nil, withSuccessCallback: { successResponse in
self.pendingResult(successResponse as NSDictionary)
}, andFailureCallback: { errorResponse in
self.pendingResult(errorResponse)
Expand Down Expand Up @@ -99,7 +99,7 @@ class RazorpayDelegate: NSObject {

public func getSubscriptionAmount(subscriptionId: String, result: @escaping FlutterResult) {
self.pendingResult = result
self.razorpay?.getSubscriptionAmount(havingSubscriptionId: subscriptionId, withSuccessCallback: { [weak self] successResponse in
RazorpayCheckout.getSubscriptionAmount(havingSubscriptionId: subscriptionId, withSuccessCallback: { [weak self] successResponse in
self?.pendingResult(successResponse)
}, andFailureCallback: { [weak self] errorResponse in
self?.pendingResult(errorResponse)
Expand Down Expand Up @@ -211,7 +211,7 @@ extension RazorpayDelegate {
if let dict = notification.userInfo {
if let uriScheme = dict["response"] as? String {
DispatchQueue.main.async {
self.razorpay?.publishUri(with: uriScheme)
try? self.razorpay?.publishUri(with: uriScheme)
}
}
}
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.2'
s.version = '1.3.4'
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.3.3
version: 1.3.4
# author: Razorpay
homepage: https://github.com/razorpay/razorpay-flutter-customui

Expand Down