#naciberkteke_09059
1 messages ยท Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- naciberkteke_09059, 18 hours ago, 11 messages
- naciberkteke_09059, 18 hours ago, 15 messages
this is thelink where we put the payment form.
https://securepayment.deal-koeb.dk/betalingsform.php
my website is on another server which i couldnt install stripe on it. thats why i have build a new server with php8 and used this custom solution to get payments.
Deal-Koeb.dk betalings vindue
- You want to receive the amount on your backend, and set it when creating the PaymentIntent, before rendering this PaymentElement
- You can try this but you would need to pass
countryin confirmation request instead: https://stripe.com/docs/js/elements_object/create_payment_element#payment_element_create-options-fields-billingDetails-address-country - Not sure about that. Where and why do you have that accepturl?
i am not sure i got point 1!
normally all other payments gateway
i have posted the amount to the payment window from my checkout page
for example quickpay
when you click pay you going to get payment form with amout in it
how yours working have no idea ๐
i need to throw amount and some a few variable values to payment window to get them back on my accept url
its a php webshop as builded by me and its need those parametters to know who payed and which order has been payed
as u can see on screen shot i can send all those values to quickpay and gt them back via accepturl or cancel url etc.
are u there?
๐ taking over for my colleague. Let me catch up.
hi tarzan ๐ its fine thanks
have you had the chance to take a look at our quickstart guide https://stripe.com/docs/payments/quickstart ?
yes i did
but there are nothing about my questions ๐
i couldnt see anything about how to remove country field from custom payment window
how to send amount to it
how to throw variable values and use them in it
etc
how you send/calculate the amount is not Stripe specific
from the Stripe side you need to
- create a PaymentIntent
- send the client_secret to the front end
how your payment window knows how much money it will payed?
other than that it's up to you to decide how to implement that
'amount' => calculateOrderAmount($jsonObj->items),
'currency' => 'eur',
// In the latest version of the API, specifying the `automatic_payment_methods` parameter is optional because Stripe enables its functionality by default.
'automatic_payment_methods' => [
'enabled' => true,
],
]);```
calculateOrderAmount($jsonObj->items) is an example of how you can do that
ok let me explain the problem
if you remember we have talk yesterday
i have 4 sites which use php 5.4
and i cant use your payment solutions with them
so i have builded brand new server with php8.2
and installed stripe in it
now i want to send payment amount and a few other values to this page (on another server) and make payment than send them back to my site's accepturl
and one more thing i need to show that amount in payment window as well. people wants to see how much money they going to pay when they tasting card details
yes that's fine
you can send all the data that you need from your frontend to your backend to calculate the amount of the "order"
the "new server" needs to create a PaymentIntent and you have to return a client_secret (and possibly the calculated amount) to the front end
the client_secret will be used with the PaymentElement to display the Payment Form
you can also look at the Embedded Checkout form https://stripe.com/docs/checkout/embedded/quickstart
which can also help if you want to manage your products and prices in Stripe
ok let me try