feat(payment): implement Zibal IPG payment gateway integration, admin merchant configuration and verification page
Deploy Canina / deploy (push) Successful in 3m28s
Deploy Canina / deploy (push) Successful in 3m28s
This commit is contained in:
1 parent
03900e726a
commit
8992060cb7
94 files changed
+53456
-29275
No files matched your search
@@ -0,0 +1,25 @@
|
||||
import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsNotEmpty, IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class InitiatePaymentDto {
|
||||
@ApiProperty({ description: 'شناسه سفارش در دیتابیس' })
|
||||
@IsNotEmpty()
|
||||
@IsString()
|
||||
orderId: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'آدرس بازگشت اختیاری جهت سفارشیسازی' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
customCallbackUrl?: string;
|
||||
}
|
||||
|
||||
export class InitiateWalletTopupDto {
|
||||
@ApiProperty({ description: 'مبلغ افزایش اعتبار (به تومان)' })
|
||||
@IsNotEmpty()
|
||||
amount: number;
|
||||
|
||||
@ApiPropertyOptional({ description: 'آدرس بازگشت اختیاری' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
customCallbackUrl?: string;
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
import { ApiPropertyOptional } from '@nestjs/swagger';
|
||||
import { IsOptional, IsString } from 'class-validator';
|
||||
|
||||
export class ZibalCallbackQueryDto {
|
||||
@ApiPropertyOptional({ description: 'وضعیت موفقیت اولیه زیبال (1 یا 0)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
success?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شناسه پیگیری تراکنش زیبال' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
trackId?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شناسه سفارش ارسال شده در زمان ایجاد' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
orderId?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'کد وضعیت پرداخت زیبال' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
status?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شماره کارت ماسک شده (در متد لِیزی)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
cardNumber?: string;
|
||||
|
||||
@ApiPropertyOptional({ description: 'شماره کارت هش شده (در متد لِیزی)' })
|
||||
@IsOptional()
|
||||
@IsString()
|
||||
hashedCardNumber?: string;
|
||||
}
|
||||
Reference in new issue
Block a user