Sepa Debit Experience Context

August 21, 2026 ยท View on GitHub

Customizes the payer experience during the approval process for the SEPA Debit payment.

Structure

SepaDebitExperienceContext

Fields

NameTypeTagsDescriptionGetterSetter
LocaleStringOptionalThe language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the ISO 639-2 language code, the optional ISO-15924 script tag, and the ISO-3166 alpha-2 country code or M49 region code.

Constraints: Minimum Length: 2, Maximum Length: 10, Pattern: ^[a-z]{2}(?:-[A-Z][a-z]{3})?(?:-(?:[A-Z]{2}|[0-9]{3}))?$
String getLocale()setLocale(String locale)
ReturnUrlStringRequiredDescribes the URL.String getReturnUrl()setReturnUrl(String returnUrl)
CancelUrlStringRequiredDescribes the URL.String getCancelUrl()setCancelUrl(String cancelUrl)

Example

import com.paypal.sdk.models.SepaDebitExperienceContext;

SepaDebitExperienceContext sepaDebitExperienceContext = new SepaDebitExperienceContext.Builder(
    "return_url4",
    "cancel_url6"
)
.locale("locale6")
.build();