From 5adf3b63eb228c82cad4b21402a1411a5b6ceff4 Mon Sep 17 00:00:00 2001 From: Dan Haas <123580890+danzhaaspaypal@users.noreply.github.com> Date: Fri, 7 Jun 2024 12:45:12 -0400 Subject: [PATCH] Update PayPalButtonsComponentOptions to add message (#497) --- .changeset/smart-foxes-trade.md | 5 +++++ packages/paypal-js/types/components/buttons.d.ts | 10 ++++++++++ 2 files changed, 15 insertions(+) create mode 100644 .changeset/smart-foxes-trade.md diff --git a/.changeset/smart-foxes-trade.md b/.changeset/smart-foxes-trade.md new file mode 100644 index 00000000..a642f687 --- /dev/null +++ b/.changeset/smart-foxes-trade.md @@ -0,0 +1,5 @@ +--- +"@paypal/paypal-js": patch +--- + +updates PayPalButtonComponentOptions to add message diff --git a/packages/paypal-js/types/components/buttons.d.ts b/packages/paypal-js/types/components/buttons.d.ts index 87cfa2dc..73f592e3 100644 --- a/packages/paypal-js/types/components/buttons.d.ts +++ b/packages/paypal-js/types/components/buttons.d.ts @@ -306,6 +306,16 @@ export interface PayPalButtonsComponentOptions { * Used for displaying only vaultable buttons. */ displayOnly?: DisplayOnlyOptions[]; + /** + * [Message options](https://developer.paypal.com/sdk/js/reference/#message) for customizing the message appearance and limited content control. + */ + message?: { + amount?: number; + align?: "center" | "left" | "right"; + color?: "black" | "white"; + position?: "top" | "bottom"; + offer?: "pay_later_short_term" | "pay_later_long_term"; + }; } export interface PayPalButtonsComponent {