refactor: resolve payment issue in paypal mode

This commit is contained in:
2025-05-13 06:01:15 +05:30
parent 5bb3be0aa4
commit 4851f34357
2 changed files with 120 additions and 82 deletions

View File

@@ -112,7 +112,7 @@ const ShoppingCart = () => {
paymentId: order.id,
payerEmail: order.payer.email_address,
cartId: cartItems[0].id,
address: shippingAddress, // Include the shipping address
address: order.address,
};
const apiResponse = await authAxios.post("/orders/payment/", paymentData);