0

I would like to extend the CheckoutPage/PaymentInformation/paymentMethods.js component from my own package so that it can be used without having to manually change the source code from venia-ui.

I can change inside the component by intercepting to a target for my custom payment method like so

checkoutPagePaymentTypes.tap(payments =>
        payments.add({
            paymentCode: 'fairstone',
            importPath:
                '@magento/fairstone_pwa_venia_sample/src/components/fspaymentmethod.js'
        })
    );

But when I want to update the look of my payment method option before clicking into the component there isnt a target that i can hook into to extend the paymentMethods.js component.

I'm not super familiar with PWA-Studio and Venia-UI. How do i extend this parent component that doesn't have an object on the api to point a path to.

leemac33
  • 5
  • 4

0 Answers0