public enum EwayRapidEnvironment extends java.lang.Enum<EwayRapidEnvironment>
PaymentGatewayService.testMode;
production for live IEU charges.| Enum Constant and Description |
|---|
PRODUCTION
https://api.ewaypayments.com |
SANDBOX
https://api.sandbox.ewaypayments.com |
| Modifier and Type | Method and Description |
|---|---|
static EwayRapidEnvironment |
fromArea()
AREA=PROD → production host; DEV, UAT, and unset → sandbox. |
static EwayRapidEnvironment |
fromTestMode(boolean testMode)
PaymentGatewayService testMode. |
java.lang.String |
getAccessCodeResultUrl(java.lang.String accessCode)
Query AccessCode result (
GET /AccessCode/{AccessCode}). |
java.lang.String |
getAccessCodesSharedUrl()
Responsive Shared Page / Iframe create-AccessCode endpoint.
|
java.lang.String |
getAccessCodesUrl()
Transparent Redirect create-AccessCode endpoint.
|
java.lang.String |
getBaseUrl()
Rapid API origin (no trailing slash).
|
java.lang.String |
getCodeLookupUrl()
Translate Rapid error codes to English (
POST /APICodeLookup). |
java.lang.String |
getCustomerUrl(java.lang.String tokenCustomerId)
Query a stored Rapid customer.
|
java.lang.String |
getRefundUrl(java.lang.String transactionId)
Refund a Rapid transaction.
|
java.lang.String |
getTransactionQueryUrl(java.lang.String transactionId)
Query a Rapid transaction (
GET /Transaction/{id}). |
java.lang.String |
getTransactionUrl()
Direct Connection create/charge endpoint.
|
boolean |
isSandbox() |
static EwayRapidEnvironment |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static EwayRapidEnvironment[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EwayRapidEnvironment SANDBOX
https://api.sandbox.ewaypayments.compublic static final EwayRapidEnvironment PRODUCTION
https://api.ewaypayments.compublic static EwayRapidEnvironment[] values()
for (EwayRapidEnvironment c : EwayRapidEnvironment.values()) System.out.println(c);
public static EwayRapidEnvironment valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is null@CheckReturnValue @Nonnull public java.lang.String getBaseUrl()
@CheckReturnValue @Nonnull public java.lang.String getTransactionUrl()
{base}/Transaction@CheckReturnValue @Nonnull public java.lang.String getCustomerUrl(java.lang.String tokenCustomerId)
tokenCustomerId - Rapid TokenCustomerID (path segment){base}/Customer/{id}@CheckReturnValue @Nonnull public java.lang.String getTransactionQueryUrl(java.lang.String transactionId)
GET /Transaction/{id}).transactionId - Rapid TransactionID or AccessCode (path segment){base}/Transaction/{id}@CheckReturnValue @Nonnull public java.lang.String getRefundUrl(java.lang.String transactionId)
transactionId - Rapid TransactionID (path segment){base}/Transaction/{id}/Refund@CheckReturnValue @Nonnull public java.lang.String getAccessCodesUrl()
{base}/AccessCodes@CheckReturnValue @Nonnull public java.lang.String getAccessCodesSharedUrl()
{base}/AccessCodesShared@CheckReturnValue @Nonnull public java.lang.String getAccessCodeResultUrl(java.lang.String accessCode)
GET /AccessCode/{AccessCode}).accessCode - Rapid AccessCode (URL-encoded){base}/AccessCode/{encoded}@CheckReturnValue @Nonnull public java.lang.String getCodeLookupUrl()
POST /APICodeLookup).{base}/APICodeLookuppublic boolean isSandbox()
@CheckReturnValue @Nonnull public static EwayRapidEnvironment fromTestMode(boolean testMode)
PaymentGatewayService testMode.testMode - true for sandbox@CheckReturnValue @Nonnull public static EwayRapidEnvironment fromArea()
AREA=PROD → production host; DEV, UAT, and unset → sandbox.stSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.