RavindraChherke / Stripe-module-for-Appcelerator-Titanium-iOS-and-Android

Titanium (iOS, Android) module for Stripe payment

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Stripe module for Appcelerator Titanium iOS and Android

Version 3

Check releases

iOS Module Documentation for version 3

Stripe Documentation

Version 1

Check releases

#Example

//require the module
var stripe = require('com.ravindra.stripe');

//set card information using setCard method

var value = stripe.setCard({
	publishableKey : "pk_test_6pRNASCoBOKtIshFeQd4XMUh",
	cardNumber:"4242424242424242",
	month : 12,
	expiryYear : 2019,
	cvc : "123"
});


//request for token from stripe 
stripe.requestForToken({
	success : success,
	failure : failure
});

//On successful receive of token
function success(e) {
	alert("Toke received from Stripe: " + e.token);
}

//On failure 
function failure(e) {
	alert("Error: " + e.error);
}

About

Titanium (iOS, Android) module for Stripe payment


Languages

Language:Objective-C 87.3%Language:Java 11.2%Language:JavaScript 0.6%Language:Shell 0.5%Language:C 0.2%Language:Ruby 0.1%