Skip to content

Commit 6dd650b

Browse files
authored
Merge pull request #82 from teacoder-team/dev
Dev
2 parents e7f6158 + 357ff48 commit 6dd650b

3 files changed

Lines changed: 7 additions & 257 deletions

File tree

src/api/payment/payment.service.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ export class PaymentService {
4242
this.HOSTS_REST = this.configService.get('hosts.rest', { infer: true })
4343

4444
this.INTERNATIONAL_METHODS = [
45-
'AC',
4645
'ACkztjp', // весь мир, кроме РФ
4746
'ACf', // СНГ, кроме РФ
4847
'ACUSDGTL', // USD worldwide (кроме РФ)
@@ -271,7 +270,7 @@ export class PaymentService {
271270
): CreatePaymentRequest {
272271
return {
273272
amount: {
274-
value: 10,
273+
value: 449,
275274
currency: CurrencyEnum.RUB
276275
},
277276
description: 'Оплата премиум-подписки на 1 месяц',
@@ -282,7 +281,7 @@ export class PaymentService {
282281
items: [
283282
{
284283
amount: {
285-
value: 10,
284+
value: 449,
286285
currency: CurrencyEnum.RUB
287286
},
288287
description: 'Премиум-доступ на 30 дней',
@@ -313,10 +312,10 @@ export class PaymentService {
313312
private getPriceForMethod(method: PaymentMethod): number {
314313
switch (method) {
315314
case PaymentMethod.INTERNATIONAL_CARD:
316-
return 399
315+
return 499
317316

318317
default:
319-
return 10
318+
return 449
320319
}
321320
}
322321

src/api/payment/webhook/webhook.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export class WebhookService {
4444

4545
public async handleYookassa(payload: any, ip: string) {
4646
this.logger.log(`Incoming YooKassa webhook: ${payload.event}`)
47-
this.validator.validateYooKassa(ip)
47+
// this.validator.validateYooKassa(ip)
4848

4949
if (payload.event === 'payment.waiting_for_capture') {
5050
this.logger.log(`Capturing payment ${payload.object.id}`)
@@ -200,8 +200,8 @@ export class WebhookService {
200200
)
201201
}
202202

203-
if (provider === 'yookassa')
204-
await this.createNpdReceiptSafe(payment, raw)
203+
// if (provider === 'yookassa')
204+
// await this.createNpdReceiptSafe(payment, raw)
205205

206206
const now = new Date()
207207

temp

Lines changed: 0 additions & 249 deletions
This file was deleted.

0 commit comments

Comments
 (0)