Payment provider

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

Payment provider

Post by berdev » 12 Apr 2021, 13:17

Hi i'm trying to create a new payment provider for checkout.com payment gateway for that I need to embed the Frames payment form in my payment page to enter card number, cvv...
So i need just one field that will be contain the card token and it will be required and hidden.
I have followed the procedure described here (https://aimeos.org/docs/2020.x/provider ... yment-form)
And after clicking in Buy now button it redirect me to (shop/checkout/process) page and this page keeps refreshing itself.
Attachments
2021-04-12.png
2021-04-12.png (89.8 KiB) Viewed 2531 times

createanet
Posts: 72
Joined: 22 Mar 2021, 16:56

Re: Payment provider

Post by createanet » 12 Apr 2021, 21:56

Hey,

I had a very similar issue, in order to resolve you have to ensure you pass an empty string for the url parameter in your providers form helper. I believe when you have no inputs that require the user to complete, it attempts to build the form and submit it to the merchant on your behalf

https://github.com/aimeos/ai-client-htm ... 1907-L1918

eg.

Code: Select all

function getPaymentForm($order, $params) {
   ...
   return new \Aimeos\MShop\Common\Helper\Form\Standard($url = '', 'POST', $list, false);
}

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

Re: Payment provider

Post by berdev » 13 Apr 2021, 09:49

Hey
thanks a lot you solved my problem !

createanet
Posts: 72
Joined: 22 Mar 2021, 16:56

Re: Payment provider

Post by createanet » 13 Apr 2021, 11:03

Happy to help :)

Post Reply