Crypto Pay Plugin

Templates

Buy me coffee ☕️

Donation

  • Synchro scenario
  • Custom HTML from checkout
  • Main mode

Code

Last step ⬇️⬇️⬇️

<br><br>
<a href="'+URL+'"
style="padding: 10px 15px;
background-color:#b494f1;
border-radius:30px;
color:white;">Payment</a>

Strawberry

Ideal for any dessert. Especially with whipped cream

Price: $1.6

Apple

An excellent source of vitamins and iron. And it's also very tasty.

Price: $2

Banana

We all know how much minions love them

Price: $2.5

Store

  • Data frob table
  • Synchro scenario
  • Custom HTML\JS\CSS from card
  • Main mode

Code

<div id="mkd-wrap">
  <h1>{TEMPLATE FIELD}</h1>
  <p>{TEMPLATE FIELD}</p>
  <p>Price: ${TEMPLATE FIELD}</p>
  <button id="myButton" onclick="sendData('{TEMPLATE FIELD ID}', 'true')">Buy</button>
</div>

<script>
  function sendData(id, buy) {
    var xhr = new XMLHttpRequest();
    var url = 'YOU ENDPOINT';
    var params = 'id=' + id + '&buy=' + buy; //id - id card, buy - bool trigger
    xhr.open('POST', url, true);
    xhr.setRequestHeader('Content-type', 'application/x-www-form-urlencoded');
    xhr.send(params);
    xhr.onreadystatechange = function() {
        if (xhr.readyState == 4 && xhr.status == 200) {
            var response = JSON.parse(xhr.responseText);
            var redirectURL = response.url;
            window.location.href = redirectURL;
        }
     }
  }
</script>