#mahraamir

1 messages · Page 1 of 1 (latest)

half lilyBOT
barren niche
#

looks like you don't have any <form> element in your HTML with that ID you're passing to get ElementById.

grizzled ocean
#

<form id="payment-form">
<div id="capp_payment-element">
<!-- Elements will create form elements here -->
</div>
<button id="submit">Submit</button>
<div id="error-message">
<!-- Display error message to your customers here -->
</div>
</form>

#

I have added this one

#

and Cash App Pay element is showing in this form

barren niche
#
  • make sure you saved the file after adding that
  • make sure you are running that Javascript code after the HTML actually exists (i.e. wrap the code in a window.onload= async function(){ .........}