Procházet zdrojové kódy

update payment

master
Anna Ho před 1 rokem
rodič
revize
49eaa45250
2 změnil soubory, kde provedl 5 přidání a 2 odebrání
  1. +2
    -0
      src/auth/index.js
  2. +3
    -2
      src/pages/Payment/Card/index.js

+ 2
- 0
src/auth/index.js Zobrazit soubor

@@ -88,6 +88,8 @@ export const handleLogoutFunction = () => {
localStorage.removeItem('userData')
localStorage.removeItem('accessToken')
localStorage.removeItem('refreshToken')
localStorage.removeItem('webtoken')
localStorage.removeItem('transactionid')
//localStorage.removeItem(config.storageUserRoleKeyName)
localStorage.removeItem(refreshIntervalName)
localStorage.removeItem(windowCount)


+ 3
- 2
src/pages/Payment/Card/index.js Zobrazit soubor

@@ -89,7 +89,7 @@ const Index = () => {
},
// "locale":"<locale>",
// "eserviceid":"<eserviceid>",
"returnurl": "http://"+window.location.hostname+"/paymentPage/success/"+paymentData.webtoken
"returnurl": "http://"+window.location.hostname+"/paymentPage/success"
},
///{state:{transactionid:paymentData.transactionid,webtoken:paymentData.webtoken} }
onSuccess: function(responseData){
@@ -99,7 +99,8 @@ const Index = () => {
"redirecturl": "<redirecturl>"
}
*/
window.open(responseData.redirecturl);
//window.open(responseData.redirecturl);
window.location.assign(responseData.redirecturl);
}
});
}


Načítá se…
Zrušit
Uložit