Skip to content

Commit f96c7f6

Browse files
authored
Merge pull request #551 from paypal/Add-borderRadius-and-new-shape
add shape: sharp
2 parents dcd618c + d36e386 commit f96c7f6

File tree

2 files changed

+15
-10
lines changed

2 files changed

+15
-10
lines changed

.changeset/curly-monkeys-itch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@paypal/paypal-js": patch
3+
---
4+
5+
add the shape: "sharp" in style

packages/paypal-js/types/components/buttons.d.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export type CreateSubscriptionActions = {
2929
/** Used to revise an existing subscription for client-side integrations. Accepts the same options as the request body of the [/v1/billing/subscription/{id}/revise api](https://developer.paypal.com/docs/api/subscriptions/v1/#subscriptions_revise). */
3030
revise: (
3131
subscriptionID: string,
32-
options: ReviseSubscriptionRequestBody,
32+
options: ReviseSubscriptionRequestBody
3333
) => Promise<string>;
3434
};
3535
};
@@ -211,14 +211,14 @@ export interface PayPalButtonsComponentOptions {
211211
*/
212212
createOrder?: (
213213
data: CreateOrderData,
214-
actions: CreateOrderActions,
214+
actions: CreateOrderActions
215215
) => Promise<string>;
216216
/**
217217
* Called on button click to set up a recurring payment. [createSubscription docs](https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#createsubscription).
218218
*/
219219
createSubscription?: (
220220
data: Record<string, unknown>,
221-
actions: CreateSubscriptionActions,
221+
actions: CreateSubscriptionActions
222222
) => Promise<string>;
223223
/**
224224
* Save payment methods to charge payers after a set amount of time. For example, you can offer a free trial and charge payers after the trial expires. Payers don't need to be present when charged. No checkout required.
@@ -235,22 +235,22 @@ export interface PayPalButtonsComponentOptions {
235235
*/
236236
onApprove?: (
237237
data: OnApproveData,
238-
actions: OnApproveActions,
238+
actions: OnApproveActions
239239
) => Promise<void>;
240240
/**
241241
* Called when the buyer cancels the transaction.
242242
* Often used to show the buyer a [cancellation page](https://developer.paypal.com/docs/business/checkout/add-capabilities/buyer-experience/#3-show-cancellation-page).
243243
*/
244244
onCancel?: (
245245
data: Record<string, unknown>,
246-
actions: OnCancelledActions,
246+
actions: OnCancelledActions
247247
) => void;
248248
/**
249249
* Called when the button is clicked. Often used for [validation](https://developer.paypal.com/docs/checkout/integration-features/validation/).
250250
*/
251251
onClick?: (
252252
data: Record<string, unknown>,
253-
actions: OnClickActions,
253+
actions: OnClickActions
254254
) => Promise<void> | void;
255255
/**
256256
* Catch all for errors preventing buyer checkout.
@@ -267,21 +267,21 @@ export interface PayPalButtonsComponentOptions {
267267
*/
268268
onShippingChange?: (
269269
data: OnShippingChangeData,
270-
actions: OnShippingChangeActions,
270+
actions: OnShippingChangeActions
271271
) => Promise<void>;
272272
/**
273273
* Called when the buyer selects a new shipping option on PayPal.
274274
*/
275275
onShippingOptionsChange?: (
276276
data: OnShippingOptionsChangeData,
277-
actions: OnShippingOptionsChangeActions,
277+
actions: OnShippingOptionsChangeActions
278278
) => Promise<void>;
279279
/**
280280
* Called when the buyer updates their shipping address on PayPal.
281281
*/
282282
onShippingAddressChange?: (
283283
data: OnShippingAddressChangeData,
284-
actions: OnShippingAddressChangeActions,
284+
actions: OnShippingAddressChangeActions
285285
) => Promise<void>;
286286
/**
287287
* [Styling options](https://developer.paypal.com/docs/business/checkout/reference/style-guide/#customize-the-payment-buttons) for customizing the button appearance.
@@ -300,7 +300,7 @@ export interface PayPalButtonsComponentOptions {
300300
| "subscribe"
301301
| "donate";
302302
layout?: "vertical" | "horizontal";
303-
shape?: "rect" | "pill";
303+
shape?: "rect" | "pill" | "sharp";
304304
tagline?: boolean;
305305
};
306306
/**

0 commit comments

Comments
 (0)