Merchant Preferences
August 21, 2026 ยท View on GitHub
The merchant preferences for a subscription.
Structure
MerchantPreferences
Fields
| Name | Type | Tags | Description | Getter | Setter |
|---|---|---|---|---|---|
ReturnUrl | String | Optional | The URL where the customer is redirected after the customer approves the payment. Constraints: Minimum Length: 10, Maximum Length: 4000 | String getReturnUrl() | setReturnUrl(String returnUrl) |
CancelUrl | String | Optional | The URL where the customer is redirected after the customer cancels the payment. Constraints: Minimum Length: 10, Maximum Length: 4000 | String getCancelUrl() | setCancelUrl(String cancelUrl) |
Example
import com.paypal.sdk.models.MerchantPreferences;
MerchantPreferences merchantPreferences = new MerchantPreferences.Builder()
.returnUrl("return_url8")
.cancelUrl("cancel_url0")
.build();