カミソリ Web アプリケーションでPaypal Helper ライブラリを使用しました。
_AppStart.cshtml
@{
PayPal.Profile.Initialize(
"XXXXXXXXXXXXXX.gmail.com",
"XXXXXXXXXX",
"xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx", "sandbox");
// General Adaptive Payments’ properties
PayPal.Profile.Language = "en_US";
PayPal.Profile.CancelUrl = "http://mywebsite.com";
PayPal.Profile.ReturnUrl = "http://mywebsite.com/PaypalReturn.cshtml";
PayPal.Profile.IpnUrl = "http://mywebsite.com/PaypalReturn.cshtml";
PayPal.Profile.CurrencyCode = "USD";
}
Subscribe.cshtml
@{
var payPalButton = PayPal.ButtonManager.SubscribeButton.Create(
business: "myname@merchant.com",
itemName: "Subscribe to premium account",
a3: "10.00",
p3: "1",
t3: "M");
HtmlString payPalButtonHtml = new HtmlString(payPalButton.WebSiteCode);
}
@payPalButtonHtml
しかし、それはエラーをスローします:
無効な引数 - 指定された電子メールまたはマーチャント ID が無効です。(エラーコード: 11928)
何が問題なのか教えてもらえますか?
ありがとう