Skip to content

Latest commit

 

History

History
36 lines (26 loc) · 1.28 KB

File metadata and controls

36 lines (26 loc) · 1.28 KB

Capture Subscription Request

The charge amount from the subscriber.

Structure

CaptureSubscriptionRequest

Fields

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)

Example

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();