payu-intrepos / PayUMoney-IOS-SDK

Easy to integrate SDK for iOS to facilitate fast mobile checkout
https://www.payumoney.com/
MIT License
11 stars 21 forks source link

Prevent interactive dismissal of Payment View Controller(PlugNPlay SDK) in iOS 13 and above #50

Closed mahendragp closed 4 years ago

mahendragp commented 4 years ago

I'm collecting payment from customer using Pay-U-Money in following way...

PlugNPlay.presentPaymentViewController(withTxnParams: txnParam, on: parentVC) { (response, error, extraParam) in
    //code goes here
}

PlugNPlay is sub class of NSObject

Cocoa Pod used: pod 'PayUmoney_PnP'

So when I present the payment view controller, user can dismiss view controller by dragging down the view controller.

It is by default enabled for every presented view controller > iOS 13 versions

So how can I disable integrative dismissal of view controller?

Yes, I know that I can set modalPresentationStyle property over view controller but in PayUmoney SDK I did't found any UIViewController's sub class.

RajvinderPayU commented 4 years ago

Please use the latest version. Let us know if you are still facing the issue.

mahendragp commented 4 years ago

I'm using cocoa pods and I've uninstalled and then install new pod 'PayUmoney_PnP' but still user is able to dismiss the payment view controller interactively by dragging dow the view controller.

RajvinderPayU commented 4 years ago

Which version of PayUmoney_PnP are you using?

mahendragp commented 4 years ago

The following PayUmoney_PnP pod version is used in my application.

PayUmoney_PnP (2.5.0)

RajvinderPayU commented 4 years ago

Please use the Latest version 2.5.1.

mahendragp commented 4 years ago

Thank you. Now its working.