Payment gateway card form

Help for integrating the Laravel package
Forum rules
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
berdev
Posts: 9
Joined: 09 Apr 2021, 11:54

Payment gateway card form

Post by berdev » 21 Oct 2021, 11:27

How to show card form at the same page like this :
2021-10-21 (2).png
2021-10-21 (2).png (23.14 KiB) Viewed 227 times

User avatar
aimeos
Administrator
Posts: 5643
Joined: 01 Jan 1970, 00:00

Re: Payment gateway card form

Post by aimeos » 22 Oct 2021, 09:28

It's not allowed to store credit card data locally so you need a payment gateway that handles credit card payments.
Stripe does that for example and generates a similar payment form after the customer clicked on "Buy now" in the checkout summary page:
https://aimeos.org/docs/latest/manual/services/#stripe
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

berdev
Posts: 9
Joined: 09 Apr 2021, 11:54

Re: Payment gateway card form

Post by berdev » 22 Oct 2021, 14:18

Thank you for the reply !
Yes i use a payment gateway (checkout.com) but i want to show payment form at the same page
This is the current case (the integration works correctly) :
aimeos wrote: 22 Oct 2021, 09:28 generates a similar payment form after the customer clicked on "Buy now" in the checkout summary page:
But I need to show my form on the same page ( when customer select the payment method the form should be shown ).
and when he clicked buy now the customer will be redirect to confirmation page.
Attachments
What i need :
What i need :
2021-10-21 (2).png (23.14 KiB) Viewed 190 times
Current case :
Current case :
2021-10-22 (2).png (17.18 KiB) Viewed 190 times

User avatar
aimeos
Administrator
Posts: 5643
Joined: 01 Jan 1970, 00:00

Re: Payment gateway card form

Post by aimeos » 23 Oct 2021, 06:32

You have to create a custom payment service provider implementation that adds the required form/JS code to the payment selection page and store the token you get from the payment gateway in the order payment service item of the basket as attribute. In the process() method of your payment service provider, you must perform the payment based on that token and set the payment status of the order accordingly.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, Image give us a star

Post Reply