设置新帐户网站付款专业帐户

时间:2015-01-28 21:12:36

标签: soap paypal

我已注册并创建了一个paypal开发人员和沙盒帐户。我正在寻找使用网站付款流程开发支付解决方案,该解决方案将接受信用卡付款以及Paypal快速结账。我计划开发一个SOAP解决方案,并准备我的第一个DoDirectPayment请求。但是,当我尝试提交请求时,无论我在SOAP正文中传递了什么值,我都会继续得到响应

<SOAP-ENV:Envelope xmlns:SOAP-    ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:wsu="http://schemas.xmlsoap.org/ws/2002/07/utility" xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:wsse="http://schemas.xmlsoap.org/ws/2002/12/secext" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:ns="urn:ebay:api:PayPalAPI">
   <SOAP-ENV:Header>
      <Security xsi:type="wsse:SecurityType" xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext"/>
      <RequesterCredentials xsi:type="ebl:CustomSecurityHeaderType" xmlns="urn:ebay:api:PayPalAPI">
         <Credentials xsi:type="ebl:UserIdPasswordType" xmlns="urn:ebay:apis:eBLBaseComponents">
            <Username xsi:type="xs:string">my_API_username</Username>
            <Password xsi:type="xs:string">my_API_password</Password>
            <Signature xsi:type="xs:string">my_API_signature</Signature>
            <Subject xsi:type="xs:string">?</Subject>
            <AuthToken xsi:type="xs:string">?</AuthToken>
         </Credentials>
      </RequesterCredentials>
   </SOAP-ENV:Header>
   <SOAP-ENV:Body id="_0">
      <SOAP-ENV:Fault>
         <faultcode>SOAP-ENV:Client</faultcode>
         <faultstring>Data type '' mismatch in element 'urn1:AddressOwner'</faultstring>
      </SOAP-ENV:Fault>
   </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

0 个答案:

没有答案