diff --git a/add-custom-button-section.js b/add-custom-button-section.js index 422693a..55bed96 100644 --- a/add-custom-button-section.js +++ b/add-custom-button-section.js @@ -24,9 +24,9 @@
<html>
+ <html>
<head>
- <script src="https://orion-api-testnet.starhermit.com/static/js/checkout.js"></script>
+ <script src="https://alpha-api.coinpayments.net/static/js/checkout.js"></script>
</head>
<body>
<!-- ... -->
@@ -47,7 +47,7 @@
CoinPayments.Button({
+ CoinPayments.Button({
//
// the \`createInvoice\` method is called when the user presses the
@@ -88,7 +88,7 @@
CoinPayments.Button({
+ CoinPayments.Button({
style: {
color: "blue",
width: 180
@@ -115,7 +115,7 @@
{
+ {
clientId: "CoinPaymentsDemoClient",
currencyId: "5057", // USD
items: [
@@ -168,7 +168,7 @@
CoinPayments.Button({
+ CoinPayments.Button({
//
// you can specify the \`invoiceId\` and \`customData\` dictionary of strings to store
diff --git a/index.html b/index.html
index ed5d750..ec1c133 100644
--- a/index.html
+++ b/index.html
@@ -10,10 +10,6 @@
-
-
@@ -195,6 +191,21 @@
padding: 0 40px;
}
+ .code-style-custom-btn {
+ display: block;
+ margin: 0 0 10px;
+ white-space: pre-wrap;
+ word-break: break-all;
+ word-wrap: break-word;
+ line-height: 1.45;
+ overflow: auto!important;
+ padding: 16px;
+ background: #f1f8e9;
+ border-radius: 4px;
+ -webkit-box-shadow: 0 0 10px #f1f8e9;
+ box-shadow: 0 0 10px #f1f8e9;
+ }
+
@media print,
screen and (max-width:85rem) {
.cjtbAK {
@@ -2917,7 +2928,6 @@
-