Skip to content

Commit e82e083

Browse files
committed
paypal deserves to be bombed.
1 parent 96c9a03 commit e82e083

File tree

4 files changed

+7
-17
lines changed

4 files changed

+7
-17
lines changed

Synergism.css

-5
Original file line numberDiff line numberDiff line change
@@ -4310,11 +4310,6 @@ form input:hover {
43104310
color: black;
43114311
}
43124312

4313-
#checkout-paypal {
4314-
width: 75%;
4315-
margin: 0 auto;
4316-
}
4317-
43184313
#cart {
43194314
width: fit-content;
43204315
margin: 5px auto 0;

index.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -5011,7 +5011,8 @@ <h1 id="pCoinUpgradeName">Welcome to the PseudoShop!</h1>
50115011
</section>
50125012

50135013
<button id="checkout" type="submit">Checkout</button>
5014-
<div id="checkout-paypal"></div>
5014+
<p style="margin: 0; text-align: center;">DO NOT USE PAYPAL IF STRIPE IS AVAILABLE. PSEUDOCOINS MAY HAVE TO BE GIVEN MANUALLY, WHICH MAY TAKE UP TO 12 HOURS.</p>
5015+
<div class="checkout-paypal"></div>
50155016
<button id="closeCart" type="button">Close</button>
50165017
</div>
50175018
</div>

src/purchases/CheckoutTab.ts

+2-8
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { loadScript } from '@paypal/paypal-js'
22
import { prod } from '../Config'
33
import { changeSubTab, Tabs } from '../Tabs'
4-
import { Alert, Confirm, Notification } from '../UpdateHTML'
4+
import { Alert, Notification } from '../UpdateHTML'
55
import { memoize } from '../Utility'
66
import { products, subscriptionProducts } from './CartTab'
77
import { addToCart, clearCart, getPrice, getProductsInCart, getQuantity, removeFromCart } from './CartUtil'
@@ -188,12 +188,6 @@ async function initializePayPal () {
188188
fd.set(product.id, `${product.quantity}`)
189189
}
190190

191-
const confirmed = await Confirm('Your transaction will likely need to manually handled and may take upwards of 12 hours to receive the PseudoCoins! PLEASE USE STRIPE IF POSSIBLE!')
192-
193-
if (!confirmed) {
194-
throw new TypeError('Thank you for listening to my advice. FUCK PAYPAL.')
195-
}
196-
197191
fd.set('tosAgree', tosAgreed ? 'on' : 'off')
198192
const url = 'https://synergism.cc/paypal/orders/create'
199193

@@ -260,7 +254,7 @@ async function initializePayPal () {
260254
Notification('An error with PayPal happened. More info in console.')
261255
console.log(error)
262256
}
263-
}).render('#checkout-paypal')
257+
}).render('.checkout-paypal')
264258
} catch {}
265259
}
266260

src/purchases/SubscriptionsSubtab.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ export const createIndividualSubscriptionHTML = (product: SubscriptionProduct, e
108108
<button data-id="${product.id}" data-name="${product.name}" data-downgrade class="pseudoCoinButton" style="background-color: maroon">
109109
Downgrade!
110110
</button>
111-
<div id="checkout-paypal" data-id="${product.id}"></div>
111+
<div class="checkout-paypal" data-id="${product.id}"></div>
112112
</div>
113113
</section>
114114
`
@@ -126,7 +126,7 @@ export const createIndividualSubscriptionHTML = (product: SubscriptionProduct, e
126126
<button data-id="${product.id}" data-name="${product.name}" class="pseudoCoinButton" style="background-color: #b59410">
127127
You are here!
128128
</button>
129-
<div id="checkout-paypal" data-id="${product.id}"></div>
129+
<div class="checkout-paypal" data-id="${product.id}"></div>
130130
</div>
131131
</section>
132132
`
@@ -144,7 +144,7 @@ export const createIndividualSubscriptionHTML = (product: SubscriptionProduct, e
144144
<button data-id="${product.id}" data-name="${product.name}" data-upgrade class="pseudoCoinButton">
145145
Upgrade for ${formatter.format((product.price - existingCosts) / 100)} USD / mo
146146
</button>
147-
<div id="checkout-paypal" data-id="${product.id}"></div>
147+
<div class="checkout-paypal" data-id="${product.id}"></div>
148148
</div>
149149
</section>
150150
`

0 commit comments

Comments
 (0)