1
0
Files
PayPal-PHP-Server-SDK/doc/models/blik-experience-context.md
Dani Kirby de24c9e488 Automated commit message (#9)
Co-authored-by: PayPalServerSDKs <server-sdks@paypal.com>
2024-10-22 09:41:42 -05:00

4.2 KiB

Blik Experience Context

Customizes the payer experience during the approval process for the BLIK payment.

Structure

BlikExperienceContext

Fields

Name Type Tags Description Getter Setter
brandName ?string Optional 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.
Constraints: Minimum Length: 1, Maximum Length: 127, Pattern: ^.*$
getBrandName(): ?string setBrandName(?string brandName): void
locale ?string Optional The 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}))?$
getLocale(): ?string setLocale(?string locale): void
shippingPreference ?string(ShippingPreference) Optional The location from which the shipping address is derived.
Default: ShippingPreference::GET_FROM_FILE
Constraints: Minimum Length: 1, Maximum Length: 24, Pattern: ^[A-Z_]+$
getShippingPreference(): ?string setShippingPreference(?string shippingPreference): void
returnUrl ?string Optional Describes the URL. getReturnUrl(): ?string setReturnUrl(?string returnUrl): void
cancelUrl ?string Optional Describes the URL. getCancelUrl(): ?string setCancelUrl(?string cancelUrl): void
consumerIp ?string Optional An Internet Protocol address (IP address). This address assigns a numerical label to each device that is connected to a computer network through the Internet Protocol. Supports IPv4 and IPv6 addresses.
Constraints: Minimum Length: 7, Maximum Length: 39, Pattern: ^(([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])$|^(([a-zA-Z]|[a-zA-Z][a-zA-Z0-9\-]*[a-zA-Z0-9])\.)*([A-Za-z]|[A-Za-z][A-Za-z0-9\-]*[A-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sumerIp(): ?string setConsumerIp(?string consumerIp): void
consumerUserAgent ?string Optional The payer's User Agent. For example, Mozilla/5.0 (Macintosh; Intel Mac OS X x.y; rv:42.0).
Constraints: Minimum Length: 1, Maximum Length: 256, Pattern: ^.*$
getConsumerUserAgent(): ?string setConsumerUserAgent(?string consumerUserAgent): void

Example (as JSON)

{
  "shipping_preference": "GET_FROM_FILE",
  "brand_name": "brand_name0",
  "locale": "locale4",
  "return_url": "return_url2",
  "cancel_url": "cancel_url4"
}