🐛 fix(payment): Config and types
This commit is contained in:
parent
f57e40cd3d
commit
b0c87fbf3d
@ -207,10 +207,8 @@ export default function AlipayF2F() {
|
|||||||
defaultValue={data?.config.private_key}
|
defaultValue={data?.config.private_key}
|
||||||
onBlur={(e) => {
|
onBlur={(e) => {
|
||||||
updateConfig('config', {
|
updateConfig('config', {
|
||||||
config: {
|
...data?.config,
|
||||||
...data?.config,
|
private_key: e.target.value,
|
||||||
private_key: e.target.value,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
@ -227,10 +225,8 @@ export default function AlipayF2F() {
|
|||||||
value={data?.config.public_key}
|
value={data?.config.public_key}
|
||||||
onBlur={(e) => {
|
onBlur={(e) => {
|
||||||
updateConfig('config', {
|
updateConfig('config', {
|
||||||
config: {
|
...data?.config,
|
||||||
...data?.config,
|
public_key: e.target.value,
|
||||||
public_key: e.target.value,
|
|
||||||
},
|
|
||||||
});
|
});
|
||||||
}}
|
}}
|
||||||
/>
|
/>
|
||||||
|
|||||||
@ -36,7 +36,7 @@ export default function Epay() {
|
|||||||
await updateEpayPaymentConfig({
|
await updateEpayPaymentConfig({
|
||||||
...data,
|
...data,
|
||||||
[key]: value,
|
[key]: value,
|
||||||
} as API.PaymentConfig);
|
} as API.UpdateEpayRequest);
|
||||||
toast.success(t('saveSuccess'));
|
toast.success(t('saveSuccess'));
|
||||||
refetch();
|
refetch();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user