GWT Stripe
A simple Stripe.js wrapper for GWT.
##Adding it to your project
-
Add Maven dependency to your POM:
<dependency> <groupId>com.arcbees.stripe</groupId> <artifactId>gwt</artifactId> <version>${core.version}</version> </dependency>
-
Inherit the required GWT module
<inherits name="com.arcbees.stripe.GwtStripe"/>
##Using it with Gin
-
Install the required Gin module:
install(new StripeModule());
-
Inject and use the
Stripe
interface:@Inject MyClass(Stripe stripe) { //... }
##Using it with StripeFactory Use StripeFactory.get()
to get a Stripe
instance:
Stripe stripe = StripeFactory.get();
You can call StripeFactory.get()
at any time, since the Stripe instance you'll receive is stateless.
##Running the sample
- Clone the repo
cd
to root foldermvn clean install
cd sample
mvn clean gwt:run
##Running integration tests 0. Make sure chromedriver is on your PATH
cd
to root foldermvn clean verify -Pintegration-tests