Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rajivnarayana/nativescript-razorpay
Unofficial razorpay plugin for nativescript
https://github.com/rajivnarayana/nativescript-razorpay
nativescript nativescript-plugin payment razorpay unofficial
Last synced: about 2 months ago
JSON representation
Unofficial razorpay plugin for nativescript
- Host: GitHub
- URL: https://github.com/rajivnarayana/nativescript-razorpay
- Owner: rajivnarayana
- License: apache-2.0
- Created: 2018-04-27T15:10:28.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-01-23T18:20:20.000Z (almost 6 years ago)
- Last Synced: 2024-10-07T10:28:50.316Z (3 months ago)
- Topics: nativescript, nativescript-plugin, payment, razorpay, unofficial
- Language: TypeScript
- Size: 2.88 MB
- Stars: 3
- Watchers: 3
- Forks: 2
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Razorpay (Unofficial)
A nativescript wrapper around iOS and Android Razorpay plugins. Razorpay is a payment gateway for some of the payments around Indian payments ecosystem. This does not provide any UI components. Will only provide functions to open native payment flows and receive callbacks. Hence, cannot be used declaratively.
## Installation
Open terminal and type the following command at the root of your project folder.
```shell
tns plugin add nativescript-razorpay
```## Usage
```javascript
export function onCheckoutButtonTapped(args : any) {
new RazorpayCheckout("rzp_test_some_id").open({
"amount" : "1000", //In paise
"description" : "Some Items from Swiggy",
"image" : "https://placem.at/things?h=200",
"name" : "My Business Checkout",
"prefill": {
"contact": "Valid phone number",
"email": "[email protected]"
},
}).then(function(paymentId){
console.log("Payment Id ", paymentId);
}, function(error){
console.error(error);
})
}
```## API
| Property | Default | Description |
| --- | --- | --- |
| open | none | Accepts options among others, should contain "amount" |
## LicenseApache License Version 2.0, January 2004