'Create a payment transaction
Expects the result from the user input from checkout.js popup'

@http.route(['/payment/stripe/create_charge'], type='json', auth='public')
def stripe_create_charge(self, **post):

    tx = request.env['payment.transaction'].sudo().browse(int((request.session.get('sale_transaction_id') or request.session.get('website_payment_tx_id', False))))
    response = tx._create_stripe_charge(tokenid=post['tokenid'], email=post['email'])
    _logger.info('Stripe:    entering    form_feedback    with    post    data    %s', pprint.pformat(response))
    if response:
        request.env['payment.transaction'].sudo().form_feedback(response, 'stripe')
    return post.pop('return_url', '/')
