Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ArcBees/gwt-stripe
https://github.com/ArcBees/gwt-stripe
Last synced: 20 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ArcBees/gwt-stripe
- Owner: ArcBees
- Created: 2013-09-18T20:03:33.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-17T14:27:28.000Z (almost 10 years ago)
- Last Synced: 2024-04-16T10:30:20.167Z (8 months ago)
- Language: Java
- Size: 465 KB
- Stars: 3
- Watchers: 13
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- gwt-boot-awesome-lili - gwt-stripe - Payment library for Stripe JS based on [stripe js sdk](https://stripe.com/docs/js) (Payment)
- gwt-boot-awesome-lili - gwt-stripe - Payment library for Stripe JS based on [stripe js sdk](https://stripe.com/docs/js) (Payment)
README
# GWT Stripe
A simple [Stripe.js](https://stripe.com/docs/stripe.js) wrapper for GWT.##Adding it to your project
1. Add Maven dependency to your POM:```xml
com.arcbees.stripe
gwt
${core.version}
```2. Inherit the required GWT module
```xml
```##Using it with Gin
1. Install the required Gin module:```java
install(new StripeModule());
```
2. Inject and use the `Stripe` interface:```java
@Inject
MyClass(Stripe stripe) {
//...
}
```
##Using it with StripeFactory
Use `StripeFactory.get()` to get a `Stripe` instance:```java
Stripe stripe = StripeFactory.get();
```
You can call `StripeFactory.get()` at any time, since the Stripe instance you'll receive is stateless.##Running the sample
1. Clone the repo
2. `cd` to root folder
3. `mvn clean install`
4. `cd sample`
5. `mvn clean gwt:run`##Running integration tests
0. Make sure chromedriver is on your PATH
1. `cd` to root folder
2. `mvn clean verify -Pintegration-tests`##Thanks to
[![Arcbees.com](http://i.imgur.com/HDf1qfq.png)](http://arcbees.com)[![Atlassian](http://i.imgur.com/BKkj8Rg.png)](https://www.atlassian.com/)
[![IntelliJ](https://lh6.googleusercontent.com/--QIIJfKrjSk/UJJ6X-UohII/AAAAAAAAAVM/cOW7EjnH778/s800/banner_IDEA.png)](http://www.jetbrains.com/idea/index.html)