Giter Site home page Giter Site logo

khalti / khalti-sdk-ios Goto Github PK

View Code? Open in Web Editor NEW
15.0 5.0 7.0 1005 KB

Khalti SDK for iOS apps. Khalti Merchant can use this library to integrate the payment system in their system.

Home Page: http://docs.khalti.com/checkout/ios/

License: MIT License

Swift 90.67% Ruby 2.12% Objective-C 7.20%
sdk ios payment-gateway-in-nepal khalti khalti-sdk

khalti-sdk-ios's People

Contributors

abnormalbbk avatar bikash-giri avatar rjndra avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

khalti-sdk-ios's Issues

Requesting onDismiss/onCancel Delegate

I am requesting a delegate to be called whenever the user presses the cancel button to dismiss the viewController.

Right now we only have 2 delegates: onCheckOutSuccess and onCheckOutError

Pay amount not being displayed in decimal

As stated in the title, even when the amount is sent (eg. 83150) the SDK only displays 831 and not as 831.50 which was the intended payment amount.

The issue here is in displaying the correct value to the user. If the user see's "831" instead of "831.50" and then he/she is charged "831.50", this might create a skepticism among the users.

This is the screen from the example as it is currently.

Simulator Screen Shot - iPhone 11 - 2020-06-10 at 19 37 04

After changing the line 57 in KhaltiPaymentViewController.swift from

self.payInitiateButton.setTitle("PAY RS \(amount/100)", for: .normal)

to

self.payInitiateButton.setTitle("PAY RS \(Float(Float(amount)/Float(100)))", for: .normal)

then i got the desired result.

Simulator Screen Shot - iPhone 11 - 2020-06-10 at 19 44 03

Seems like this issue is just when displaying the amount value on the screen. Even it displays "831" instead of "831.50", the payment amount is 831.50, which is the correct amount value.

Swift 4

Please update your sdk for swift 4 I get
Use of unresolved identifier 'NSForegroundColorAttributeName'
I don't want to have to integrate the sdk manually instead of cocoapods.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.