Skip to content

Commit 32e713f

Browse files
committed
Replace env vars with hardcoded values and update crypto payment icons
1 parent bea367b commit 32e713f

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

public/images/crypto/bitcoin.svg

Loading

public/js/components/subscription-form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ export class SubscriptionForm extends BaseComponent {
229229
<div class="radio-group">
230230
<div class="radio-option">
231231
<input type="radio" id="monthly" name="plan" value="monthly" ${this._plan === 'monthly' ? 'checked' : ''}>
232-
<label for="monthly">Monthly - $${process.env.MONTHLY_SUBSCRIPTION_PRICE || 5}/month</label>
232+
<label for="monthly">Monthly - $5/month</label>
233233
</div>
234234
<div class="radio-option">
235235
<input type="radio" id="yearly" name="plan" value="yearly" ${this._plan === 'yearly' ? 'checked' : ''}>
236-
<label for="yearly">Yearly - $${process.env.YEARLY_SUBSCRIPTION_PRICE || 30}/year (Save over 50%!)</label>
236+
<label for="yearly">Yearly - $30/year (Save over 50%!)</label>
237237
</div>
238238
</div>
239239
</div>

public/subscription.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ <h1>Subscribe to Document Generation API</h1>
305305

306306
<div class="payment-methods">
307307
<p>We accept cryptocurrency payments:</p>
308-
<img src="https://cryptologos.cc/logos/bitcoin-btc-logo.png" alt="Bitcoin">
309-
<img src="https://cryptologos.cc/logos/ethereum-eth-logo.png" alt="Ethereum">
310-
<img src="https://cryptologos.cc/logos/solana-sol-logo.png" alt="Solana">
308+
<img src="/icons/logo.svg" alt="Bitcoin" style="height: 30px; width: auto; margin: 0 10px;">
309+
<img src="/icons/logo.svg" alt="Ethereum" style="height: 30px; width: auto; margin: 0 10px;">
310+
<img src="/icons/logo.svg" alt="Solana" style="height: 30px; width: auto; margin: 0 10px;">
311311
</div>
312312

313313
<subscription-form></subscription-form>

src/services/payment-service.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,11 @@ export const paymentService = {
1313
* @private
1414
*/
1515
_getCryptAPIClient(coin) {
16+
// Hardcoded cryptocurrency wallet addresses
1617
const addresses = {
17-
btc: process.env.BITCOIN_ADDRESS,
18-
eth: process.env.ETHEREUM_ADDRESS,
19-
sol: process.env.SOLANA_ADDRESS
18+
btc: "bc1q254klmlgtanf8xez28gy7r0enpyhk88r2499pt",
19+
eth: "0x402282c72a2f2b9f059C3b39Fa63932D6AA09f11",
20+
sol: "CsTWZTbDryjcb229RQ9b7wny5qytH9jwoJy6Lu98xpeF"
2021
};
2122

2223
if (!addresses[coin]) {
@@ -44,10 +45,8 @@ export const paymentService = {
4445
throw new Error('Invalid cryptocurrency. Must be "btc", "eth", or "sol".');
4546
}
4647

47-
// Calculate amount and expiration date
48-
const amount = plan === 'monthly'
49-
? (process.env.MONTHLY_SUBSCRIPTION_PRICE || 5)
50-
: (process.env.YEARLY_SUBSCRIPTION_PRICE || 30);
48+
// Calculate amount and expiration date with hardcoded prices
49+
const amount = plan === 'monthly' ? 5 : 30;
5150

5251
const now = new Date();
5352
const expirationDate = new Date(now);
@@ -76,7 +75,7 @@ export const paymentService = {
7675

7776
// Generate payment invoice
7877
const cryptapi = this._getCryptAPIClient(coin);
79-
const callbackUrl = `${process.env.API_BASE_URL || 'https://pdf.profullstack.com'}/api/1/payment-callback`;
78+
const callbackUrl = 'https://pdf.profullstack.com/api/1/payment-callback';
8079

8180
const invoice = await cryptapi.createAddress({
8281
callback: callbackUrl,

0 commit comments

Comments
 (0)