WebPay Java (1.6 and later) bindings https://webpay.jp
<dependency>
<groupId>jp.webpay</groupId>
<artifactId>webpay-java</artifactId>
<version>1.0.1</version>
</dependency>
dependencies {
compile 'jp.webpay:webpay-java:1.0.1'
}
WebPayClient client = new WebPayClient("test_secret_YOUR_TEST_API_KEY");
CardRequest card = new CardRequest()
.number("4242-4242-4242-4242")
.expMonth(11)
.expYear(2014)
.cvc(123)
.name("YOUR NAME");
ChargeRequest request = new ChargeRequest()
.amount(400)
.currency("jpy")
.card(card)
.description("アイテムの購入 with Java");
client.charges.create(request)
See WebPay Java API Document for more details.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request