@@ -61,6 +61,13 @@ export enum ApplePayLabel {
6161 topUp = 'topUp' ,
6262}
6363
64+ export enum ApplePayStyle {
65+ automatic = 'automatic' ,
66+ black = 'black' ,
67+ white = 'white' ,
68+ whiteOutline = 'whiteOutline' ,
69+ }
70+
6471type CheckoutIdentifier =
6572 | {
6673 cartId : string ;
@@ -87,6 +94,12 @@ interface CommonAcceleratedCheckoutButtonsProps {
8794 */
8895 applePayLabel ?: ApplePayLabel ;
8996
97+ /**
98+ * Style for the Apple Pay button (automatic, black, white, whiteOutline)
99+ * @default ApplePayStyle.automatic
100+ */
101+ applePayStyle ?: ApplePayStyle ;
102+
90103 /**
91104 * Called when checkout fails
92105 */
@@ -148,6 +161,7 @@ export type AcceleratedCheckoutButtonsProps = (CartProps | VariantProps) &
148161
149162interface NativeAcceleratedCheckoutButtonsProps {
150163 applePayLabel ?: string ;
164+ applePayStyle ?: string ;
151165 style ?: ViewStyle ;
152166 checkoutIdentifier : CheckoutIdentifier ;
153167 cornerRadius ?: number ;
@@ -193,6 +207,7 @@ export const AcceleratedCheckoutButtons: React.FC<
193207 AcceleratedCheckoutButtonsProps
194208> = ( {
195209 applePayLabel,
210+ applePayStyle,
196211 cornerRadius,
197212 wallets,
198213 onFail,
@@ -307,6 +322,7 @@ export const AcceleratedCheckoutButtons: React.FC<
307322 return (
308323 < RCTAcceleratedCheckoutButtons
309324 applePayLabel = { applePayLabel }
325+ applePayStyle = { applePayStyle }
310326 style = { { ...defaultStyles , height : dynamicHeight } }
311327 checkoutIdentifier = { checkoutIdentifier }
312328 cornerRadius = { cornerRadius }
0 commit comments