Is There A Payment Gateway On Cs Cart That Process Payment On The Checkout Page

i want to know if there is a payment gateway that processes transcation on the checkout page without using iframe or without redirecting to a hostedpay page using api that is already found in cs cart.

or any one knows how to process payment on the checkout page buy asking customer different infomations such as phone number and providing a button where the customer can send an api request to the payment gateway from the checkout page to get "otp" from the payment gateway and then finally place an order by providing the "otp" on checkout page to send it the the rest of the request paramater to the payment gateway to place an order.

Hello

You have to do it in the script that handles the payment in mode "place_order". We have a couple of addos that asks for payment authorization via API, there is communication in the background via the webhook.

Best regards

Robert

Hello

You have to do it in the script that handles the payment in mode "place_order". We have a couple of addos that asks for payment authorization via API, there is communication in the background via the webhook.

Best regards

Robert

Hello Roberts thanks for your replay can you please be more clear and specifiy the addon that works that way

Please check my answer regarding payment method templates in another thread.

Please check my answer regarding payment method templates in another thread.

am sorry but can you leave the link to that thread

Hello Obssa

What stage are you at in the integration of payments, what information do you need now?

Best regards

Robert

Hello Obssa

What stage are you at in the integration of payments, what information do you need now?

Best regards

Robert

Hello Robert

I have done the encryption and listed the paramater needed for the request and everything is ready and

now am on a phase where when a customer chooses the specific payment method on the check out page a field will

appear where the customer can enters its phone number and request for an otp to confrim the amount of pay notice though this all before the customer can clicking "place order button"

Hello

Similarly to credit card payment on the checkout page, you can provide input fields in which you can collect the necessary information.
/responsive/templates/addons/your_addon_payment/views/orders/components/payments/your_addon_payment.tpl
or this directory
/design/themes/responsive/templates/views/orders/components/payments/your_payment.tpl
You can put your fields in this file.
Best regards
Robert

am sorry but can you leave the link to that thread

https://forum.cs-cart.com/topic/64749-how-to-process-payment-on-check-out-page-without-redirecting-it

Hello

Similarly to credit card payment on the checkout page, you can provide input fields in which you can collect the necessary information.
/responsive/templates/addons/your_addon_payment/views/orders/components/payments/your_addon_payment.tpl
or this directory
/design/themes/responsive/templates/views/orders/components/payments/your_payment.tpl
You can put your fields in this file.
Best regards
Robert

hello Robert thanks for the info okay i have been able to display the form needed to accept the need infromatiom from customer, but on the templete i want to get the total value of the order from the cart and and send a request from the tpl file in smarty

Hello

This is in $order_info['total'] variable.

Best regards

Robert

Hello

This is in $order_info['total'] variable.

Best regards

Robert

hello Robert,

thanks you again but how to send the data i got from the customer like the otp to the back-end like for exmpale to "fn_get_order_info"

Hello

Write more precisely what you want to do.

Best regards

Robert

Hello

Write more precisely what you want to do.

Best regards

Robert

hello Robert

So i have mada a tamplete on the checkout page where a customer can enter its phone number and

send a request the the payment gateway to get an otp from the payment server

Therefore now i hava field where a customer can enter the otp he got from payment gateway on his phone to

the templete field on the check out page so now i want to use the otp that the customer enters on the checkout page

and use the otp code to send the final post request to the payment gateway when the customer click on the place order button on the checkout page .

Please use

{$cart.total}

Please use

{$cart.total}

eComLabs thanks i already got that can you commet on the above question though

hello guys but how to send a smarty variable from checkout page to a payment processing script

Just create input with the name "payment_info[my_parameter_name]"

In the processing script it should be available in $order_info['payment_info']['my_parameter_name']

Just create input with the name "payment_info[my_parameter_name]"

In the processing script it should be available in $order_info['payment_info']['my_parameter_name']

okay yes thank am using iframemode and in that iframe i have put a smarty tpl fie form to get a phone number from the user input

and i need a way to pass that phone number to my payment process script but am kind lost cuase its from iframe

Just create input with the name "payment_info[my_parameter_name]"

In the processing script it should be available in $order_info['payment_info']['my_parameter_name']

please can you elaborate considering i have a custom form on the checkout page that gets user input and send it to

my payment processing script and again waits for a second user input to compare it to what value that my payment script pass

it to the template