java.lang.Object
com.broadleafcommerce.paypal.micro.gateway.domain.orders.ExperienceContext
All Implemented Interfaces:
Serializable

public class ExperienceContext extends Object implements Serializable
Author:
Dima Myroniuk (dmyroniuk)
See Also:
  • Constructor Details

    • ExperienceContext

      public ExperienceContext()
  • Method Details

    • setBrandName

      public void setBrandName(String brandName)
      The label that overrides the business name in the PayPal account on the PayPal site. The pattern is defined by an external party and supports Unicode.
    • setCancelUrl

      public void setCancelUrl(String cancelUrl)
      The URL where the customer is redirected after the customer cancels the payment.
    • setLandingPage

      public void setLandingPage(String landingPage)
      The type of landing page to show on the PayPal site for customer checkout. The possible values are:
      • LOGIN. When the customer clicks PayPal Checkout, the customer is redirected to a page to log in to PayPal and approve the payment.
      • GUEST_CHECKOUT. When the customer clicks PayPal Checkout, the customer is redirected to a page to enter credit or debit card and other relevant billing information required to complete the purchase. This option has previously been also called as 'BILLING'
      • NO_PREFERENCE. When the customer clicks PayPal Checkout, the customer is redirected to either a page to log in to PayPal and approve the payment or to a page to enter credit or debit card and other relevant billing information required to complete the purchase, depending on their previous interaction with PayPal.
    • setLocale

      public void setLocale(String locale)
      The BCP 47-formatted locale of pages that the PayPal payment experience shows. PayPal supports a five-character code. For example, da-DK, he-IL, id-ID, ja-JP, no-NO, pt-BR, ru-RU, sv-SE, th-TH, zh-CN, zh-HK, or zh-TW.
    • setPaymentMethodPreference

      public void setPaymentMethodPreference(String paymentMethodPreference)
      The merchant-preferred payment methods. The possible values are:
      • UNRESTRICTED. Accepts any type of payment from the customer.
      • IMMEDIATE_PAYMENT_REQUIRED. Accepts only immediate payment from the customer. For example, credit card, PayPal balance, or instant ACH. Ensures that at the time of capture, the payment does not have the `pending` status.
    • setReturnUrl

      public void setReturnUrl(String returnUrl)
      The URL where the customer is redirected after the customer approves the payment.
    • setShippingPreference

      public void setShippingPreference(String shippingPreference)
      The location from which the shipping address is derived. The possible values are:
      • GET_FROM_FILE. Get the customer-provided shipping address on the PayPal site.
      • NO_SHIPPING. Redacts the shipping address from the PayPal site. Recommended for digital goods.
      • SET_PROVIDED_ADDRESS. Get the merchant-provided address. The customer cannot change this address on the PayPal site. If merchant does not pass an address, customer can choose the address on PayPal pages.
    • setUserAction

      public void setUserAction(String userAction)
      Configures a Continue or Pay Now checkout flow. The possible values are:
      • CONTINUE. After you redirect the customer to the PayPal payment page, a Continue button appears. Use this option when the final amount is not known when the checkout flow is initiated and you want to redirect the customer to the merchant page without processing the payment.
      • PAY_NOW. After you redirect the customer to the PayPal payment page, a Pay Now button appears. Use this option when the final amount is known when the checkout is initiated and you want to process the payment immediately when the customer clicks Pay Now.
    • getBrandName

      public String getBrandName()
      The label that overrides the business name in the PayPal account on the PayPal site. The pattern is defined by an external party and supports Unicode.
    • getCancelUrl

      public String getCancelUrl()
      The URL where the customer is redirected after the customer cancels the payment.
    • getLandingPage

      public String getLandingPage()
      The type of landing page to show on the PayPal site for customer checkout. The possible values are:
      • LOGIN. When the customer clicks PayPal Checkout, the customer is redirected to a page to log in to PayPal and approve the payment.
      • GUEST_CHECKOUT. When the customer clicks PayPal Checkout, the customer is redirected to a page to enter credit or debit card and other relevant billing information required to complete the purchase. This option has previously been also called as 'BILLING'
      • NO_PREFERENCE. When the customer clicks PayPal Checkout, the customer is redirected to either a page to log in to PayPal and approve the payment or to a page to enter credit or debit card and other relevant billing information required to complete the purchase, depending on their previous interaction with PayPal.
    • getLocale

      public String getLocale()
      The BCP 47-formatted locale of pages that the PayPal payment experience shows. PayPal supports a five-character code. For example, da-DK, he-IL, id-ID, ja-JP, no-NO, pt-BR, ru-RU, sv-SE, th-TH, zh-CN, zh-HK, or zh-TW.
    • getPaymentMethodPreference

      public String getPaymentMethodPreference()
      The merchant-preferred payment methods. The possible values are:
      • UNRESTRICTED. Accepts any type of payment from the customer.
      • IMMEDIATE_PAYMENT_REQUIRED. Accepts only immediate payment from the customer. For example, credit card, PayPal balance, or instant ACH. Ensures that at the time of capture, the payment does not have the `pending` status.
    • getReturnUrl

      public String getReturnUrl()
      The URL where the customer is redirected after the customer approves the payment.
    • getShippingPreference

      public String getShippingPreference()
      The location from which the shipping address is derived. The possible values are:
      • GET_FROM_FILE. Get the customer-provided shipping address on the PayPal site.
      • NO_SHIPPING. Redacts the shipping address from the PayPal site. Recommended for digital goods.
      • SET_PROVIDED_ADDRESS. Get the merchant-provided address. The customer cannot change this address on the PayPal site. If merchant does not pass an address, customer can choose the address on PayPal pages.
    • getUserAction

      public String getUserAction()
      Configures a Continue or Pay Now checkout flow. The possible values are:
      • CONTINUE. After you redirect the customer to the PayPal payment page, a Continue button appears. Use this option when the final amount is not known when the checkout flow is initiated and you want to redirect the customer to the merchant page without processing the payment.
      • PAY_NOW. After you redirect the customer to the PayPal payment page, a Pay Now button appears. Use this option when the final amount is known when the checkout is initiated and you want to process the payment immediately when the customer clicks Pay Now.