![](/img/trans.png)
[英]Get Pay Pal Express Checkout details using authorize.net API
[英]Authorize.net C# API. Refund Pay Pal transaction
我使用authprize.net進行auth, capture -> auth, capture continue
Pay Pal付款交易。 我需要獲取原始的Pay Pal唯一交易ID(而不是authprize.net)。 這是我們系統的理想方式,因為客戶具有使用此原始Pay pal ID進行Pay Pay退款的交易代碼。 我試過的
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-信用,但是我收到一個錯誤: http : //prntscr.com/d5rong對於此代碼,我也使用了authorize.net
內部ID。 我不得不說我在沙盒中嘗試過。 那么,我在做什么錯呢? 任何人都可以解釋並提供示例嗎?
根據PayPal Express Checkout功能概述,引用您的評論“是的,但是我進行了沙箱交易”:
由於沙盒不允許結算PayPal交易,因此您將無法測試退款。
https://developer.authorize.net/api/reference/features/paypal.html
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.