Razorpay Payment Acquirer

by
Odoo 6
v 14.0 Third Party 14 1377
Download for v 14.0 Deploy on Odoo.sh Live Preview
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Invoicing (account)
Discuss (mail)
Lines of code 262
Technical Name razorpay_payment
Websitehttp://odoomates.tech
Versions 15.0 12.0 13.0 14.0
You bought this module and need support? Click here!
Availability
Odoo Online
Odoo.sh
On Premise
Odoo Apps Dependencies Invoicing (account)
Discuss (mail)
Lines of code 262
Technical Name razorpay_payment
Websitehttp://odoomates.tech
Versions 15.0 12.0 13.0 14.0

Razorpay Payment Acquirer

Features:

Card Payment


Net banking


Razorpay Wallet


UPI Payment



Razorpay Payment

Payment Type Selection

Card Payment

Net Banking

Payment Using Wallet

UPI Payment

Success Page




If you need any support or want more features, just contact us:


Email: odoomates@gmail.com



Please log in to comment on this module

  • The author can leave a single reply to each comment.
  • This section is meant to ask simple questions or leave a rating. Every report of a problem experienced while using the module should be addressed to the author directly (refer to the following point).
  • If you want to start a discussion with the author, please use the developer contact information. They can usually be found in the description.
Please choose a rating from 1 to 5 for this module.
Sorry, I don't think it's a problem with the module
by
Vinay Khosla
on 7/27/22, 5:32 AM

We checked the Payment Gateway transactions & they look OK. However, the logs that get printed after the transaction is conducted are a bit misleading - the amount is shown as 141600 while the product price was 1416.

'amount': 141600,

 'amount_refunded': 0,

 'bank': None,

 'captured': True,

 'card_id': None,

 'contact': 'XXXXXXXXXXXXXX',

 'created_at': 1658908621,

 'currency': 'INR',

 'description': None,

 'email': 'XXXXXXX@gmail.com',

 'entity': 'payment',

 'error_code': None,

 'error_description': None,

 'error_reason': None,

 'error_source': None,

 'error_step': None,

 'fee': 3342,

 'id': 'pay_JyJdmjxLWRWC6T',

 'international': False,

 'invoice_id': None,

 'method': 'upi',

 'notes': {'order_id': 'tx-777'},

 'order_id': None,

 'refund_status': None,

 'status': 'captured',

 'tax': 510,

 'vpa': 'errr@paytm',

 'wallet': None}


The module does not work properly for v14 Community Edition.
by
Vinay Khosla
on 7/27/22, 4:23 AM

There is a major issue with the v14 module. The 'amount' captured gets multiplied by 100. So if the product price is 1416, the amount that will actually get deducted from the account will be 141600.

def razorpay_form_generate_values(self, values):
        self.ensure_one()
        currency = self.env['res.currency'].sudo().browse(values['currency_id'])
        if currency != self.env.ref('base.INR'):
            raise ValidationError(_('Currency not supported by Razorpay'))
        values.update({
            'key': self.razorpay_key_id,
            'amount': float_repr(float_round(values.get('amount'), 2) * 100, 0),
            'name': values.get('partner_name'),
            'contact': values.get('partner_phone'),
            'email': values.get('partner_email'),
            'order_id': values.get('reference'),
            'currency': currency.id,
        })
        return values


Also, if we enter the wrong payment information, it still gets captured & validated in Odoo.

Can you please fix the issue & update the latest version?