The charge amount from the subscriber.
CaptureSubscriptionRequest
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
Note |
String |
Required | The reason or note for the subscription charge. Constraints: Minimum Length: 1, Maximum Length: 128, Pattern: ^.*$ |
String getNote() | setNote(String note) |
CaptureType |
CaptureType |
Required | The type of capture. Constraints: Minimum Length: 1, Maximum Length: 24, Pattern: ^[A-Z_]+$ |
CaptureType getCaptureType() | setCaptureType(CaptureType captureType) |
Amount |
Money |
Required | The currency and amount for a financial transaction, such as a balance or payment due. | Money getAmount() | setAmount(Money amount) |
import com.paypal.sdk.models.CaptureSubscriptionRequest;
import com.paypal.sdk.models.CaptureType;
import com.paypal.sdk.models.Money;
CaptureSubscriptionRequest captureSubscriptionRequest = new CaptureSubscriptionRequest.Builder(
"note2",
CaptureType.OUTSTANDING_BALANCE,
new Money.Builder(
"currency_code6",
"value0"
)
.build()
)
.build();