Coming soon - Get a detailed view of why an account is flagged as spam!
view details

This post has been de-listed

It is no longer included in search results and normal feeds (front page, hot posts, subreddit posts, etc). It remains visible only via the author's post history.

2
Hello, Please help with the script, trying to create variable that loads in a particular section, but keep getting errors.
Post Body

There is a moneybutton javascript code that I want to edit. I want to have the userinput the "to:" section of the code. But, for some reason, it isn't working. Here is the code:

  <script src="https://www.moneybutton.com/moneybutton.js"></script>
<div id='my-money-button'></div>
<label for="to">Recipient Email:</label>
<input type="email" id="to" name="to">
<button onclick="sendMoney()">Send Money</button>

<script>
  function sendMoney() {
    const recipientEmail = document.getElementById('to').value;
    const div = document.getElementById('my-money-button');
    moneyButton.render(div, {
      to: recipientEmail,
      amount: ".0001",
      currency: "USD",
      label: "Wait...",
      clientIdentifier: "some public client identifier",
      buttonId: "234325",
      buttonData: "{}",
      type: "tip",
      onPayment: function (arg) { console.log('onPayment', arg) },
      onError: function (arg) { console.log('onError', arg) }
    });
  }
</script>
     }  

Here it is in action

Author
User Suspended
Account Strength
0%
Suspended 3 months ago
Account Age
1 year
Verified Email
Yes
Verified Flair
No
Total Karma
8
Link Karma
5,901
Comment Karma
1,059
Profile updated: 1 hour ago
Posts updated: 1 year ago

Subreddit

Post Details

We try to extract some basic information from the post title. This is not always successful or accurate, please use your best judgement and compare these values to the post title and body for confirmation.
Posted
1 year ago