You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/paypal-js/types/components/buttons.d.ts
+10-10Lines changed: 10 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -29,7 +29,7 @@ export type CreateSubscriptionActions = {
29
29
/** 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). */
* Called on button click to set up a recurring payment. [createSubscription docs](https://developer.paypal.com/docs/business/javascript-sdk/javascript-sdk-reference/#createsubscription).
218
218
*/
219
219
createSubscription?: (
220
220
data: Record<string,unknown>,
221
-
actions: CreateSubscriptionActions,
221
+
actions: CreateSubscriptionActions
222
222
)=>Promise<string>;
223
223
/**
224
224
* 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.
* Often used to show the buyer a [cancellation page](https://developer.paypal.com/docs/business/checkout/add-capabilities/buyer-experience/#3-show-cancellation-page).
243
243
*/
244
244
onCancel?: (
245
245
data: Record<string,unknown>,
246
-
actions: OnCancelledActions,
246
+
actions: OnCancelledActions
247
247
)=>void;
248
248
/**
249
249
* Called when the button is clicked. Often used for [validation](https://developer.paypal.com/docs/checkout/integration-features/validation/).
* Called when the buyer selects a new shipping option on PayPal.
274
274
*/
275
275
onShippingOptionsChange?: (
276
276
data: OnShippingOptionsChangeData,
277
-
actions: OnShippingOptionsChangeActions,
277
+
actions: OnShippingOptionsChangeActions
278
278
)=>Promise<void>;
279
279
/**
280
280
* Called when the buyer updates their shipping address on PayPal.
281
281
*/
282
282
onShippingAddressChange?: (
283
283
data: OnShippingAddressChangeData,
284
-
actions: OnShippingAddressChangeActions,
284
+
actions: OnShippingAddressChangeActions
285
285
)=>Promise<void>;
286
286
/**
287
287
* [Styling options](https://developer.paypal.com/docs/business/checkout/reference/style-guide/#customize-the-payment-buttons) for customizing the button appearance.
0 commit comments