asp.net - DoDirectPayment : This transaction cannot be processed due to an invalid merchant configuration

标签 asp.net paypal express-checkout

我是一名商家,想要向访问我网站的客户收费。

我正在调用 DoDirectPayment API,总是收费一次,从不重复计费。

Paypal 正确验证信用卡,当卡信息不正确时给出正确的错误消息,但当它正确并且是时候向客户收费时,它说:

This transaction cannot be processed due to an invalid merchant configuration.

我不明白为什么我在使用 DoDirectPayment API 时会收到此错误消息。

一切似乎都指向“结算协议(protocol)”。这是我必须在 Paypal 中配置的东西吗?

我对另一个 paypal 帐户使用相同的代码并且工作正常。好像我在 Paypal 中缺少配置。

//请求

{"DoDirectPaymentRequestDetails":{"PaymentAction":2,"PaymentDetails":{"OrderTotal":{"currencyID":125,"Value":"29.47"},"ItemTotal":null,"ShippingTotal":null,"HandlingTotal":null,"TaxTotal":null,"OrderDescription":null,"Custom":null,"InvoiceID":null,"ButtonSource":null,"NotifyURL":null,"ShipToAddress":null,"ShippingMethod":0,"ShippingMethodSpecified":false,"ProfileAddressChangeDate":"\/Date(-62135578800000)\/","ProfileAddressChangeDateSpecified":false,"PaymentDetailsItem":null,"InsuranceTotal":null,"ShippingDiscount":null,"InsuranceOptionOffered":null,"AllowedPaymentMethod":0,"AllowedPaymentMethodSpecified":false,"EnhancedPaymentData":null,"SellerDetails":null,"NoteText":null,"TransactionId":null,"PaymentAction":0,"PaymentActionSpecified":false,"PaymentRequestID":null,"OrderURL":null,"SoftDescriptor":null},"CreditCard":{"CreditCardType":1,"CreditCardTypeSpecified":false,"CreditCardNumber":"XXXXXX","ExpMonth":X,"ExpMonthSpecified":true,"ExpYear":201X,"ExpYearSpecified":true,"CardOwner":{"Payer":"","PayerID":"","PayerStatus":1,"PayerStatusSpecified":false,"PayerName":{"Salutation":null,"FirstName":"daniel","MiddleName":null,"LastName":"XXXXX","Suffix":null},"PayerCountry":37,"PayerCountrySpecified":false,"PayerBusiness":null,"Address":{"Name":null,"Street1":"XXXXX","Street2":"d","CityName":"XXXXX","StateOrProvince":"XX","Country":37,"CountrySpecified":true,"CountryName":"CA","Phone":null,"PostalCode":"XXXXX","AddressID":null,"AddressOwner":0,"AddressOwnerSpecified":false,"ExternalAddressID":null,"InternationalName":null,"InternationalStateAndCity":null,"InternationalStreet":null,"AddressStatus":0,"AddressStatusSpecified":false},"ContactPhone":null},"CVV2":"XXX","StartMonth":0,"StartMonthSpecified":false,"StartYear":0,"StartYearSpecified":false,"IssueNumber":null,"ThreeDSecureRequest":null},"IPAddress":"127.0.0.1","MerchantSessionId":"","ReturnFMFDetails":false,"ReturnFMFDetailsSpecified":false},"ReturnFMFDetails":0,"ReturnFMFDetailsSpecified":false,"DetailLevel":null,"ErrorLanguage":null,"Version":"51.0","Any":null}

//响应

{"Amount":{"currencyID":125,"Value":"29.47"},"AVSCode":null,"CVV2Code":null,"TransactionID":null,"PendingReason":0,"PendingReasonSpecified":false,"PaymentStatus":0,"PaymentStatusSpecified":false,"FMFDetails":null,"ThreeDSecureResponse":null,"Timestamp":"\/Date(1375552138000)\/","TimestampSpecified":true,"Ack":1,"CorrelationID":"12d77e0d2b686","Errors":[{"ShortMessage":"Invalid Configuration","LongMessage":"This transaction cannot be processed due to an invalid merchant configuration.","ErrorCode":"10501","SeverityCode":1,"ErrorParameters":null}],"Version":"51.0","Build":"7165512","Any":null}

如有任何帮助,我们将不胜感激!

谢谢

最佳答案

您正在尝试处理信用卡付款,但您的 PayPal 帐户未启用,这就是您从 PayPal 的 DoDirectPayment API 收到“无效商户配置”错误响应的原因。

即使您在问题的标题中提到了“PayPal Express Checkout”,但如果出现此错误,您没有使用 Express Checkout 产品。

如果您所在的国家/地区(美国、英国、加拿大)提供 PayPal Website Payments Pro,您需要注册。

或者,使用 PayPal Express Checkout,它在(几乎)所有国家/地区都可用 PayPal 本身可用并且不需要月费。

关于asp.net - DoDirectPayment : This transaction cannot be processed due to an invalid merchant configuration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18021705/

相关文章:

javascript - asp.net 回发和 javascript/jquery

javascript - 在 css 类不起作用的每个元素上运行 javascript

ruby-on-rails - Paypal-express gem,在开发中工作但不在生产中

ruby-on-rails - 如何使用活跃的商家将 PayPal 连接到 Rails 应用程序?任何教程?

asp.net - 为 nagivationmenu 定制设计

php - 2使用韩元货币结账

javascript - 单击按钮打开 Paypal 数字流量灯箱

使用信用卡付款的 Paypal Express Checkout 订阅

php - 使用启用了 NSS 的 curl 的 paypal merchant sdk

javascript - 如果登录用户未单击,则突出显示网页中的按钮