Skip to content

Commit

Permalink
Expose Adyen drop-in configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Aug 7, 2024
1 parent 2aa8eda commit e4f2da2
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export interface AdyenPaymentConfig {
threeDSecureContainerClassName?: string
placeOrderCallback?: (response: { placed: boolean }) => void
styles?: PaymentMethodsStyle
paymentMethodsConfiguration?: CoreOptions['paymentMethodsConfiguration']
}

interface Props {
Expand Down Expand Up @@ -379,13 +380,16 @@ export function AdyenPayment({
showStoredPaymentMethods,
paypal: {
showPayButton: true,
style: styles?.paypal
style: styles?.paypal,
...config?.paymentMethodsConfiguration?.paypal
},
card: {
enableStoreDetails: showStoredPaymentMethods,
styles: styles?.card,
holderNameRequired: false
}
holderNameRequired: false,
...config?.paymentMethodsConfiguration?.card
},
...config?.paymentMethodsConfiguration
},
onAdditionalDetails: (state, element) => {
void handleOnAdditionalDetails(state, element)
Expand Down

0 comments on commit e4f2da2

Please sign in to comment.