|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpaypalnvp.request.DoReferenceTransaction
public final class DoReferenceTransaction
Process a payment from a buyer’s account, which is identified by a previous transaction.
| Constructor Summary | |
|---|---|
DoReferenceTransaction(java.lang.String referenceId,
Payment payment,
CreditCard card,
PayerInformation payer,
Address address)
|
|
| Method Summary | |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
getNVPRequest()
Creates and returns part of the nvp (name value pair) request containing request values |
java.util.Map<java.lang.String,java.lang.String> |
getNVPResponse()
Return response from paypal. |
void |
setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Setter for nvp (name value pair) response |
void |
setPaymentAction(PaymentAction action)
How you want to obtain payment Note: Order is not allowed for Direct Payment. |
void |
setReturnFMF(boolean fmf)
Flag to indicate whether you want the results returned by Fraud Management Filters. |
void |
setShipToAddress(ShipToAddress address)
|
void |
setSoftDescriptor(java.lang.String softDescriptor)
The soft descriptor is a per transaction description of the payment that is passed to the consumer's credit card statement. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DoReferenceTransaction(java.lang.String referenceId,
Payment payment,
CreditCard card,
PayerInformation payer,
Address address)
referenceId - A transaction ID from a previous purchase, such as
a credit card charge using the DoDirectPayment API,
or a billing agreement ID.payment - card - payer - address - | Method Detail |
|---|
public void setPaymentAction(PaymentAction action)
throws java.lang.IllegalArgumentException
action - Authorization indicates that this payment is a basic
authorization subject to settlement with PayPal
Authorization & Capture.
Sale indicates that this is a final sale for which you
are requesting payment.
java.lang.IllegalArgumentExceptionpublic void setReturnFMF(boolean fmf)
fmf - true: receive FMF details
false: do not receive FMF details (default)
public void setSoftDescriptor(java.lang.String softDescriptor)
throws java.lang.IllegalArgumentException
softDescriptor - can contain only the following characters:
Alphanumeric characters, - (dash),
* (asterisk), . (period), {space}.
The maximum length of the total soft descriptor
is 22 characters. Of this, either 4 or 8
characters are used by the PayPal prefix
shown in the data format. Thus, the maximum
length of the soft descriptor passed in the API
request is:22 - len(<PP * | PAYPAL *>) -
len(<Descriptor set in Payment Receiving
Preferences> + 1) For example, assume the
following conditions:
java.lang.IllegalArgumentExceptionpublic void setShipToAddress(ShipToAddress address)
address - Ship To Address Fieldspublic java.util.Map<java.lang.String,java.lang.String> getNVPRequest()
Request
getNVPRequest in interface Requestpublic void setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Request
setNVPResponse in interface Requestpublic java.util.Map<java.lang.String,java.lang.String> getNVPResponse()
Request
getNVPResponse in interface Requestpublic java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||