Skip to content

Express Docs v0.1.0


Express Docs / PayPalStyle

Interface: PayPalStyle

Defined in: src/types.ts:95

Visual style options for native PayPal buttons (PayPal:PayPalExpress, PayPal:PayLater, Braintree:PayPalExpress, Braintree:PayLater).

Remarks

These options are forwarded directly to the style parameter of paypal.Buttons(). See the PayPal JS SDK Buttons style reference.

Constraints (enforced by the PayPal SDK at runtime):

  • borderRadius only has an effect when shape is 'rect'.
  • The 'donate' and 'subscribe' labels require special PayPal merchant configuration.
  • The 'installment' label is intended for Pay Later / installment buttons.

Properties

borderRadius?

optional borderRadius?: number

Defined in: src/types.ts:111

Border radius in pixels. Only applies when shape is 'rect'. Valid range: 0–28.


color?

optional color?: "gold" | "blue" | "silver" | "white" | "black"

Defined in: src/types.ts:97

Background color of the PayPal button.


height?

optional height?: number

Defined in: src/types.ts:106

Height of the button in pixels. Valid range: 25–55.


label?

optional label?: "paypal" | "checkout" | "buynow" | "pay" | "installment" | "subscribe" | "donate"

Defined in: src/types.ts:122

Text label displayed on the button.

  • 'paypal' (default) — "PayPal"
  • 'checkout' — "Check out with PayPal"
  • 'buynow' — "Buy Now"
  • 'pay' — "Pay with PayPal"
  • 'installment' — installment/Pay Later text (intended for Pay Later buttons)
  • 'subscribe' — "Subscribe" (requires subscription product configuration)
  • 'donate' — "Donate" (requires nonprofit merchant configuration)

shape?

optional shape?: "rect" | "pill" | "sharp"

Defined in: src/types.ts:104

Border shape of the PayPal button.

  • 'rect' — rounded rectangle (supports borderRadius).
  • 'pill' — pill shape.
  • 'sharp' — sharp corners.

CollanaPay SDK Documentation