Paytm Integration
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!
Always add your Laravel, Aimeos and PHP version as well as your environment (Linux/Mac/Win)
Spam and unrelated posts will be removed immediately!
-
- Posts: 30
- Joined: 08 Aug 2017, 07:20
Paytm Integration
Hello ,
I want to integrate paytm payment on checkout page. Could you please suggest me about this?
I want to integrate paytm payment on checkout page. Could you please suggest me about this?
Re: Paytm Integration
The easiest way is installing the ai-payments extension and using an Omnipay driver. For Paytm there's already one implemented:
https://github.com/sumityadav/omnipay-paytm
You should try if it works out of the box. Sometimes minor fixes are necessary to get drivers running.
https://github.com/sumityadav/omnipay-paytm
You should try if it works out of the box. Sometimes minor fixes are necessary to get drivers running.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 30
- Joined: 08 Aug 2017, 07:20
Re: Paytm Integration
I have installed omnipay paytm as suggested. But when i added provider class it gives me error Class "\Aimeos\MShop\Service\Provider\Payment\paytm" not available.
Please suggest me what will be the provider class in admin also what will be the provider service class in config/app.php?
Please suggest me what will be the provider class in admin also what will be the provider service class in config/app.php?
Re: Paytm Integration
An Aimeos service provider isn't the same as a Laravel service provider. They are something totally different.
Please make sure that you've executed
Then go to the Aimeos admin interface and create a new service (type: payment) and use "OmniPay" for the provider field. Add this to the configuration on the right side (https://aimeos.org/docs/User_Manual/Adm ... st#Omnipay):
- omnipay.type : Paytm
Afterwards, you need to add the Paytm specific configuration (probably at least MID and MerchantKey):
https://github.com/sumityadav/omnipay-p ... ay.php#L19
Please make sure that you've executed
Code: Select all
composer require aimeoscom/ai-payments
- omnipay.type : Paytm
Afterwards, you need to add the Paytm specific configuration (probably at least MID and MerchantKey):
https://github.com/sumityadav/omnipay-p ... ay.php#L19
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 30
- Joined: 08 Aug 2017, 07:20
Re: Paytm Integration
Thanks for your support,
It is working now but only problem is that it is not taking price and order id of aimeos. It is showing transaction amount from default parameters of gateway.php instead of my product from the cart.
Please suggest me about the issue.
It is working now but only problem is that it is not taking price and order id of aimeos. It is showing transaction amount from default parameters of gateway.php instead of my product from the cart.
Please suggest me about the issue.
Re: Paytm Integration
The Omnipay Paytm driver uses incorrect parameter names (self-invented vs. official):
- OrderId vs. transactionId
- TransactionAmount vs. amount
You can see in the ai-payments extension what parameters as passed to the driver:
https://github.com/aimeoscom/ai-payment ... y.php#L617
- OrderId vs. transactionId
- TransactionAmount vs. amount
You can see in the ai-payments extension what parameters as passed to the driver:
https://github.com/aimeoscom/ai-payment ... y.php#L617
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 30
- Joined: 08 Aug 2017, 07:20
Re: Paytm Integration
So i need to change parameters in omnipay-paytm /gateway.php file????
-
- Posts: 30
- Joined: 08 Aug 2017, 07:20
Re: Paytm Integration
Above problem has been resolved, but only issue left is , after successful payment it is not redirecting user back to my website.
Re: Paytm Integration
Create a pull request and try to get the author to merge the bugfixes into the original repository.
The driver doesn't use the "returnUrl" provided and doesn't send it to Paytm. Thus, Paytm doesn't know where to redirect back.
The driver doesn't use the "returnUrl" provided and doesn't send it to Paytm. Thus, Paytm doesn't know where to redirect back.
Professional support and custom implementation are available at Aimeos.com
If you like Aimeos, give us a star
If you like Aimeos, give us a star
-
- Posts: 30
- Joined: 08 Aug 2017, 07:20
Re: Paytm Integration
Hello Support,
My paytm integration is working fine on development server but when i push it on live it is showing me error
Class omnipay/paytm/gateway not found.
Please suggest me what i missing.
My paytm integration is working fine on development server but when i push it on live it is showing me error
Class omnipay/paytm/gateway not found.
Please suggest me what i missing.