我的Pal Direct笔记在我的机器上是完美的。 两个大学都通过当地东道网站进行测试。 然而,第1行的代码在我的服务器和另一个服务器上失效。 (充分信任)
CallerServices caller = new CallerServices();
Message: The type initializer for com.paypal.sdk.core.soap.SOAPAPICaller threw an exception. Source: paypal_base
追查:
at com.paypal.sdk.core.soap.SOAPAPICaller..ctor() at com.paypal.sdk.services.CallerServices..ctor() at TS.Common.BusinessLogic.PaymentGateways.PayPalProController.CChargeCard(String paymentAmount, Order CurrentOrder, String creditCardType, String creditCardNumber, String CVV2, String expMonth, String expYear, PaymentActionCodeType paymentAction, Transaction& transaction) at TS.Common.BusinessLogic.PaymentGateways.PayPalProController.ChargeCard(Order CurrentOrder, Decimal Amount, String CreditCardNum, String ExpMonth, String ExpYear, String SecurityNumber, Transaction& transaction) at OrderController.SubmitCreditCardPayment(Order order, Decimal ChargeAmount, String CreditCardNum, String ExpMonth, String ExpYear, String Var, String CardType, Transaction& transaction) at OrderController.SubmitOrder(Order order, Transaction& transaction, Nullable`1 GiftCertId, String CreditCardNum, String ExpMonth, String ExpYear, String Var, String CardType, String Culture) at Checkout.btnOrder_Click(Object sender, EventArgs e) in d:Inetpub icketsCheckout.aspx.cs:line 488