@paynl/payparts-types 1.27.0 → 1.29.0-alpha.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -179,6 +179,7 @@ export interface PaymentInfo {
179
179
  authorizedAmount: AmountDto;
180
180
  status: string;
181
181
  }
182
+ export type ExpressButtonsLayout = 'vertical' | 'horizontal';
182
183
  export interface CheckoutConfig {
183
184
  sessionToken?: string;
184
185
  sessionId?: string;
@@ -225,6 +226,12 @@ export interface CheckoutConfig {
225
226
  * 'new_tab' - open the payment URL in a new tab
226
227
  */
227
228
  methodLinkMode?: 'new_tab' | 'same_page';
229
+ /**
230
+ * Layout for the express checkout buttons.
231
+ * 'vertical' (default) - buttons stacked on top of each other
232
+ * 'horizontal' - buttons side by side in a single row
233
+ */
234
+ expressButtonsLayout?: ExpressButtonsLayout;
228
235
  debugMode?: boolean;
229
236
  /**
230
237
  * Payment method tags to exclude from display (e.g., ['PM_10', 'PM_11']).
@@ -648,6 +655,12 @@ export interface InitOptions {
648
655
  * 'new_tab' - open the payment URL in a new tab
649
656
  */
650
657
  methodLinkMode?: 'new_tab' | 'same_page';
658
+ /**
659
+ * Layout for the express checkout buttons.
660
+ * 'vertical' (default) - buttons stacked on top of each other
661
+ * 'horizontal' - buttons side by side in a single row
662
+ */
663
+ expressButtonsLayout?: ExpressButtonsLayout;
651
664
  /**
652
665
  * Debug mode - shows disabled/hidden payment methods with min/max amounts.
653
666
  */
@@ -1,5 +1,5 @@
1
1
  import { PayPartsSDK } from '../../src/core/types';
2
- export type { CheckoutConfig, CheckoutOption, PaymentMethod, PaymentMethodOption, CountrySequence, CheckoutSequence, PaymentInfo, SessionPaymentInfo, OrderPaymentInfo, CheckoutState, CheckoutEventType, CheckoutEvent, InitialisingEventData, ReadyEventData, StateChangeEventData, PaymentSubmitEventData, PaymentErrorEventData, PaymentSuccessEventData, PartialPaymentEventData, ThreeDsData, TransactionData, MountOptions, MountEventHandlers, MountResult, Checkout, PaymentComponent, CheckoutEventHandlers, PaymentMethodContext, PaymentSubmitEvent, PaymentSuccessEvent, PaymentErrorEvent, FieldError, CheckoutReadyEvent, InitOptions, ShippingUpdatedEvent, InfoUpdatedEvent, PartialPaymentEvent, ApplePayOptions, ApplePayShippingMethod, ApplePayLineItem, ApplePayShippingContact, PayPalOptions, CustomerInfo, AddressInfo, OrderInfo, OrderProduct, AmountDto, MerchantInfo, LocationInfo, PayPartsSDK, } from '../../src/core/types';
2
+ export type { CheckoutConfig, CheckoutOption, PaymentMethod, PaymentMethodOption, CountrySequence, CheckoutSequence, PaymentInfo, SessionPaymentInfo, OrderPaymentInfo, CheckoutState, CheckoutEventType, CheckoutEvent, InitialisingEventData, ReadyEventData, StateChangeEventData, PaymentSubmitEventData, PaymentErrorEventData, PaymentSuccessEventData, PartialPaymentEventData, ThreeDsData, TransactionData, MountOptions, MountEventHandlers, MountResult, Checkout, PaymentComponent, CheckoutEventHandlers, PaymentMethodContext, PaymentSubmitEvent, PaymentSuccessEvent, PaymentErrorEvent, FieldError, CheckoutReadyEvent, InitOptions, ShippingUpdatedEvent, InfoUpdatedEvent, PartialPaymentEvent, ApplePayOptions, ApplePayShippingMethod, ApplePayLineItem, ApplePayShippingContact, PayPalOptions, ExpressButtonsLayout, CustomerInfo, AddressInfo, OrderInfo, OrderProduct, AmountDto, MerchantInfo, LocationInfo, PayPartsSDK, } from '../../src/core/types';
3
3
  export type { PaymentOutcome, PaymentStatusInfo } from '../../src/core/payment-status';
4
4
  export type { ApiErrorResponse, ApiFieldError } from '../../src/core/errors/api-error-response';
5
5
  export type { PaymentError } from '../../src/core/errors/PaymentError';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@paynl/payparts-types",
3
- "version": "1.27.0",
3
+ "version": "1.29.0-alpha.6",
4
4
  "description": "TypeScript type definitions for the PayParts payment SDK",
5
5
  "type": "module",
6
6
  "types": "./dist/index.d.ts",