khalti / khalti-sdk-web Goto Github PK
View Code? Open in Web Editor NEWKhalti checkout SDK for browser.
Home Page: http://docs.khalti.com/
License: MIT License
Khalti checkout SDK for browser.
Home Page: http://docs.khalti.com/
License: MIT License
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?
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.
onSuccess() is there
onError() is there
how would I know if the checkout widget is closed ?
Lines 115 to 121 in e2fc993
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??
Extra data passed when initiating a payment is not returned when confirming the payment
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});
}
current version is vulnerable
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
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.
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.
The page is scrollable at checkout.
When click on submit button , khalti modal opens.
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
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?
Seems like the triggers and callbacks are duplicate
Semantic UI hasn't been maintained since 2018, but the active community fork https://fomantic-ui.com already got 500 bugfixes and new features like calendar, slider, toast, etc.
it is backward compatible, the current code should work as it is.
https://fomantic-ui.com
https://github.com/fomantic/fomantic-ui
https://github.com/fomantic/fomantic-ui-less
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.