public final class EwayRapidDirectPayment
extends java.lang.Object
EWAY_RAPID.
Staff batch and Process now share this path with V4 stored-token charge.
Does not send PAN/CVN; charges an existing Rapid TokenCustomerID.| Modifier and Type | Class and Description |
|---|---|
static class |
EwayRapidDirectPayment.InvoiceFields
Invoice eWay columns shared by batch and Process now.
|
| Modifier and Type | Method and Description |
|---|---|
static EwayRapidAccessCodeResult |
chargeStoredToken(EwayRapidClient client,
java.lang.String tokenCustomerId,
int amountCents,
java.lang.String invoiceNumber,
java.lang.String invoiceDescription)
Charge a stored Rapid token (no PAN, no CVN).
|
static EwayRapidDirectPayment.InvoiceFields |
chargeToInvoice(EwayRapidClient client,
java.lang.String tokenCustomerId,
double amountDollars,
java.lang.String invoiceNumber,
java.lang.String invoiceDescription)
Charge for staff/batch: never throws; always returns invoice True/False fields.
|
static EwayRapidDirectPayment.InvoiceFields |
invoiceFields(EwayRapidAccessCodeResult result)
Map Rapid JSON result to SOAP-shaped invoice strings (
True/False). |
static boolean |
isMembershipRapidAccount(java.lang.String accountType) |
static EwayRapidClient |
membershipClientOrNull()
Membership Rapid HTTP client, or
null when API key/password are missing. |
static EwayRapidAccessCodeResult |
refund(EwayRapidClient client,
java.lang.String transactionId,
int amountCents)
Refund a Rapid TransactionID (no card expiry).
|
static EwayRapidDirectPayment.InvoiceFields |
refundToInvoice(EwayRapidClient client,
java.lang.String transactionId,
double amountDollars)
Refund for staff/batch: never throws; always returns invoice True/False fields.
|
@CheckReturnValue
public static boolean isMembershipRapidAccount(@Nullable
java.lang.String accountType)
accountType - BankAccountType list value@CheckReturnValue @Nullable public static EwayRapidClient membershipClientOrNull()
null when API key/password are missing.null@CheckReturnValue @Nonnull public static EwayRapidAccessCodeResult chargeStoredToken(@Nullable EwayRapidClient client, @Nullable java.lang.String tokenCustomerId, int amountCents, @Nullable java.lang.String invoiceNumber, @Nullable java.lang.String invoiceDescription) throws java.io.IOException
client - Rapid HTTP clienttokenCustomerId - BankAccount.ewayRawTokenCustomerIDamountCents - amount in centsinvoiceNumber - invoice referenceinvoiceDescription - optional descriptionjava.io.IOException - Rapid HTTP failedjava.lang.IllegalArgumentException - client, token, or amount invalid@CheckReturnValue @Nonnull public static EwayRapidAccessCodeResult refund(@Nullable EwayRapidClient client, @Nullable java.lang.String transactionId, int amountCents) throws java.io.IOException
client - Rapid HTTP clienttransactionId - original Rapid TransactionIDamountCents - amount in centsjava.io.IOException - Rapid HTTP failedjava.lang.IllegalArgumentException - client, transaction id, or amount invalid@CheckReturnValue @Nonnull public static EwayRapidDirectPayment.InvoiceFields chargeToInvoice(@Nullable EwayRapidClient client, @Nullable java.lang.String tokenCustomerId, double amountDollars, @Nullable java.lang.String invoiceNumber, @Nullable java.lang.String invoiceDescription)
client - Rapid HTTP client, or null when unconfiguredtokenCustomerId - stored Rapid tokenamountDollars - payment amountinvoiceNumber - invoice idinvoiceDescription - optional description@CheckReturnValue @Nonnull public static EwayRapidDirectPayment.InvoiceFields refundToInvoice(@Nullable EwayRapidClient client, @Nullable java.lang.String transactionId, double amountDollars)
client - Rapid HTTP client, or null when unconfiguredtransactionId - original Rapid TransactionIDamountDollars - refund amount@CheckReturnValue @Nonnull public static EwayRapidDirectPayment.InvoiceFields invoiceFields(@Nullable EwayRapidAccessCodeResult result)
True/False).result - mapped Rapid responsestSoftware Copyright © 2001-2014 stSoftware All Rights Reserved.