link
This commit is contained in:
@@ -6,7 +6,7 @@ import { TranslatePipe } from '../../translate/translate.pipe';
|
||||
import { TranslationService } from '../../translate/translation.service';
|
||||
|
||||
interface LegacyPayResponse {
|
||||
payload?: string;
|
||||
nspkurl?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -85,11 +85,11 @@ export class LegacyPayPage {
|
||||
this.http.post<LegacyPayResponse>(this.LEGACY_API, body).subscribe({
|
||||
next: (res) => {
|
||||
this.loading.set(false);
|
||||
if (res?.payload) {
|
||||
if (res?.nspkurl) {
|
||||
if (this.isMobile) {
|
||||
window.location.href = res.payload;
|
||||
window.location.href = res.nspkurl;
|
||||
} else {
|
||||
this.qrPayUrl.set(res.payload);
|
||||
this.qrPayUrl.set(res.nspkurl);
|
||||
}
|
||||
} else {
|
||||
this.error.set(this.t('errors.payment_failed'));
|
||||
|
||||
Reference in New Issue
Block a user