customOnramp.js
. In it let’s add the imports and declarations needed to get started:
setupCoinbaseButtonOverride
function.
findButtonInShadowDOM
which is responsible for detecting the button in the shadow dom:
setupOverride
which is responsible replacing the existing button functionality with our own: