#naciberkteke_09059

1 messages ยท Page 1 of 1 (latest)

sick juncoBOT
#

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.

tall knoll
keen breach
tall knoll
#

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?

bright sleet
#

๐Ÿ‘‹ taking over for my colleague. Let me catch up.

tall knoll
#

hi tarzan ๐Ÿ™‚ its fine thanks

bright sleet
tall knoll
#

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

bright sleet
#

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
tall knoll
#

how your payment window knows how much money it will payed?

bright sleet
#

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

tall knoll
#

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

bright sleet
#

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

#

which can also help if you want to manage your products and prices in Stripe

tall knoll
#

ok let me try