-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix Typos #9
Open
lucasleon2107
wants to merge
112
commits into
develop
Choose a base branch
from
master
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Fix Typos #9
Changes from 20 commits
Commits
Show all changes
112 commits
Select commit
Hold shift + click to select a range
a09666b
fix url query params
marti1125 f2f74f3
fix List
marti1125 3e4e92d
update src/test/java/CulqiAllTest.java
marti1125 44c0a73
update README.md
marti1125 6854efe
improve list of data ResponseHelper.java
marti1125 0b6856e
update documentation
marti1125 2bd4486
#2 se puede instalar desde pom.xml de forma facil
marti1125 c301ed0
update version 1.1.9
marti1125 11bbfba
update README.md
marti1125 ad8c6c3
actualizacion del README.md
marti1125 591d77d
Create README_EN.md
jeancedron c6e4efb
Merge pull request #7 from jeancedron/master
f9df3f0
Translate for the README.md file
iCueto 88dfbde
Merge pull request #8 from iCueto/master
marti1125 6eb5395
Update README_EN.md
jeancedron 372712e
Merge pull request #10 from jeancedron/patch-1
239a8bf
Update README.md
jeancedron 31fddf2
Typo Fix
3fbf98c
update version of dependency jackson-databind
LizRuelasB f925b83
Merge pull request #12 from lucasleon2107/master
joelibaceta 9562812
Merge pull request #11 from jeancedron/patch-2
joelibaceta aa750bb
fix: .travis.yml
Vinetos a8bc857
Merge pull request #13 from LizRuelas/patch-1
joelibaceta e96ab39
Merge pull request #15 from Vinetos/patch-1
joelibaceta 444b489
add methods to java library
fd28959
fix confirm method
e0088d1
fix confirm method
66748d4
readme
JoseHCalderon 92a833b
readme
JoseHCalderon 55fe7d8
Merge pull request #29 from culqi/ft/add-new-methods
JoseHCalderon 0e779d8
readme
JoseHCalderon 1205ba7
Merge pull request #30 from culqi/ft/add-new-methods
JoseHCalderon 936fab3
se agrego encriptacion
JordanCulqi 967f58b
se agrego encriptado
JordanCulqi 0fb85b5
commit encrypt_change
6cd1a35
encrypt
8777eea
encrypt
c12f6d0
encrypt
96349e9
ajustes
3b66ce4
ajustes
41447ed
lib_java
eee479c
v3.0.0.0
54a7114
changes
JoseHCalderon e47c042
change
JoseHCalderon a9674b4
Merge pull request #36 from culqi/feature/statuscode
JoseHCalderon 79bc683
readme
JoseHCalderon c9e95ba
readme
JoseHCalderon ebc342b
gcm
fba38ee
Merge pull request #37 from culqi/feature/aes_gcm
JoseHCalderon 25594ab
readme
JoseHCalderon 7734580
readme
JoseHCalderon 45e36e3
Update README.md
JordanCulqi eb2f465
Update README.md
JordanCulqi 2c7b8c9
Update README.md
JordanCulqi 7ccde02
Update README.md
JordanCulqi 7bc4841
Update README.md
JordanCulqi 3d821ec
readme
JoseHCalderon 40569f4
readme
JoseHCalderon 55bf213
readme
JoseHCalderon dcba1e6
Merge pull request #38 from culqi/feature/aes_gcm
JoseHCalderon ccf37a2
v2.0.1
8bab38e
Merge branch 'feature/aes_gcm' of [email protected]:culqi/culqi-java.git…
d111cde
Merge pull request #39 from culqi/feature/aes_gcm
JoseHCalderon 83aa56b
readme
JoseHCalderon e2ba245
readme
JoseHCalderon 42bc473
readme
JoseHCalderon 2eba26b
readme
JoseHCalderon 99e9e2a
readme
JoseHCalderon a1e3029
v2.0.2
1b79032
feature: validate params
9af9c28
feat: params validation
ac1e46a
fix: java headers
07d7a0d
fix: support java8
08ff8c9
fix: cast currency to string
cad4d74
fix: plan validation
2c6a90a
fix: refund
545dab6
fix: date validation
fd91215
fix: date validation
0fbe042
fix: date validation
6cc1e2c
fix: date validation
0380de6
add headers to list
7371b87
fix: customException
626bd98
Merge pull request #40 from culqi/feature/params-validation
JoseHCalderon edf21be
fix validate services request plan and subscriptions
brandoCarquin 789af18
fix validate services request plan and subscriptions
brandoCarquin beb0834
fix validate services request plan and subscriptions
brandoCarquin be5cd82
fix validate services request plan and subscriptions
brandoCarquin 9cbf560
fix error in terminal
brandoCarquin bf26b50
fix error in terminal
brandoCarquin 9ad6acd
fix error in terminal
brandoCarquin dc10b8e
fix error in terminal
brandoCarquin 5ae95cc
fix error in terminal
brandoCarquin 0e32243
fix error in terminal
brandoCarquin 9d59c88
valid date from
brandoCarquin 63998cb
valid date from
brandoCarquin 1edf424
change delete log
brandoCarquin 6ba0127
new valdiation plans
brandoCarquin c8fd030
feat: Add custom headers to POST endpoints Culqi API
renato-coronado 06f8b90
feature: RSA tests are added for patch services, and recurrent servic…
renato-coronado ff85af8
Minor changes
renato-coronado 7560fed
Merge pull request #42 from culqi/feature/headers-config
JoseHCalderon 8a01a0a
fix: Delete generateCurlCommand
renato-coronado 99f0d5d
Merge branch 'master' into feature/SMANUNE-2440
renato-coronado 53c066e
Merge pull request #43 from culqi/feature/SMANUNE-2440
JoseHCalderon 9288d7d
format domain services get
brandoCarquin 6f1cf8e
Merge pull request #45 from culqi/feature/api-base-service-get
JoseHCalderon 89563c2
header cotent type
brandoCarquin d3d15ab
Solution test
brandoCarquin ded8e57
Solution test
brandoCarquin 4a6f71a
Merge pull request #46 from culqi/featrue/solution-bugs
JoseHCalderon 695439c
v2.0.4
JoseHCalderon 24e43bf
Merge pull request #47 from culqi/featrue/solution-bugs
JoseHCalderon File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
.idea | ||
target | ||
*.iml | ||
dependency-reduced-pom.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,15 +7,39 @@ Biblioteca de CULQI para el lenguaje Java, pagos simples en tu sitio web. Consum | |
|
||
| Versión actual|Culqi API| | ||
|----|----| | ||
| 1.1.7 (2017-03-16) |[v2](https://culqi.com/api/)| | ||
| 1.1.9 (2017-05-31) |[v2](https://culqi.com/api/)| | ||
|
||
## Requisitos | ||
|
||
- Java 1.7+ | ||
- Credenciales de comercio en Culqi (1). | ||
|
||
## Ejemplos | ||
## Instalación | ||
|
||
Instalación usando Maven: | ||
|
||
Solo necesita agregar el siguiente repositorio en el archivo pom.xml | ||
|
||
```xml | ||
<repositories> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
``` | ||
|
||
Luego agregar la dependencia: | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.github.culqi</groupId> | ||
<artifactId>culqi-java</artifactId> | ||
<version>v1.1.9</version> | ||
</dependency> | ||
``` | ||
|
||
## Ejemplos | ||
|
||
#### Inicialización | ||
|
||
|
@@ -42,6 +66,13 @@ Map<String, Object> token_created = culqi.token.create(token); | |
|
||
```java | ||
Map<String, Object> charge = new HashMap<String, Object>(); | ||
Map<String, Object> antifraudDetails = new HashMap<String, Object>(); | ||
antifraudDetails.put("address", "Calle Narciso de Colina 421 Miraflores"); | ||
antifraudDetails.put("address_city", "LIMA"); | ||
antifraudDetails.put("country_code", "PE"); | ||
antifraudDetails.put("first_name", "Willy"); | ||
antifraudDetails.put("last_name", "Aguirre"); | ||
antifraudDetails.put("phone_number", "012767623"); | ||
Map<String, Object> metadata = new HashMap<String, Object>(); | ||
metadata.put("oder_id", "124"); | ||
charge.put("amount",1000); | ||
|
@@ -50,6 +81,7 @@ charge.put("currency_code",CurrencyCode.PEN); | |
charge.put("description","Venta de prueba"); | ||
charge.put("email","[email protected]"); | ||
charge.put("installments", 0); | ||
charge.put("antifraud_details", antifraudDetails); | ||
charge.put("metadata", metadata); | ||
charge.put("source_id", token_created.get("id").toString()); | ||
Map<String, Object> charge_created = culqi.charge.create(charge); | ||
|
@@ -129,6 +161,12 @@ Todos los cambios en las versiones de esta biblioteca están listados en [CHANGE | |
- [okhttp3](http://square.github.io/okhttp/) | ||
- [Jackson Core Databind](https://github.com/FasterXML/jackson-databind/wiki) | ||
|
||
## Build | ||
|
||
```bash | ||
mvn package -DskipTests | ||
``` | ||
|
||
## Testing | ||
|
||
Debes tener instalado Maven para poder ejecutar los tests | ||
|
@@ -149,6 +187,23 @@ mvn test -D test=CulqiCreateTest#test6ValidCreateSubscription | |
mvn test -D test=CulqiCreateTest#test7ChargeCapture | ||
``` | ||
|
||
## ¿Cómo instalar el jar de Culqi en un proyecto Maven? | ||
|
||
```bash | ||
mvn install:install-file -Dfile={dir}/culqi-java-1.1.8.jar -DgroupId=com.culqi -DartifactId=culqi-java -Dversion={version} -Dpackaging=jar | ||
``` | ||
|
||
|
||
Luego agregas la siguiente dependencia en el pom.xml | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.culqi</groupId> | ||
<artifactId>culqi-java</artifactId> | ||
<version>{version}</version> | ||
</dependency> | ||
``` | ||
|
||
## Autor | ||
|
||
Willy Aguirre ([@marti1125](https://github.com/marti1125) - Team Culqi) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
# Culqi Java | ||
|
||
[![Code Climate](https://codeclimate.com/github/culqi/culqi-java/badges/gpa.svg)](https://codeclimate.com/github/culqi/culqi-java) | ||
[![Build Status](https://travis-ci.org/culqi/culqi-java.svg?branch=master)](https://travis-ci.org/culqi/culqi-java) | ||
|
||
Library of CULQI for the Java language, simple payments in your website. Use the Culqi API. | ||
|
||
| Current version |Culqi API| | ||
|----|----| | ||
| 1.1.9 (2017-05-31) |[v2](https://culqi.com/api/)| | ||
|
||
## Requirements | ||
|
||
- Java 1.7+ | ||
- Trade credentials in Culqi (1). | ||
|
||
## Installation | ||
|
||
Installation using Maven: | ||
Just need to add the following repository in the pom.xml | ||
|
||
```xml | ||
<repositories> | ||
<repository> | ||
<id>jitpack.io</id> | ||
<url>https://jitpack.io</url> | ||
</repository> | ||
</repositories> | ||
``` | ||
|
||
Then add the dependency | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.github.culqi</groupId> | ||
<artifactId>culqi-java</artifactId> | ||
<version>v1.1.9</version> | ||
</dependency> | ||
``` | ||
|
||
## Examples | ||
|
||
#### Initialization | ||
|
||
```java | ||
Culqi culqi = new Culqi(); | ||
culqi.public_key = "{PUBLIC_KEY}"; | ||
culqi.secret_key = "{SECRET_KEY}" | ||
``` | ||
|
||
#### Create Token | ||
|
||
```java | ||
Map<String, Object> token = new HashMap<String, Object>(); | ||
token.put("card_number", "4111111111111111"); | ||
token.put("cvv", "123"); | ||
token.put("email", "[email protected]"); | ||
token.put("expiration_month", 9); | ||
token.put("expiration_year", 2020); | ||
Map<String, Object> token_created = culqi.token.create(token); | ||
|
||
``` | ||
|
||
#### Create Charge | ||
|
||
```java | ||
Map<String, Object> charge = new HashMap<String, Object>(); | ||
Map<String, Object> antifraudDetails = new HashMap<String, Object>(); | ||
antifraudDetails.put("address", "Calle Narciso de Colina 421 Miraflores"); | ||
antifraudDetails.put("address_city", "LIMA"); | ||
antifraudDetails.put("country_code", "PE"); | ||
antifraudDetails.put("first_name", "Willy"); | ||
antifraudDetails.put("last_name", "Aguirre"); | ||
antifraudDetails.put("phone_number", "012767623"); | ||
Map<String, Object> metadata = new HashMap<String, Object>(); | ||
metadata.put("oder_id", "124"); | ||
charge.put("amount",1000); | ||
charge.put("capture", true); | ||
charge.put("currency_code",CurrencyCode.PEN); | ||
charge.put("description","Sale Test"); | ||
charge.put("email","[email protected]"); | ||
charge.put("installments", 0); | ||
charge.put("antifraud_details", antifraudDetails); | ||
charge.put("metadata", metadata); | ||
charge.put("source_id", token_created.get("id").toString()); | ||
Map<String, Object> charge_created = culqi.charge.create(charge); | ||
|
||
``` | ||
|
||
#### Create Plan | ||
|
||
```java | ||
Map<String, Object> plan = new HashMap<String, Object>(); | ||
Map<String, Object> metadata = new HashMap<String, Object>(); | ||
metadata.put("oder_id", "124"); | ||
plan.put("amount",1000); | ||
plan.put("currency_code",CurrencyCode.PEN); | ||
plan.put("interval","dias"); | ||
plan.put("interval_count",30); | ||
plan.put("limit", 4); | ||
plan.put("metadata", metadata); | ||
plan.put("name", "plan-test"); | ||
plan.put("trial_days", 15); | ||
Map<String, Object> plan_created = culqi.plan.create(plan); | ||
``` | ||
|
||
#### Create Client | ||
|
||
```java | ||
Map<String, Object> customer = new HashMap<String, Object>(); | ||
customer.put("address","Av Lima 123"); | ||
customer.put("address_city","Lima"); | ||
customer.put("country_code","PE"); | ||
customer.put("email","[email protected]"); | ||
customer.put("first_name","Test"); | ||
customer.put("last_name","Cuqli"); | ||
customer.put("phone_number",99004356); | ||
Map<String, Object> customer_created = culqi.customer.create(customer); | ||
``` | ||
|
||
#### Create Card | ||
|
||
```java | ||
Map<String, Object> card = new HashMap<String, Object>(); | ||
card.put("customer_id",customer_created.get("id").toString()); | ||
card.put("token_id",token_created.get("id").toString()); | ||
Map<String, Object> card_created = culqi.card.create(card); | ||
``` | ||
|
||
|
||
#### Create Subscription | ||
|
||
```java | ||
Map<String, Object> subscription = new HashMap<String, Object>(); | ||
subscription.put("card_id",card_created.get("id").toString()); | ||
subscription.put("plan_id",plan_created.get("id").toString()); | ||
Map<String, Object> suscription_created = culqi.subscription.create(subscription); | ||
``` | ||
|
||
#### Create Refund | ||
|
||
```java | ||
Map<String, Object> refund = new HashMap<String, Object>(); | ||
refund.put("amount",900); | ||
refund.put("charge_id",charge_created.get("id").toString()); | ||
refund.put("reason",Reason.solicitud_comprador); | ||
Map<String, Object> refund_created = culqi.refund.create(refund); | ||
``` | ||
|
||
## Documentation | ||
Do you need more info about integration `culqi-java` The complete documentation is in [https://culqi.com/docs/](https://culqi.com/docs/) | ||
|
||
|
||
## Changelog | ||
|
||
All changes in the version of this library are listed in [CHANGELOG](CHANGELOG). | ||
|
||
## Dependence for the development | ||
|
||
- [okhttp3](http://square.github.io/okhttp/) | ||
- [Jackson Core Databind](https://github.com/FasterXML/jackson-databind/wiki) | ||
|
||
## Build | ||
|
||
```bash | ||
mvn package -DskipTests | ||
``` | ||
|
||
## Testing | ||
|
||
You must have installed Maven to run the tests | ||
|
||
```bash | ||
mvn test | ||
``` | ||
|
||
You can run these unit tests independently | ||
|
||
```bash | ||
mvn test -D test=CulqiCreateTest#test1ValidCreateToken | ||
mvn test -D test=CulqiCreateTest#test2ValidCreateCharge | ||
mvn test -D test=CulqiCreateTest#test3ValidCreatePlan | ||
mvn test -D test=CulqiCreateTest#test4ValidCreateCustomer | ||
mvn test -D test=CulqiCreateTest#test5ValidCreateCard | ||
mvn test -D test=CulqiCreateTest#test6ValidCreateSubscription | ||
mvn test -D test=CulqiCreateTest#test7ChargeCapture | ||
``` | ||
|
||
## How install the Culqi's jar in a Maven project? | ||
|
||
```bash | ||
mvn install:install-file -Dfile={dir}/culqi-java-1.1.8.jar -DgroupId=com.culqi -DartifactId=culqi-java -Dversion={version} -Dpackaging=jar | ||
``` | ||
|
||
The add the following dependency in the pom.xml | ||
|
||
```xml | ||
<dependency> | ||
<groupId>com.culqi</groupId> | ||
<artifactId>culqi-java</artifactId> | ||
<version>{version}</version> | ||
</dependency> | ||
``` | ||
|
||
## Author | ||
|
||
Willy Aguirre ([@marti1125](https://github.com/marti1125) - Team Culqi) | ||
|
||
## License | ||
|
||
The source code of culqi-java is distribuited under MIT License, check the file [LICENSE](https://github.com/culqi/culqi-java/blob/master/LICENSE). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -35,4 +35,7 @@ public class Culqi { | |
|
||
public Culqi() {} | ||
|
||
public static void main(String[] args) { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
package com.culqi.apioperation; | ||
|
||
import java.util.List; | ||
import java.util.Map; | ||
|
||
/** | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why shade?