Giter Club home page Giter Club logo

khalti-sdk-web's People

Contributors

aaeronn avatar acpmasquerade avatar chapagainmanoj avatar gprabhat avatar ludbek avatar medrishya avatar poudel avatar rajsubit avatar shirshak55 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

khalti-sdk-web's Issues

Checkout multiple products??

I was checking out your web js sdk and it seems that we have no options for multiple checkout system??
and quick question; will there be Magento extension also coming soon?

Default Selection of Payment Method

As of documentation, i did not find any option for default selection of payment method.
Like i want to make default payment method from wallet.

Also, while selection of wallet dialog get moved from center position.
Untitled

Tests?

Hmm. I guess we need to write test so that we can check if any PR will break application feature or not instead of manually cloning and testing. If you want to use specific library like jest or mocha tell me I can help with it.

Unresolved conflict

khalti-sdk-web/src/index.js

Lines 115 to 121 in e2fc993

<<<<<<< HEAD
this._config.source = "web";
this._widget.setAttribute("src", __WIDGET_URL__ || WIDGET_URL);
=======
this._config.source = "web";
this._widget.setAttribute("src", WIDGET_URL);
>>>>>>> 962757fbaf37fda388d26b0ddf832e6e895a70a4

change style of the popup

i want to adjust the size of the checkout popup as the min width is 800px. so when i see it in mobile the div is enlarged and i cannot change the min width to small size. is there any other way to do it??

Getting CORS error for epayment/initiate API while implement new khalti-epayment

added test test_secret_key on the authorization header and pointed API is https://a.khalti.com/api/v2/epayment/initiate

interface

export interface Ikhalti {
 return_url: string;
 website_url: string;
 amount: number;
 purchase_order_id: string;
 purchase_order_name: string;
 customer_info: {
   name: string;
   email: string;
   phone: string;
 },
 amount_breakdown: {
   label: string;
   amount: number;
 }[];
 product_details: {
   identity: string;
   name: string;
   total_price: number;
   quantity: number;
   unit_price: number;
 }[];
} 

used dummy from repayment docs body

   return_url: 'http://localhost:8100/tabs/home',
   website_url: 'http://localhost:8100/tabs/home',
   amount: 1300,
   purchase_order_id: 'test12',
   purchase_order_name: 'test',
   customer_info: {
     name: 'Ashim Upadhaya',
     email: '[email protected]',
     phone: '9811496763'
   },
   amount_breakdown: [
     {
       label: 'Mark Price',
       amount: 1000
     },
     {
       label: 'VAT',
       amount: 300
     }
   ],
   product_details: [
     {
       identity: '1234567890',
       name: 'Khalti logo',
       total_price: 1300,
       quantity: 1,
       unit_price: 1300
     }
   ]
 }; 

method

payment(): Observable<any> {
    const headers = new HttpHeaders();
    headers.set('Authorization', '<test_secret_key>');
    headers.set('content-type', 'application/json');
    headers.set('Access-Control-Allow-Origin', '*');
    return this.httpClient.post('https://a.khalti.com/api/v2/epayment/initiate', {body: this.body },
    {'headers':headers});
  } 

onClose() handler is not emitting?

Hello here is my code on sandbox. After closing the widget, was not it supposed to log to the console?
https://codesandbox.io/s/3ym164ol01

Verification Request

Khalti server is verifying my request via localhost. I am using AJAX to make asynchronous call to my server. But when I try with HTTP only web-hosting service of Azure, the verification request does not move forward. Am I supposed to use HTTPS or there is some problem in my code. I tested, there is no problem with Ajax Call in the production environment.

Web SDK not responsive on smaller devices.

Currently I'm working on a Xamarin based project, but since Khalti's SDK isn't available for Xamarin, we have been forced to use Khalti's Web SDK inside a WebView. But since, the payment page isn't responsive, it has become almost impossible to use Khalti with our app. Meanwhile I'm also working on Khalti plugin for Xamarin.Forms, Xamarin.iOS and Xamarin.Android using C# bindings, and will be publishing it under MIT license once done. But for now, it would be great if you could fix this particular issue.

Page becomes full height after closing the model using the cross symbol.

  1. The page is scrollable at checkout.

  2. When click on submit button , khalti modal opens.

  3. BUT if the modal is closed , or After the initiate and confirm process finish and the modal is closed, the page becomes full height. i.e The page is now unscrollable and stucked at it.

VIdeo File

issue_khalti.mp4

Hmm. No PHP SDK?

Sorry it may seem irrelevant. But many people still use php sdk. I know you provide api and we can use guzzle but we need php sdk for other framework like code igniter or laravel. I can provide fluent api php based one but it guess it will take too much time. Can you give me details if you provide php sdk or not?

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.