skip to Main Content

Javascript – STRIPE PAYMENT GATEWAY – Error : "Customer cus_xxxx does not have card with ID tok_visa

// client side code const onToken = async (token) => { console.log(token); const bookingDetails = { room, userid: JSON.parse(localStorage.getItem("currentUser"))._id, fromdate, todate, totalAmount, totaldays: totalDays, token, }; try { setLoading(true); const result = await axios.post("/api/bookings/bookroom", bookingDetails); setLoading(false); Swal.fire( "Congratulations", "Your Room…

VIEW QUESTION
Back To Top
Search