我的 PayPal Direct 脚本在我的机器上完美运行。nUnit 测试和通过本地主机上的网站进行测试。但是,这第一行代码在我的服务器和另一台服务器上失败。(双方完全信任)
CallerServices caller = new CallerServices();
消息:“com.paypal.sdk.core.soap.SOAPAPICaller”的类型初始化程序引发了异常。 来源:paypal_base
堆栈跟踪:
在 com.paypal.sdk.core.soap.SOAPAPICaller..ctor() 在 com.paypal.sdk.services.CallerServices..ctor() 在 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,在 OrderController.SubmitCreditCardPayment(订单订单,十进制 ChargeAmount,字符串 CreditCardNum,字符串 ExpMonth,字符串 ExpYear,字符串 Var,字符串 CardType,交易和交易)在 OrderController.SubmitOrder(订单订单,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\tickets\Checkout.aspx.cs :第488行