skip to Main Content

Php – Retry Stripe transaction for Pending or Failed Payments

I'm creating a my stripe Payment Intent as follows using PHP. if($params['payment_method'] == 'stripe') { $paymentIntent = $stripe->paymentIntents->create([ 'shipping' => [ "name" => $uModel->full_name, "phone" => $params['billing_phone'], "address" => [ "city" => $params['billing_city'], "country" => $params['billing_country'], "line1" => $params['billing_address_1'], "line2"…

VIEW QUESTION

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