Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/25.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net paypal沙盒退款交易未显示_.net_Api_Soap_Paypal_Paypal Sandbox - Fatal编程技术网

.net paypal沙盒退款交易未显示

.net paypal沙盒退款交易未显示,.net,api,soap,paypal,paypal-sandbox,.net,Api,Soap,Paypal,Paypal Sandbox,我正在尝试将paypal退款集成到我们的web应用程序中。我们使用的是一个非常旧的经典API版本(v2.3)。它正在进行授权和捕获支付。这里有一些细节 贝宝经典API NPV 有一个用于测试的沙箱帐户 授权和捕获支付通过带有用户名、密码和签名的外商投资企业进行 在沙盒帐户上,付款状态始终处于挂起状态,并且从未移动到完成状态。 当我尝试使用全额或部分退款时,我会使用ACK=success和Correlation id。但sanbox门户上没有显示任何内容。这是我用来退款的代码 'build th

我正在尝试将paypal退款集成到我们的web应用程序中。我们使用的是一个非常旧的经典API版本(v2.3)。它正在进行授权和捕获支付。这里有一些细节

  • 贝宝经典API NPV
  • 有一个用于测试的沙箱帐户
  • 授权和捕获支付通过带有用户名、密码和签名的外商投资企业进行
  • 在沙盒帐户上,付款状态始终处于挂起状态,并且从未移动到完成状态。 当我尝试使用全额或部分退款时,我会使用ACK=success和Correlation id。但sanbox门户上没有显示任何内容。这是我用来退款的代码

     'build the request string to process one paypal refund
                            pp = "&METHOD=RefundTransaction"
                            pp = pp & "&TRANSACTIONID=" & transactionId
                            pp = pp & "&REFUNDTYPE=PARTIAL"
                            pp = pp & "&AMT=" & Math.Round(amount, 2)
                            pp = pp & "&CURRENCYCODE=USD"
                            pp = pp & "&NOTE=Refund " & refundRow("Store") & "Order " & refundRow("OrderNo").ToString
    
    我得到一个回应,是这样的

    答复内容:

    BUILD 13443xxx
    VERSION 2.3
    ACK Success
    TIMESTAMP 2014-10-23T16:44:36Z
    CORELATIONID exxxx7e2dxxxx
    
    我总是获得成功,但当我登录到沙盒门户时,什么也没有显示

    我也在现场测试了几次退款。它有完全相同的问题

    有什么意见吗

    部分退款请求和响应

    要求
    
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
    O-xxxxxxxxxxxxxxxxxxxxxxxx
    部分的
    7.
    94
    
    回应
    
    2014-10-25T06:07:08Z
    成功
    45XXXXXXXXXX
    94
    1xxxxx4
    -7.00
    没有一个
    没有一个
    
    好的,我在PayPal技术支持团队的帮助下解决了这个问题

    基本上有两种类型的事务ID。一个是我们调用DoAuthorize时得到的,另一个是我们调用DoCapture时得到的。所有退款都可以使用后者(DoCapture)交易Id

    帮助链接:

    虽然我得到了答案,但当我们从DoAuthorize调用中调用事务Id为的ReturnTransaction API时,我对得到的响应不是特别满意。我返回成功?????还有一个关系id。但是账户中没有显示任何内容


    PayPal技术团队,如果你偶然发现这篇文章,请他们要么纠正问题,要么解释为什么它有意义。

    有些事情不对劲了。如果付款总是悬而未决,而且从未完成,那么您将无法获得退款请求的成功响应。您能否发布原始付款请求和回复的样本,然后再发布退款请求和回复的样本?不是生成它的代码,而是实际的原始API请求/响应。。有时付款会进入完成状态。。。不幸的是,我确实有原始付款授权和捕获的请求和响应。我已经用部分退款的请求和响应数据更新了我的帖子。。
    <soapenv:Envelope  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"  xmlns:ns="urn:ebay:api:PayPalAPI" xmlns:ebl="urn:ebay:apis:eBLBaseComponents" xmlns:cc="urn:ebay:apis:CoreComponentTypes" xmlns:ed="urn:ebay:apis:EnhancedDataTypes" >
      <soapenv:Header>
        <ns:RequesterCredentials>
          <ebl:Credentials>
            <ebl:Username>XXXXXXXXXXXXXXXXXXXXXXXXXXXX</ebl:Username>
            <ebl:Password>XXXXXXXXXXXXXXXXXXXXXXXXXXXX</ebl:Password>
            <ebl:Signature>XXXXXXXXXXXXXXXXXXXXXXXXXXXX</ebl:Signature>
          </ebl:Credentials>
        </ns:RequesterCredentials>
      </soapenv:Header>
      <soapenv:Body>
        <ns:RefundTransactionReq>
          <ns:RefundTransactionRequest>
            <ns:TransactionID>O-XXXXXXXXXXXXXXXXXXXXXXXXXXXX</ns:TransactionID>
            <ns:RefundType>Partial</ns:RefundType>
            <ns:Amount currencyID="USD">7</ns:Amount>
            <ebl:Version>94.0</ebl:Version>
          </ns:RefundTransactionRequest>
        </ns:RefundTransactionReq>
      </soapenv:Body>
    </soapenv:Envelope>
    
    <?xml version="1.0" encoding="UTF-8"?>
    <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 xmlns="http://schemas.xmlsoap.org/ws/2002/12/secext" xsi:type="wsse:SecurityType">
        </Security>
        <RequesterCredentials xmlns="urn:ebay:api:PayPalAPI" xsi:type="ebl:CustomSecurityHeaderType">
          <Credentials xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:UserIdPasswordType">
            <Username xsi:type="xs:string">
            </Username>
            <Password xsi:type="xs:string">
            </Password>
            <Signature xsi:type="xs:string">
            </Signature>
            <Subject xsi:type="xs:string">
            </Subject>
          </Credentials>
        </RequesterCredentials>
      </SOAP-ENV:Header>
      <SOAP-ENV:Body id="_0">
        <RefundTransactionResponse xmlns="urn:ebay:api:PayPalAPI">
          <Timestamp xmlns="urn:ebay:apis:eBLBaseComponents">2014-10-25T06:07:08Z</Timestamp>
          <Ack xmlns="urn:ebay:apis:eBLBaseComponents">Success</Ack>
          <CorrelationID xmlns="urn:ebay:apis:eBLBaseComponents">45xxxxxxxxxxx</CorrelationID>
          <Version xmlns="urn:ebay:apis:eBLBaseComponents">94.0</Version>
          <Build xmlns="urn:ebay:apis:eBLBaseComponents">1xxxxx4</Build>
          <RefundTransactionID>
          </RefundTransactionID>
          <TotalRefundedAmount xsi:type="cc:BasicAmountType" currencyID="USD">-7.00</TotalRefundedAmount>
          <RefundInfo xmlns="urn:ebay:apis:eBLBaseComponents" xsi:type="ebl:RefundInfoType">
            <RefundStatus xsi:type="ebl:PaymentStatusCodeType">None</RefundStatus>
            <PendingReason xsi:type="ebl:PendingStatusCodeType">none</PendingReason>
          </RefundInfo>
        </RefundTransactionResponse>
      </SOAP-ENV:Body>
    </SOAP-ENV:Envelope>