Stripe customer details with subscription - stripe-customers

As I am using the two different accounts for the stripe " live / test "
while using the
\Stripe\Customer::retrieve($customer_id);
I am getting different responses .
On test account I am getting only customer details and on live account I am getting the customer details and also getting all the subscriptions as well I need to have list of subscriptions along with the details on test account . do I need to update some thing in stripe dashboard ?

Related

Power apps. Retrieve values of record with multiple choices in SharePoint list column for a dropdown box

For reference I have recreated this app https://www.matthewdevaney.com/make-a-power-apps-approvals-form/
I changed the equipment column to have multiple values and now some code dosent work because the entry is not a record anymore. I think it is a table now.
I have some code for e.g here;
ViewForm(frm_Request);
Set(varRequest, frm_Request.LastSubmit);
If(varRequest.Status.Value="Submitted",
Office365Outlook.SendEmailV2(
varRequest.Manager.Email,
"IT Equipment Request - Approval Required",
"An I/T equipment request was made for a "&varRequest.Equipment.Value&" by "&varRequest.Employee.DisplayName&". Click here to approve/reject the request."
)
)
at &varRequest.Equipment.Value& (.Value) has an error "expecting record value"
I tried changing this to concat(varRequest.equipment, Value & ",") But it seems to create errors when running the app
Is there a work around for this ?
Im very new to coding and power apps in general so sorry if this is missing any details.
Image of error when running the app after adding concat()

Store data from two forms

I have two html pages for registration, first contains Personal Details and second contains contact details. I need to get data from first and second page and store it in database.
app.py - https://pastebin.com/d9Jbx9VL
preg1 - https://pastebin.com/qcPpUN5s
preg2 - https://pastebin.com/Kppcr8sN
The methods to check in app.py are /p_reg1 and /p_reg2
After clicking the 'Next' button in first page,the data is shown in the address bar. But after submitting it in the second page, data from first page is inserted as 'NONE' to database.
https://i.imgur.com/FFJDOPV.jpg
you taged sql.
sql solution is :
you should create a view in database for inner join between Personal Details and contact details by Common ID.
for example :
create view vw_myview
select p.name, p.f_name, c.phone_num1, c.phone_num2
from Personal p inner join contact c on contact.id=Personal.id
Other methods are also available.
Explain more.

SSRS When uploading report owner name is wrong

I have SQL 2014 professional version 12.0.5000.0 with SSRS runing. eI have created a report in report builder 3.0 which works and runs find.
However when I go to create a subscription and run I get the user a1234 (as a example ) don't exist.
I looked there is no user with that name added to SSRS or in our domain.
my user name is ah1234 (as a example )
I looked in the subscription table and the owner is me ? However, the subscription is showing the owner as a1234?
I checked the report I uploaded it says the owner is a1234.
I'm thinking it might be a active directory issue but not sure.
Has anyone has see this before if so how can I fix the owner name of the subscription?
I don't know how SSRS has corrupted the owner name but here is a trick (written on 2008 R2) to correct owner names (I use this when people leave & their Active Directory user id gets deleted leaving orphaned subs that will not run).
Note that it updates the Microsoft-supplied subscriptions table, you may not wish to do that.
First identify the SSRS owner id for the from-person & also that of the to-person (you may need to get the to-person to create a subscription first):
SELECT distinct [OwnerID], u.username
FROM [<ssrs-database>].[dbo].[Subscriptions] s
join [<ssrs-database>].[dbo].[Users] u on s.ownerid = u.userid
Now make a safe copy of the subscriptions list, e.g.:
SELECT * into temp.subscriptionscpy
FROM [<ssrs-database>].[dbo].[Subscriptions] s
Now make the change, e.g. (this one changes the owner of all relevant subs):
update [<ssrs-database>].[dbo].[Subscriptions]
set ownerid = 'DDD87598-8957-42C8-8DBC-A893E7174CB6'
where ownerid = 'EBF0E483-69E6-4458-B171-BA28FFCCDF3F'
Now check the owner is as you want it.

How to hide tax , shipping & handling from cart and checkout

I am using Magento version: 1.9.2.2
I want to hide tax, shipping and handling from cart and checkout page of my app but didn't get any success been trying from last two days.
Followed some solutions(links attached) from the forums and various Websites but not getting any success for this please help to find any solution for this.
links which I've followed for this:
didn't work:
https://magento.stackexchange.com/questions/31603/how-to-remove-tax-from-cart-page,
https://magento.stackexchange.com/questions/54375/how-do-i-remove-total-excl-tax-from-cart-review-page
almost done the trick but tax appeared as soon as I logged in https://magento.stackexchange.com/a/63352 ,
Worked for a short period of time tax magically reappeared after some time
http://michaelsavin.com/magento-hide-tax-summary-from-cartcheckout/
Open admin panel, go to system > configuration > sales > tax > order, Invoices, Credits Memos display settings
then set Display full Tax Summery : No

Expression in a report

I have a report that shows the way people have contacted our business - phone, email etc. When people run the report, they choose the contact method via a drop down parameter. They can select one / many / all contact methods.
I have added a chart to my report that shows top 10s by contact method - basically why did people contact us.
In order to be reasonably dynamic, I have added this expression to the title of the chart:
="Top 10 contact reasons:" + " " + Parameters!Contact.Value(0)
This works fine when one contact method is chosen, but not more than one.
Ideally I'd like the title to say, if someone has chosen more than one contact method (say phone and email):
"Top 10 contact reasons: phone and email"
At the moment it just shows one value, because my expression isn't dynamic enough to include more than one choice.
If anyone has any suggestions to improve my expression, I'd be very grateful.
Thanks.
="Top 10 contact reasons:" + " " + join(Parameters!Contact.Value,",")