I want to create Custom Accounts in stripe so that I can managed it by my own platform. i have created platform on stripe. I am using stripe.Net for this purpose. I have created several account using this code :
var account = new StripeAccountCreateOptions
{
Email = customer.Email,
Managed = true,
Country = customer.Country.ToString(),
BusinessName = customer.BussinessName,
BusinessUrl = customer.BussinessUrl,
LegalEntity = new StripeAccountLegalEntityOptions()
{
FirstName = "imran",
LastName = "shahid",
BirthDay = 20,
BirthMonth = 3,
BirthYear = 1993,
Type = "individual",
AddressCity = "new york",
AddressPostalCode = "12345",
AddressLine1 = "kalma chok",
AddressState = "new york",
SSNLast4 = "5467",
PersonalIdNumber = "127.0.0.1"
},
TosAcceptanceDate = DateTime.Today,
TosAcceptanceIp = "127.0.0.1",
ExternalCardAccount = new StripeAccountCardOptions()
{
AddressCity = "abc",
AddressCountry = "US",
Currency = "usd",
Number = "4000056655665556",
ExpirationYear = "2020",
ExpirationMonth = "03",
Cvc = "123"
},
};
var accountService = new StripeAccountService();
StripeAccount response = accountService.Create(account);
but when i visited website all accounts are unverified.
and for payments i am using this code
var myCharge = new StripeChargeCreateOptions
{
Amount = 1000,
Currency = "usd",
Description = "Charge it like it's hot",
SourceTokenOrExistingSourceId = "*SourceTokenOrExistingSourceId*",
ApplicationFee = 25,
Capture = true
};
var chargeService = new StripeChargeService();
StripeCharge stripeCharge = chargeService.Create(myCharge);
How to get SourceTokenOrExistingSourceId? actually I want to deduct money from one customer and transfer it to my account and then I also want to transfer money from my account to customers account. I am not getting proper tutorial or any sample code for this purpose. can you help me out? I just want to do 3 things
1) creating verified managed account
2) charge customer(custom account)
3) transfer money to Customer(custom account)