|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectpaypalnvp.request.DoCapture
public final class DoCapture
Capture an authorized payment.
| Constructor Summary | |
|---|---|
DoCapture(java.lang.String authorizationId,
java.lang.String amount,
boolean completeType)
Returns DoCapture instance if arguments are valid, otherwise an exception is thrown. |
|
| 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 |
setCurrency(Currency currency)
Sets currency code. |
void |
setInvoicNumber(java.lang.String invoiceNumber)
Your invoice number or other identification number that is displayed to the merchant and customer in his transaction history. |
void |
setNote(java.lang.String note)
An informational note about this settlement that is displayed to the payer in email and in his transaction history. |
void |
setNVPResponse(java.util.Map<java.lang.String,java.lang.String> nvpResponse)
Setter for nvp (name value pair) response |
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 DoCapture(java.lang.String authorizationId,
java.lang.String amount,
boolean completeType)
throws java.lang.IllegalArgumentException
authorizationId - The authorization identification number of the
payment you want to capture. This is the
transaction id returned from
DoExpressCheckoutPayment or DoDirectPayment.
Character length and limits: 19 single-byte
characters maximum.amount - Amount to capture.
Limitations: Value is a positive number which
cannot exceed $10,000 USD in any currency. No
currency symbol. Must have two decimal places,
decimal separator must be a period (.).completeType - Complete indicates that this the last capture
you intend to make. The value NotComplete
indicates that you intend to make additional
captures.
NOTE: If Complete, any remaining amount of the
original authorized transaction is
automatically voided and all remaining open
authorizations are voided.
java.lang.IllegalArgumentException| Method Detail |
|---|
public void setCurrency(Currency currency)
currency - Default is USD.
public void setInvoicNumber(java.lang.String invoiceNumber)
throws java.lang.IllegalArgumentException
invoiceNumber - Character length and limits: 127 single-byte
alphanumeric characters.
java.lang.IllegalArgumentException
public void setNote(java.lang.String note)
throws java.lang.IllegalArgumentException
note - Character length and limits: 255 single-byte characters.
java.lang.IllegalArgumentException
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 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 | |||||||||