How we can get onboard id on basis of stripe account ID? - stripe-payments

I want to integrate another link from stripe on our backend dashboard for onboarding/linking existing "Standard" accounts.
I just want to create a dynamic onboarding account link like https://connect.stripe.com/oauth/authorize?redirect_uri=https://connect.stripe.com/hosted/oauth&client_id='client_id'&state='onboard_id'&response_type=code&scope=read_write&stripe_user[country]=US via API
Can anyone please help me to find out the way like how we can get above link in response of API?
I have already tried to check with below link https://stripe.com/docs/api/account_links/create

If by "account ID" you mean the client_id query parameter, then it can be found in your Stripe dashboard at the bottom of the Connect settings page. I don't think this can be retrieved with the API, but this ID won't change so you can grab it from the dashboard and store it on your end to reuse it later.

Related

Adding user to the Azure AD group from a Slack form

I'm interested in triggering a process where based on a Slack form, user is added to Azure AD group. There is an API method for Azure to add a user to a group so from AD side I believe that shouldn't be big of an issue, but I'm interested in Slack part. Would Slack be able to send an API call with a user email address to an API endpoint?
So theoretically speaking it would work like this:
Someone fills out Slack form with a User field
Slack will pick up an email address of a user
Slack will somehow send this information to a MS Graph and fill out Email Address in an API Call
`
{
"#odata.id": "https://graph.microsoft.com/v1.0/users/EmailAddressFromSlack"
}
`
4. User is added to a Azure Group
I'm kind of a beginner so I'm sorry if some details or info is not clear and I'm actually not sure if something like this can be done but if you have any ideas how to proceed, I'm open to suggestions.
Thank you in advance.

Can I find if a user subscription is active or not with their email in stripe?

I am trying to create subscription for my app. My plan is to :
(1)Ask email and phone , save it in their pc.
(2)show details about 2 subscription plans (monthly,yearly)
(3)creating a button for both and sharing subscription link created by stripe (automatically stripe does that)
(4)Check user have active subscription either in monthly or yearly.
(5)if yes continue to app, else show the page with details.
Now I want to know how to know that if that user have active subscription or not with only their email and phone number.(without stripe customer id)
And also I don't want to use html , js in my app that's why I am choosing python for this.
Thanks in advance whoever going to help me.
You can list Customers in the Stripe API and filtering by the email parameter. This will give you an array of Customers with that email address.
You can then list Subscriptions on those Customers using the customer parameter.
You can use auto-pagination to iterate through the "pages" of lists you get back from the API (the limit parameter on list API calls defaults to 10).

How do I find account id from a DocuSign account?

This is my scenario: I have clients who have their accounts with DocuSign. They want to record the documents information onto our app. Our app would have to call DocuSign to "import" envelope data into our app. We will need account_id to call the Rest API /envelopes, etc...
How do our clients find their account_id to give to our app?
The client need to go to the apps and keys page and find where it says API Account ID and copy the value (There's even a little icon to copy it to your clipboard).
Note that only administrators can access the above page, so your client admin must do this.

Is it possible to retrieve an organization, position or any facebook wokplace profile information using webhooks and not account management API?

Please help. I would like to verify if webhooks from Graph API can retrieve the following fields:
1. Organization
2. Position
3. Department
4. Manager
If not, is it only limited to webhook events indicated in this link, https://developers.facebook.com/docs/messenger-platform/webhook#response ?
the webhook sends only the fields specified in the link that you have posted.
To retrieve all the others information, you can use the Graph APIs.

Save stripe customer details for a project

I am working on a project where I have integrated stripe connect which is working fine, but now the problem is how I can check that returned details on redirect url are for a specific project.
Projects functions as follows.
1.Registered users add Non-Profit.
2.Connect to their stripe account to accept payments.
Stripe connect button has been placed on project addition page, users clicks on it and returned to a url (given in application) with connected users details, but on this page I have lost the project id for which user was connecting stripe account so I cant save it in database ( i assume that they needs to be saved in database to use at time of donation).
Am I doing something wrong ?
Is there any other way to get it done ?
I have used https://gist.github.com/amfeng/3507366 as reference.
After trying different code approaches and code samples available on net I found that we can use state parameter to get the respective id to which you want to connect the stripe account.
On my application iu https://connect.stripe.com/oauth/authorize?response_type=code&scope=read_write&client_id=CLIENT_ID&state=705 where state is the user ID to connect with.
To open authorization window I used window popup and connect to stripe account by filling details after authorization popup window is closed and then I used $_GET to get user id and saved it in database.

Resources