This repository has been archived by the owner on Mar 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Ingenico ePayments
committed
Aug 4, 2017
1 parent
6a40cf9
commit 3184880
Showing
18 changed files
with
397 additions
and
22 deletions.
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
50 changes: 50 additions & 0 deletions
50
.../java/com/ingenico/connect/gateway/sdk/java/merchant/payments/CompletePaymentExample.java
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,50 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.merchant.payments; | ||
|
||
import java.io.IOException; | ||
import java.net.URISyntaxException; | ||
import java.net.URL; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.Client; | ||
import com.ingenico.connect.gateway.sdk.java.CommunicatorConfiguration; | ||
import com.ingenico.connect.gateway.sdk.java.Factory; | ||
import com.ingenico.connect.gateway.sdk.java.domain.definitions.CardWithoutCvv; | ||
import com.ingenico.connect.gateway.sdk.java.domain.payment.CompletePaymentRequest; | ||
import com.ingenico.connect.gateway.sdk.java.domain.payment.CompletePaymentResponse; | ||
import com.ingenico.connect.gateway.sdk.java.domain.payment.definitions.CompletePaymentCardPaymentMethodSpecificInput; | ||
|
||
public class CompletePaymentExample { | ||
|
||
@SuppressWarnings("unused") | ||
public void example() throws URISyntaxException, IOException { | ||
Client client = getClient(); | ||
try { | ||
CardWithoutCvv card = new CardWithoutCvv(); | ||
card.setCardNumber("67030000000000003"); | ||
card.setCardholderName("Wile E. Coyote"); | ||
card.setExpiryDate("1220"); | ||
|
||
CompletePaymentCardPaymentMethodSpecificInput cardPaymentMethodSpecificInput = new CompletePaymentCardPaymentMethodSpecificInput(); | ||
cardPaymentMethodSpecificInput.setCard(card); | ||
|
||
CompletePaymentRequest body = new CompletePaymentRequest(); | ||
body.setCardPaymentMethodSpecificInput(cardPaymentMethodSpecificInput); | ||
|
||
CompletePaymentResponse response = client.merchant("merchantId").payments().complete("paymentId", body); | ||
} finally { | ||
client.close(); | ||
} | ||
} | ||
|
||
private Client getClient() throws URISyntaxException { | ||
String apiKeyId = System.getProperty("connect.api.apiKeyId", "someKey"); | ||
String secretApiKey = System.getProperty("connect.api.secretApiKey", "someSecret"); | ||
|
||
URL propertiesUrl = getClass().getResource("/example-configuration.properties"); | ||
CommunicatorConfiguration configuration = Factory.createConfiguration(propertiesUrl.toURI(), apiKeyId, secretApiKey); | ||
return Factory.createClient(configuration); | ||
} | ||
} |
36 changes: 36 additions & 0 deletions
36
...a/com/ingenico/connect/gateway/sdk/java/merchant/payments/GetThirdPartyStatusExample.java
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,36 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.merchant.payments; | ||
|
||
import java.io.IOException; | ||
import java.net.URISyntaxException; | ||
import java.net.URL; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.Client; | ||
import com.ingenico.connect.gateway.sdk.java.CommunicatorConfiguration; | ||
import com.ingenico.connect.gateway.sdk.java.Factory; | ||
import com.ingenico.connect.gateway.sdk.java.domain.payment.ThirdPartyStatusResponse; | ||
|
||
public class GetThirdPartyStatusExample { | ||
|
||
@SuppressWarnings("unused") | ||
public void example() throws URISyntaxException, IOException { | ||
Client client = getClient(); | ||
try { | ||
ThirdPartyStatusResponse response = client.merchant("merchantId").payments().thirdPartyStatus("paymentId"); | ||
} finally { | ||
client.close(); | ||
} | ||
} | ||
|
||
private Client getClient() throws URISyntaxException { | ||
String apiKeyId = System.getProperty("connect.api.apiKeyId", "someKey"); | ||
String secretApiKey = System.getProperty("connect.api.secretApiKey", "someSecret"); | ||
|
||
URL propertiesUrl = getClass().getResource("/example-configuration.properties"); | ||
CommunicatorConfiguration configuration = Factory.createConfiguration(propertiesUrl.toURI(), apiKeyId, secretApiKey); | ||
return Factory.createClient(configuration); | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...enerated/com/ingenico/connect/gateway/sdk/java/domain/payment/CompletePaymentRequest.java
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,20 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.domain.payment; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.domain.payment.definitions.CompletePaymentCardPaymentMethodSpecificInput; | ||
|
||
public class CompletePaymentRequest { | ||
|
||
private CompletePaymentCardPaymentMethodSpecificInput cardPaymentMethodSpecificInput = null; | ||
|
||
public CompletePaymentCardPaymentMethodSpecificInput getCardPaymentMethodSpecificInput() { | ||
return cardPaymentMethodSpecificInput; | ||
} | ||
|
||
public void setCardPaymentMethodSpecificInput(CompletePaymentCardPaymentMethodSpecificInput value) { | ||
this.cardPaymentMethodSpecificInput = value; | ||
} | ||
} |
10 changes: 10 additions & 0 deletions
10
...nerated/com/ingenico/connect/gateway/sdk/java/domain/payment/CompletePaymentResponse.java
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,10 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.domain.payment; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.domain.payment.definitions.CreatePaymentResult; | ||
|
||
public class CompletePaymentResponse extends CreatePaymentResult { | ||
} |
36 changes: 36 additions & 0 deletions
36
...erated/com/ingenico/connect/gateway/sdk/java/domain/payment/ThirdPartyStatusResponse.java
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,36 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.domain.payment; | ||
|
||
public class ThirdPartyStatusResponse { | ||
|
||
private String thirdPartyStatus = null; | ||
|
||
/** | ||
* The status returned by the third party. | ||
* | ||
* Possible values: | ||
* <ul><li>WAITING - The customer has not connected to the third party</li> | ||
* <li>INITIALIZED - Authentication in progress</li> | ||
* <li>AUTHORIZED - Payment in progress</li> | ||
* <li>COMPLETED - The customer has completed the payment at the third party</li></ul> | ||
*/ | ||
public String getThirdPartyStatus() { | ||
return thirdPartyStatus; | ||
} | ||
|
||
/** | ||
* The status returned by the third party. | ||
* | ||
* Possible values: | ||
* <ul><li>WAITING - The customer has not connected to the third party</li> | ||
* <li>INITIALIZED - Authentication in progress</li> | ||
* <li>AUTHORIZED - Payment in progress</li> | ||
* <li>COMPLETED - The customer has completed the payment at the third party</li></ul> | ||
*/ | ||
public void setThirdPartyStatus(String value) { | ||
this.thirdPartyStatus = value; | ||
} | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...ay/sdk/java/domain/payment/definitions/CompletePaymentCardPaymentMethodSpecificInput.java
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,20 @@ | ||
/* | ||
* This class was auto-generated from the API references found at | ||
* https://epayments-api.developer-ingenico.com/s2sapi/v1/ | ||
*/ | ||
package com.ingenico.connect.gateway.sdk.java.domain.payment.definitions; | ||
|
||
import com.ingenico.connect.gateway.sdk.java.domain.definitions.CardWithoutCvv; | ||
|
||
public class CompletePaymentCardPaymentMethodSpecificInput { | ||
|
||
private CardWithoutCvv card = null; | ||
|
||
public CardWithoutCvv getCard() { | ||
return card; | ||
} | ||
|
||
public void setCard(CardWithoutCvv value) { | ||
this.card = value; | ||
} | ||
} |
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
Oops, something went wrong.