This commit is contained in:
@@ -25,6 +25,7 @@ export default defineEventHandler(async () => {
|
||||
currency: 'RUB',
|
||||
title: 'Название заказа',
|
||||
description: 'Описание заказа',
|
||||
hppRedirectUrl: 'https://pgtest.bspb.ru/result',
|
||||
},
|
||||
}
|
||||
|
||||
@@ -36,5 +37,5 @@ export default defineEventHandler(async () => {
|
||||
},
|
||||
})
|
||||
|
||||
return response.data
|
||||
return response?.data || []
|
||||
})
|
||||
|
||||
10
server/shared/types/bspb.ts
Normal file
10
server/shared/types/bspb.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
export interface IBspb {
|
||||
order: {
|
||||
id: number
|
||||
hppUrl: string
|
||||
password: string
|
||||
accessToken: string
|
||||
status: string
|
||||
cvv2AuthStatus: string
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user