Skip to content

Commit

Permalink
Add applepay as instant payment types on Adyen
Browse files Browse the repository at this point in the history
  • Loading branch information
acasazza committed Aug 27, 2024
1 parent a7c1bb3 commit f9f55f5
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -363,8 +363,10 @@ export function AdyenPayment({
'Payment methods are not available. Please, check your Adyen configuration.'
)
}
// @ts-expect-error no type
const showStoredPaymentMethods = paymentSource?.payment_methods?.storedPaymentMethods != null ?? false
const showStoredPaymentMethods =
// @ts-expect-error no type
paymentSource?.payment_methods?.storedPaymentMethods != null ?? false

const options = {
locale: order?.language_code ?? locale,
environment,
Expand Down Expand Up @@ -409,6 +411,7 @@ export function AdyenPayment({
void AdyenCheckout(options).then((adyenCheckout) => {
const component = adyenCheckout
.create(type, {
instantPaymentTypes: ['applepay'],
showRemovePaymentMethodButton: showStoredPaymentMethods,
onSelect: (component) => {
const id: string = component._id
Expand Down

0 comments on commit f9f55f5

Please sign in to comment.