|
@@ -123,14 +123,14 @@ export class SunPayAdapter implements ChannelAdapter {
|
|
|
if (response.data.code !== 200) {
|
|
|
console.log(response.data);
|
|
|
// TODO 移除 SunPay API Error1
|
|
|
- throw new Error(`SunPay API Error1: ${response.data.msg}`);
|
|
|
+ throw new Error(`FusionPay API Error: ${response.data.msg}`);
|
|
|
}
|
|
|
return response.data;
|
|
|
} catch (error) {
|
|
|
console.log(error);
|
|
|
if (axios.isAxiosError(error) && error.response) {
|
|
|
// TODO 移除 SunPay API Error2
|
|
|
- throw new Error(`SunPay API Error2: ${error.response.data.msg}`);
|
|
|
+ throw new Error(`FusionPay API Network Error: ${error.response.data.msg}`);
|
|
|
}
|
|
|
throw error;
|
|
|
}
|