Authorize.net C#API。退款Pay Pal交易

时间:2016-11-11 01:51:20

标签: c# paypal transactions authorize.net

我使用authprize.net进行auth, capture -> auth, capture continue Pay Pal付款交易。我需要获得原始的Pay Pal唯一交易ID(不是authprize.net)。这是我们系统的理想方式,因为客户有使用此原始支付账户ID退款Pay Pal交易的代码。我尝试了什么:

 ApiOperationBase<ANetApiRequest, ANetApiResponse>.RunEnvironment = AuthorizeNet.Environment.SANDBOX;               
            ApiOperationBase<ANetApiRequest, ANetApiResponse>.MerchantAuthentication = new merchantAuthenticationType()
            {
                name = _apiLogin,
                ItemElementName = ItemChoiceType.transactionKey,
                Item = _transactionKey,
            };
            var request = new getTransactionDetailsRequest();
            request.transId = transactionId;
            var controller = new getTransactionDetailsController(request);
            controller.Execute();
            var response = controller.GetApiResponse();

但我只看到日期或金额等一般信息。然后我尝试使用以下代码示例退还Pay Pal交易:http://developer.authorize.net/api/reference/index.html#paypal-express-checkout-credit 但是我收到了一条错误:http://prntscr.com/d5rong对于此代码,我也使用了authorize.net内部ID。我不得不说我在沙盒中尝试过。那么,我做错了什么?请问任何人解释并提供示例吗?

1 个答案:

答案 0 :(得分:0)

根据PayPal Express Checkout功能概述,引用您的评论“是的,但是我进行了沙箱交易”:

  

由于沙盒不允许结算PayPal交易,因此您   将无法测试退款。

https://developer.authorize.net/api/reference/features/paypal.html

相关问题