2013-04-09 209 views
1

我目前使用PayPal沙盒憑證來測試我的項目。將paypal沙盒賬戶轉換爲真實賬戶

現在我想改變沙箱環境中生活環境,我使用NVP在C#.NET其他需要改變或只是改變「沙箱」到「活」

NVPCallerServices caller = new NVPCallerServices(); 

IAPIProfile profile = ProfileFactory.createSignatureAPIProfile(); 

profile.APIUsername = APIUserName; 
profile.APIPassword = APIPAssword; 
profile.APISignature = APISignature; 
**profile.Environment = "live";** 
caller.APIProfile = profile; 

什麼東西都可以工作

問候,

Dharmesh索蘭奇

回答

1

你需要改變環境,你需要更新你的API憑據refle ct您的真實賬戶。

+0

感謝您的回覆。 所以基本上我需要改變2件東西,將沙箱環境移入現場環境。 1.將SandBox憑證更改爲Live Credentials 2.更改profile.Environment =「live」; 還有什麼我需要改變? 此外我相信基於** profile.Environment ** API端點將自動更改。 有什麼建議嗎? – 2013-04-11 05:41:37

+0

更改環境時,應該自動更改配置文件終結點。這應該是你需要改變的一切,然後設置你的真實賬戶來模仿你開發的測試,比如你是否在賬戶上設置了IPN等等。 – 2013-04-11 13:40:48