Advanced Rendering Control
By default, we provide a fully managed and branded UI. You may want advanced controls in certain situations such as validating information a customer has provided during checkout before continuing. When afterpayButton.renderCashAppPayButton is called, a begin method is returned through the onBegin callback for you to call when you are ready.
1. Create your custom button
Either with JavaScript
or directly in HTML
The <cash-app-pay-logo> element renders a Cash App Pay logo which can be used when choosing a payment method or to enhance your checkout button.
2. Initialize the authorization flow when ready
Your checkout experience may want to use its own button for consistency across payment methods. When the manage option is false, you can also set the button option to false to prevent a Cash App Pay button from being rendered. You can now provide your own button and manage the authorization flow.