razorpay / razorpay-ios-sample-app

:iphone: Sample app demonstrating integration of Razorpay iOS Framework
MIT License
14 stars 13 forks source link

Custom payment help #28

Closed rahuldange09 closed 4 years ago

rahuldange09 commented 4 years ago

Description

Hello, i was implementing custom payment for ios and I came across thing that in docs it's not mentioned at all that when user closes, cancels payment what to do, How to inform razorpay that this is user cancelled transaction.

So I checked sdk methods and I came across two methods "userCancelledPayment" and "close". I'm confused which one to call and what is difference between them. Again I don't find any commnets on that methods also. Please help me out.

Razorpay SDK Version :

Using "Razorpay Custom UI 1.3.4" for Swift 5.1+

Xcode Version :

11.3.1

Sumit738 commented 4 years ago

Please refer the below link - https://razorpay.com/docs/payment-gateway/ios-integration/custom/#step-7---handle-success-and-error-events

rahuldange09 commented 4 years ago

Hello, Thanks for the reply, I checked it. So you mean I should just call "userCancelledPayment()" only? right?

Nautiyalsachin commented 4 years ago

Hi @rahuldange09, yes you have to call "userCancelledPayment()" only, and this will tell Razorpay that you have cancelled the payment, we will proceed afterwards. Closing this issue now, feel free to re-open it.