#kaasser
1 messages ยท Page 1 of 1 (latest)
Hi ๐ can you share more details, what shopping cart page, what table?
Let me share the code with you.
so that there is my PaymentController
this is my Winkelwagen.blade.php
Route::post('/over-ons', [ContactController::class, 'store']);
Route::post('/create-payment-intent', [PaymentController::class, 'createPaymentIntent']);
Route::post('/route-naar-betalingsverwerking', [PaymentController::class, 'verwerkBetaling']);
Route::post('/create-checkout-session', [PaymentController::class, 'createStripeSession'])->name('create.checkout.session');
Route::get('/payment/cancelled', function () {
return view('payment-cancelled'); // Ensure you have a view file named 'payment-cancelled.blade.php' in your resources/views directory
})->name('payment.cancelled');
Route::get('/error', function () {
return view('error'); // Make sure you have an error.blade.php view
})->name('error.page');
return redirect('/succes-pagina')->with('success', 'Bestelling succesvol verwerkt.');
Route::post('/direct-checkout', 'App\Http\Controllers\PaymentController@createStripeSession')->name('direct.checkout');
Route::post('/winkelwagen/checkout', [PaymentController::class, 'createStripeSession']);
Route::post('/winkelwagen/betalen', [PaymentController::class, 'createStripeSession'])->name('betalen');
Route::post('/create-stripe-session', [PaymentController::class, 'createStripeSession'])->name('create.stripe.session');
also if u need this is my winkelwagencontroller:
Sorry, I'm still pretty confused. We (Stripe) don't have a "shopping cart page", so I'm not sure what you're trying to troubleshoot.
so my issue is basically with like after the stripe checkout
I see you're creating a Payment Intent, but I'm not readily spotting how you're using that to surface a payment UI to your customer. Maybe I'm overlooking that?
like while creating the stripe payment I'm guessing it doesn't save the color rose from the shopping cart page and doesn't put it in the table sortRose after the payment
What do u mean?
What are the Stripe components in your flow, what from Stripe are you expecting to be styled that isn't? First I need to understand what you're trying to change the theming/branding of before I can provide guidance on how exactly to do that, or look into why that isn't working as expected.
Im not really trying to change anything with stripe I like just want it to basically store the rose color in the session payment and when paid that it saves in table sortRose
I'm sorry, you keep using terms that don't describe Stripe things, so I'm not sure what you're referring to or how to answer you.
Wait wait
Is this not about theming/branding at all? Like are you selling roses, and want to include information about the color rose your customer selected in Stripe somewhere?
yess that is it
sorry i explained it wrong probably then but its that basically
but I want to include it in my database not exactly stripe
unless we can make a method that saves it in stripe and then that sends it back to the table and saves it or something
If you're trying to get those details from your own frontend to your backend, that is something you're likely best suited to figure out as you are already familiar with the stack you're using. If you want to send it through Stripe, it kind of depends on how you built your integration how I'd recommend doing that. You could have different Price/Product objects representing your different colors. Or you could use metadata to pass information that is important to your flows on Stripe objects:
https://stripe.com/docs/api/metadata
Complete reference documentation for the Stripe API. Includes code snippets and examples for our Python, Java, PHP, Node.js, Go, Ruby, and .NET libraries.
alright thank you if u can help me in any way id really appreciate it as ive been trying to fix this for a long time
The above is likely the best I can offer. We focus on helping work with our API and SDKs in this forum, so if your question is about how to pass data between the ends of your system without going through Stripe (which it seems to be, but please let me know if it seems I've misunderstood), that's going to be outside of what I can help with.
ah alright thank you