Pinax stripe not allowing me to add payment plans in admin panel - django

I am developing a django application using Pinax Stripe(https://github.com/pinax/pinax-stripe). I have added the web hooks, test api keys. But when I login into the admin panel and go to 'plans' section to create a plan, in the 'create a plan' page. It doesnt show the text fields for admin to create a plan. Have a I gone wrong with the setup somewhere? I really dont understand this.

To create a plan you have to do the following.
Go to the Stripe account settings https://dashboard.stripe.com/account
Set up your webhook under the "webhook" tab
Go to the Dashboard https://dashboard.stripe.com/test/dashboard
On the left side under "subscriptions" go to "plans"
Create a plan.
Go back to your virtual envrionment and write the following management command in the consolepython manage.py sync_plans
Once this is done you should be able to see your plans. Let me know if that works.

Related

Google reCAPTCHA: how to generate captcha token on the server side

I've added the Google reCAPTCHA enterprise to my auth endpoints, and now I want to cover them by integration tests. To do so, I need to generate a valid token and pass it to requests. But I can't find in the docs how to do that, they only offer to create a separate reCAPTCHA key for testing environment which is not suitable for me, because I want to test production too.
I am not sure if I understood you, but I utilized test keys for testing Recaptcha using Cypress , here you can find them and more information about what you want
Copied from some source
Hello,
If you’re getting new reCaptcha keys each time you create a site then I’m afraid to say you’re doing so improperly for this scenario. Hopefully, the below instructions can help:
Log into your Google Admin Console.
Browse to the API key that you have set for your website. If you have more than 1 reCaptcha in your Admin Console you may need to click the dropdown next to the “You have ‘x’ site(s)”.
Once you’ve found your specific reCaptcha API, you’ll want to click the Settings gear icon at the top right. This will bring you to your API settings where you can grab your reCaptcha keys and add additional domains to the allow-list.
On the Settings screen you should see a list of domains in an allow-list with an input box to enter additional domains. There should be a plus sign next to this input box. Enter your domain and click the plus sign.
Finally, scroll to the bottom of the page and click the blue “Save” button. This will tell Google to apply your changes and may take up to 5 minutes to be put into place.
This will tell Google to allow the same reCaptcha keys for multiple domains specified in this allow-list on the Settings page. For further help, we’ve created an Imgur Album of a few screenshots that may help you along your way:
https://imgur.com/a/aT8J6Uu
Hopefully, with the above instructions, you’ll be able to add in your additional domains to the allow list. Should you need further assistance, we suggest reaching out to Google G Suite Admin Support.
Hope it will solve your issue
If it still didn't work in your scenario you can use the dynamic way of applying keys like saving keys into the Environment variable and based on the current environment it will be changed dynamically

Embed Power BI content into an application for your organization users - Need Admin Approval Error

We are trying to embed PowerBI report in the website and we have followed the step from below link.
https://learn.microsoft.com/en-us/power-bi/developer/embed-sample-for-your-organization
We have download the User Owns Data sample from GitHub to get started. Now, We are getting below error while running the application.
https://oxcrx34285.i.lithium.com/t5/image/serverpage/image-id/181463i44C126096E9419F3/image-size/large?v=1.0&px=999
SAT Report 5 app created on Azure --> App Registration and It's having following permissions.
https://oxcrx34285.i.lithium.com/t5/image/serverpage/image-id/181462i5D003092A86DE647/image-size/large?v=1.0&px=999
As we got an error of need admin approval, Do we need to set up the app using Admin login?
On portal.azure.com, got to App Registrations and select your application. Under Manage click the API Permissions link. On the bottom of this page there is a Grant Admin Consent button. If you dont see the button you dont have permission and will have to connect with whoever manages your tenant.

How to configure wagtail to log admin actions

Our team at 18F is working on requirements to obtain an Authority to Operate (ATO). We use Wagtail for our CMS and we currently have the need to log Admin actions. Django should provide this functionality (and should write logs to the table django_admin_log). However it seems that Wagtail is not logging any Admin actions to that table. We really need this capability, is there a configuration we are missing to make this happen, or is a code change/modification needed. Thanks for any assistance.
At the moment, Wagtail do not record user's activity in the admin UI, but there is a feature request for this.
You can submit a pull request to add this functionality, if you wish.

Creating a login for PowerBI dashboard?

I need to create a dashboard but I don't want it to be seen by everyone and I need to create a login form for that.
Option 1 : I can create a asp.net page for login and after successful login I can show the dashboard.
Option 2: Which I want to know that- Does PowerBI contains some login kind of functionality so that I don't need to upload a .net web page !!
Can someone provide me the link or tutorial for the same?
Thanks for the help.
Option 1 : I can create a asp.net page for login and after successful login I can show the dashboard.
This wouldn't work because if the person knew the URL of the page, they wouldn't need to defer to your ASP.NET login page and just go straight for the source (once they found out the URL).
The only way I know you can manage private dashboards is by creating workspaces within Power BI which you can provision access to certain users or accounts. This requires you to upgrade to Power BI Pro however and is not offered in the free version.

wso2 dashboard user information recovery

Does the WSO2 dashboard allow for User information recovery? I am looking at it currently, and documentation shows that it allows for users to log in and manage their account. Does the Dashboard also support User Information Recovery, (i.e. resetting the password or finding a forgotten username). And if it does, what values in the configuration file do I need to modify?
Yes it does. Sort of. Here is a sample app that, I'm guessing, the WSO2 folks created.
http://cgchamath.blogspot.com/2013/12/password-recovery-with-wso2-identity.html
The example at the bottom has a readme with how to configure the server. What i did was to add a button to the dashboard login page that loaded the configured sample app, then rebranded the sample to make it look more like the dashboard page.