- Add this to your gradle dependencies:
compile 'com.razorpay:checkout:1.0.1'
- Add the
RazorpayModule.java
native module to your project.RazorpayCheckout.js
exposes the module. - Go through the sample js code to see how to use the module
var user='117087180594749809131' //replace with your userID | |
var album='5629167390655395985' // and albumId | |
var url = 'http://picasaweb.google.com/data/feed/base/user/:user_id/albumid/:album_id?alt=json&kind=photo&hl=en_US&fields=entry(title,gphoto:numphotos,media:group(media:content,media:thumbnail)) '; | |
url = url.replace(/:user_id/, user).replace(/:album_id/, album); | |
function buildLinks(json) { | |
var photo, | |
$thumb, | |
$anchor; |
[ | |
"<a target=\"_blank\" href=\"http:\/\/people.iiti.ac.in\/~studentgym\/projects.html\">Gymkhana projects<\/a>" , | |
"<a target=\"_blank\" href=\"http:\/\/hostel.iiti.ac.in\">Hostel Website updated<\/a>" , | |
"<a target=\"_blank\" href=\"https:\/\/docs.google.com\/file\/d\/0B2RlMfbQS070Q1BjNTFZQnZ1TDA\/edit?hl=en-GB&forcehl=1\">Information for prospective students<\/a>" | |
] |
{enabled : false} |
int count = 0; | |
webview.setWebViewClient(new WebViewClient(){ | |
@Override | |
public boolean shouldOverrideUrlLoading(WebView view, String url) { | |
return false; | |
} | |
/** | |
* This is called usually in case of network errors | |
*/ |
To launch Razorpay ePOS using the intent flow you need to launch an intent with the follwing URI data:
rzp://epos/pay?product_name=tshirt&amount=100&contact=9876543210&description=tshirt&merchant_order_id=txn_123qwe
We have given a helper class called RazorpayInvoice
which helps in creating this URI
/*
* Amount, product name and contact are mandatory fields
String key = "YOUR_KEY"; | |
String secret = "SECRET"; | |
String auth = "Basic " + Base64.getEncoder().encodeToString((key + ":" + secret).getBytes("utf-8")); | |
// Header | |
// key: "Authorization" | |
// value: <auth> |
{ | |
"batch": [ | |
{ | |
"action": "track", | |
"userId": "6nCwZymdNoVBHG", | |
"event": "Checkout init", | |
"timestamp": "2016-11-30T10:19:31Z", | |
"properties": { | |
"nanotime": "196841070803189", | |
"merchant_app_name": "RZP Checkout", |
Miroojin Bakshi built the Hoverdict app as a Free app. This SERVICE is provided by Miroojin BAkshi at no cost and is intended for use as is.
This page is used to inform visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Hoverdict unless otherwise defined in this Privacy Policy.
function setbold(IO, start, end, fontSize) { | |
//Sanity checking: is the active layer a text layer? | |
var activeLayer = app.activeDocument.activeLayer; | |
if (activeLayer.kind == LayerKind.TEXT) { | |
//More checking: does the text layer have content, and are start and end set to reasonable values? | |
if ((activeLayer.textItem.contents != "") && (start >= 0) && (end <= activeLayer.textItem.contents.length)) { | |
//The indentation that the Script Listerner gives you is weird, but it’s useful. | |
var idsetd = app.charIDToTypeID("setd"); | |
var action = new ActionDescriptor(); | |
var idnull = app.charIDToTypeID("null"); |