Skip to content

Commit

Permalink
Update PayPalButtonsComponentOptions to add message (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
danzhaaspaypal authored Jun 7, 2024
1 parent c0badf3 commit 5adf3b6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/smart-foxes-trade.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@paypal/paypal-js": patch
---

updates PayPalButtonComponentOptions to add message
10 changes: 10 additions & 0 deletions packages/paypal-js/types/components/buttons.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 5adf3b6

Please sign in to comment.