File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments