{"repo":"craftgate/craftgate-java-client","free":true,"listed":false,"github":"https://github.com/craftgate/craftgate-java-client","clone":"git clone https://github.com/craftgate/craftgate-java-client.git","description":"Java client for Craftgate API","language":"Java","stars":43,"topics":["java","client-library","java-client","craftgate-api","payment-gateway","craftgate","payment","payment-orchestration"],"license":"Apache-2.0","category":"auth-billing-email","readme_excerpt":"Craftgate Java Client This repo contains the Java client for Craftgate API. Requirements - Java 1.8 or newer Installation Apache Maven: Gradle Groovy DSL Gradle Kotlin DSL Usage To access the Craftgate API you'll first need to obtain API credentials (e.g. an API key and a secret key). If you don't already have a Craftgate account, you can signup at https://craftgate.io Once you've obtained your API credentials, you can start using Craftgate by instantiating a Craftgate with your credentials. By default the Craftgate client connects to the production API servers at https://api.craftgate.io . For testing purposes, please use the sandbox URL https://sandbox-api.craftgate.io using the . Examples Included in the project are a number of examples that cover almost all use-cases. Refer to the sample/ folder] for more info. Running the Examples If you've cloned this repo on your development machine and wish to run the examples you can run an example with the command ./gradlew test or run single test with the command ./gradlew test --tests PaymentSample.create payment sample Credit Card Payment Use Case Let's quickly review an example where we implement a credit card payment scenario. For more examples covering almost all use-cases, check out the examples in the sample/ folder Idempotency Mutating operations accept an optional idempotency key. Set it on the request object and the client sends it as the x-idempotency-key header, so a request can be safely retried (e.g. after a timeout) ","default_branch":null,"files":null,"tree":[],"storefront":"/r/craftgate","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/craftgate/craftgate-java-client/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}