✨ fix: Improve subscription payment handling and card layout consistency
Unify Epay subscription response format with top-up flow, and harden frontend error handling to avoid object-to-string issues. Refine subscription plan cards layout to be wider, left-aligned, and visually consistent across breakpoints.
This commit is contained in:
@@ -249,7 +249,9 @@ const TopUp = () => {
|
||||
document.body.removeChild(form);
|
||||
}
|
||||
} else {
|
||||
showError(data);
|
||||
const errorMsg =
|
||||
typeof data === 'string' ? data : message || t('支付失败');
|
||||
showError(errorMsg);
|
||||
}
|
||||
} else {
|
||||
showError(res);
|
||||
@@ -293,7 +295,9 @@ const TopUp = () => {
|
||||
if (message === 'success') {
|
||||
processCreemCallback(data);
|
||||
} else {
|
||||
showError(data);
|
||||
const errorMsg =
|
||||
typeof data === 'string' ? data : message || t('支付失败');
|
||||
showError(errorMsg);
|
||||
}
|
||||
} else {
|
||||
showError(res);
|
||||
|
||||
Reference in New Issue
Block a user