def offsite_world_pay(request): fields = {"instId": settings.MERCHANT_SETTINGS["world_pay"]["INSTALLATION_ID_TEST"], "cartId": "TEST123", "currency": "USD", "amount": 1, "desc": "Test Item",} world_pay_obj.add_fields(fields) template_vars = {'title': 'WorldPay', "wp_obj": world_pay_obj} return render(request, 'app/world_pay.html', template_vars)