Appearance
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):
borderRadiusonly has an effect whenshapeis'rect'.- The
'donate'and'subscribe'labels require special PayPal merchant configuration. - The
'installment'label is intended for Pay Later / installment buttons.
Properties
borderRadius?
optionalborderRadius?:number
Defined in: src/types.ts:111
Border radius in pixels. Only applies when shape is 'rect'. Valid range: 0–28.
color?
optionalcolor?:"gold"|"blue"|"silver"|"white"|"black"
Defined in: src/types.ts:97
Background color of the PayPal button.
height?
optionalheight?:number
Defined in: src/types.ts:106
Height of the button in pixels. Valid range: 25–55.
label?
optionallabel?:"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?
optionalshape?:"rect"|"pill"|"sharp"
Defined in: src/types.ts:104
Border shape of the PayPal button.
'rect'— rounded rectangle (supportsborderRadius).'pill'— pill shape.'sharp'— sharp corners.
