QuickBooks支付集成 [英] QuickBooks payment Integration
问题描述
客户CreditCard Wallet从Asp.net mvc向QuickBooks添加请求
我试图将客户信用卡详细信息添加到C#asp.net mvc的quickbooks中。我有写下面的函数。但我很困惑,要求客户的信用卡详细信息,以便将来使用以及如何从代码生成accessToken和AccessToken Secret。主要的疑问是如何请求客户CreditCard WalletAdd请求。
< pre lang =C#> public static void test()
{
string accessToken = 12432543252345\" 跨度>;
string accessTokenSecret = 5b1cb122b340db43d4bae6bb880c8a284499跨度>;
string consumerKey = qyprdWTsI8u6Qq3fwiIUvkweM2mabZ跨度>;
string consumerSecret = 9KH9mFlGy5CPSUQCOV2lM3lHGs05AK5TtdS0QLWv跨度>;
OAuthRequestValidator oauthValidator = new OAuthRequestValidator(
accessToken,accessTokenSecret,consumerKey,consumerSecret);
string appToken = 5b1cb122b340db43d4bae6bb880c8a28449\" 跨度>;
string companyID = 32534654跨度>;
ServiceContext context = new ServiceContext(appToken,companyID,IntuitServicesType.QBO,oauthValidator);
DataService service = new DataService(context);
客户客户= 新客户
{
GivenName = Mary,
Title = Ms。,
MiddleName = Jayne,
FamilyName = Cooper,
Id = 1234214
};
// 必填字段
customer.CCDetail.Number = 444747447474474;
customer.CCDetail.CcExpiryMonth = 12 ;
customer.CCDetail.CcExpiryYear = 2018 ;
客户resultCustomer = service.Add(客户) as 客户;
} 为什么不试试QuickBooks网站寻求支持?你很可能会得到那里的支持。
QuickBooks Tutorials [ ^ ]
或者这是一个更好的选择: QUICKBOOKS ONLINE API C#/ VB.NET CODE示例 [ ^ ]
Customer CreditCard WalletAdd request to QuickBooks from Asp.net mvc
I was trying to add customer credit card details to quickbooks from C# asp.net mvc.I have written below function.But i have confused to request customer credit card details to future uses and how to generate accessToken and AccessToken Secret from the Code.The major doubt is how to request Customer CreditCard WalletAdd request.
public static void test()
{
string accessToken = "12432543252345";
string accessTokenSecret = "5b1cb122b340db43d4bae6bb880c8a284499";
string consumerKey = "qyprdWTsI8u6Qq3fwiIUvkweM2mabZ";
string consumerSecret = "9KH9mFlGy5CPSUQCOV2lM3lHGs05AK5TtdS0QLWv";
OAuthRequestValidator oauthValidator = new OAuthRequestValidator(
accessToken, accessTokenSecret, consumerKey, consumerSecret);
string appToken = "5b1cb122b340db43d4bae6bb880c8a28449";
string companyID = "32534654";
ServiceContext context = new ServiceContext(appToken, companyID, IntuitServicesType.QBO, oauthValidator);
DataService service = new DataService(context);
Customer customer = new Customer
{
GivenName = "Mary",
Title = "Ms.",
MiddleName = "Jayne",
FamilyName = "Cooper",
Id = "1234214"
};
//Mandatory Fields
customer.CCDetail.Number = "444747447474474";
customer.CCDetail.CcExpiryMonth = 12;
customer.CCDetail.CcExpiryYear = 2018;
Customer resultCustomer = service.Add(customer) as Customer;
}
Why not try the QuickBooks website for support? It is more likely that you will get support there.
QuickBooks Tutorials[^]
or maybe this is a better option: QUICKBOOKS ONLINE API C#/VB.NET CODE EXAMPLES[^]
这篇关于QuickBooks支付集成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!