Impacted versions: 10.0

Steps to reproduce:

Login to front-end website. From user menu, select My Account.

In Your Invoices and Payments, click on Pay Now link (next to invoice).

(Payment method is wire transfer)

Click on Pay Now

Current behavior:

There's error:

"Oops! There was a problem with your payment."

Expected behavior:

Payment should be done.

![odoo-payment-wire-transfer-error](https://user-images.githubusercontent.com/29296648/26960392-f6300cbe-4d00-11e7-83a5-1f2c7879bae4.jpg)


Video/Screenshot link (optional):


addons/website_payment/controllers/main.py
if delete_pm_id:
            pay_meth = request.env['payment.token'].browse(int(delete_pm_id))
            pay_meth.unlink()
        return request.redirect('/my/payment_method')
    @http.route(['/website_payment/pay'], type='http', auth='public', website=True)
    def pay(self, reference='', amount=False, currency_id=None, acquirer_id=None, **kw):
        env = request.env
        user = env.user.sudo()
        currency_id = currency_id and int(currency_id) or user.company_id.currency_id.id
        currency = env['res.currency'].browse(currency_id)
        
        acquirer_id = acquirer_id and int(acquirer_id) or \
            env['ir.values'].get_default('payment.transaction', 'acquirer_id', company_id=user.company_id.id) or \
            env['payment.acquirer'].search([('website_published', '=', True), ('company_id', '=', user.company_id.id)])[0].id
        acquirer = env['payment.acquirer'].with_context(submit_class='btn btn-primary pull-right',
                                                        submit_txt=_('Pay Now')).browse(acquirer_id)
        
        reference = request.env['payment.transaction'].get_next_reference(reference)
        partner_id = user.partner_id.id if user.partner_id.id != request.website.partner_id.id else False
        payment_form = acquirer.sudo().render(reference, float(amount), currency.id, values={'return_url': '/website_payment/confirm', 'partner_id': partner_id})
        values = {
            'reference': reference,
            'acquirer': acquirer,
            'currency': currency,
            'amount': float(amount),
            'payment_form': payment_form,
        }
        return request.render('website_payment.pay', values)
    @http.route(['/website_payment/transaction'], type='json', auth="public", website=True)
    def transaction(self, reference, amount, currency_id, acquirer_id):