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
from odoo import http, _
from odoo.http import request
class WebsitePayment(http.Controller):
    @http.route(['/my/payment_method'], type='http', auth="user", website=True)
    def payment_method(self, **kwargs):
        acquirers = list(request.env['payment.acquirer'].search([('website_published', '=', True), ('registration_view_template_id', '!=', False)]))
        partner = request.env.user.partner_id
        payment_tokens = partner.payment_token_ids
        payment_tokens |= partner.commercial_partner_id.sudo().payment_token_ids
        values = {
            'pms': payment_tokens,
            'acquirers': acquirers
        }
        return_url = request.params.get('redirect', '/my/payment_method')
        for acquirer in acquirers:
            acquirer.form = acquirer.sudo()._registration_render(request.env.user.partner_id.id, {'error': {}, 'error_message': [], 'return_url': return_url, 'json': False, 'bootstrap_formatting': True})
        return request.render("website_payment.pay_methods", values)
    @http.route(['/website_payment/delete/'], methods=['POST'], type='http', auth="user", website=True)
    def delete(self, delete_pm_id=None):