new API keys for test
This commit is contained in:
@@ -36,8 +36,8 @@ class PayPerSessionManager {
|
|||||||
this.verificationConfig = {
|
this.verificationConfig = {
|
||||||
method: config.method || 'lnbits',
|
method: config.method || 'lnbits',
|
||||||
apiUrl: config.apiUrl || 'https://demo.lnbits.com',
|
apiUrl: config.apiUrl || 'https://demo.lnbits.com',
|
||||||
apiKey: config.apiKey || '623515641d2e4ebcb1d5992d6d78419c',
|
apiKey: config.apiKey || 'a7226682253f4dd7bdb2d9487a9a59f8',
|
||||||
walletId: config.walletId || 'bcd00f561c7b46b4a7b118f069e68997',
|
walletId: config.walletId || '649903697b03457d8b12c4eae7b2fab9',
|
||||||
isDemo: config.isDemo !== undefined ? config.isDemo : true,
|
isDemo: config.isDemo !== undefined ? config.isDemo : true,
|
||||||
demoTimeout: 30000,
|
demoTimeout: 30000,
|
||||||
retryAttempts: 3,
|
retryAttempts: 3,
|
||||||
|
|||||||
@@ -56,8 +56,8 @@
|
|||||||
<div class="test-section">
|
<div class="test-section">
|
||||||
<h3>📋 Конфигурация</h3>
|
<h3>📋 Конфигурация</h3>
|
||||||
<p><strong>API URL:</strong> <span id="apiUrl">https://demo.lnbits.com</span></p>
|
<p><strong>API URL:</strong> <span id="apiUrl">https://demo.lnbits.com</span></p>
|
||||||
<p><strong>API Key:</strong> <span id="apiKey">623515641d2e4ebcb1d5992d6d78419c</span></p>
|
<p><strong>API Key:</strong> <span id="apiKey">a7226682253f4dd7bdb2d9487a9a59f8</span></p>
|
||||||
<p><strong>Wallet ID:</strong> <span id="walletId">bcd00f561c7b46b4a7b118f069e68997</span></p>
|
<p><strong>Wallet ID:</strong> <span id="walletId">649903697b03457d8b12c4eae7b2fab9</span></p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="test-section">
|
<div class="test-section">
|
||||||
@@ -126,7 +126,7 @@
|
|||||||
const response = await fetch('https://demo.lnbits.com/api/v1/health', {
|
const response = await fetch('https://demo.lnbits.com/api/v1/health', {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'X-Api-Key': '623515641d2e4ebcb1d5992d6d78419c'
|
'X-Api-Key': 'a7226682253f4dd7bdb2d9487a9a59f8'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -152,7 +152,7 @@
|
|||||||
const response = await fetch('https://demo.lnbits.com/api/v1/payments', {
|
const response = await fetch('https://demo.lnbits.com/api/v1/payments', {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'X-Api-Key': '623515641d2e4ebcb1d5992d6d78419c',
|
'X-Api-Key': 'a7226682253f4dd7bdb2d9487a9a59f8',
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
},
|
},
|
||||||
body: JSON.stringify({
|
body: JSON.stringify({
|
||||||
@@ -198,7 +198,7 @@
|
|||||||
const response = await fetch(`https://demo.lnbits.com/api/v1/payments/${currentInvoice.checking_id}`, {
|
const response = await fetch(`https://demo.lnbits.com/api/v1/payments/${currentInvoice.checking_id}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'X-Api-Key': '623515641d2e4ebcb1d5992d6d78419c',
|
'X-Api-Key': 'a7226682253f4dd7bdb2d9487a9a59f8',
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
@@ -268,7 +268,7 @@
|
|||||||
const response = await fetch(`https://demo.lnbits.com/api/v1/payments/${currentInvoice.checking_id}`, {
|
const response = await fetch(`https://demo.lnbits.com/api/v1/payments/${currentInvoice.checking_id}`, {
|
||||||
method: 'GET',
|
method: 'GET',
|
||||||
headers: {
|
headers: {
|
||||||
'X-Api-Key': '623515641d2e4ebcb1d5992d6d78419c',
|
'X-Api-Key': 'a7226682253f4dd7bdb2d9487a9a59f8',
|
||||||
'Content-Type': 'application/json'
|
'Content-Type': 'application/json'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user