|
@@ -249,7 +249,9 @@ export default function CheckoutPlaceOrder({
|
|
|
async function(res) {
|
|
async function(res) {
|
|
|
console.log('klarna authorize res ---- ',res);
|
|
console.log('klarna authorize res ---- ',res);
|
|
|
if(res.approved && res.authorization_token) { // 可以支付
|
|
if(res.approved && res.authorization_token) { // 可以支付
|
|
|
-
|
|
|
|
|
|
|
+ overlayLoading.stop();
|
|
|
|
|
+ router.replace('/paymentresult/result?orderId=' + webOrderId + '&return_result=success');
|
|
|
|
|
+ /*
|
|
|
const resCallback = await createPaymentCallback({
|
|
const resCallback = await createPaymentCallback({
|
|
|
orderId: Number(webOrderId),
|
|
orderId: Number(webOrderId),
|
|
|
gatewayOrderId: res.authorization_token,
|
|
gatewayOrderId: res.authorization_token,
|
|
@@ -271,6 +273,7 @@ export default function CheckoutPlaceOrder({
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
+ */
|
|
|
|
|
|
|
|
} else {
|
|
} else {
|
|
|
// if(res.show_form) { // klarna可用,但是有报错
|
|
// if(res.show_form) { // klarna可用,但是有报错
|