protected void Submit_Click(object sender, EventArgs e)
        {
            // Create request object
            ReverseTransactionRequestType request = new ReverseTransactionRequestType();
            request.ReverseTransactionRequestDetails = new ReverseTransactionRequestDetailsType();
            request.ReverseTransactionRequestDetails.TransactionID = transactionID.Value;

            // Invoke the API
            ReverseTransactionReq wrapper = new ReverseTransactionReq();
            wrapper.ReverseTransactionRequest = request;

            // Configuration map containing signature credentials and other required configuration.
            // For a full list of configuration parameters refer in wiki page
            // [https://github.com/paypal/sdk-core-dotnet/wiki/SDK-Configuration-Parameters]
            Dictionary<string, string> configurationMap = Configuration.GetAcctAndConfig();

            // Create the PayPalAPIInterfaceServiceService service object to make the API call
            PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService(configurationMap);

            // # API call
            // Invoke the ReverseTransaction method in service wrapper object
            ReverseTransactionResponseType ReverseTransactionResponse = service.ReverseTransaction(wrapper);

            // Check for API return status
            setKeyResponseObjects(service, ReverseTransactionResponse);
        }
Пример #2
0
        protected void Submit_Click(object sender, EventArgs e)
        {
            // Create request object
            ReverseTransactionRequestType request = new ReverseTransactionRequestType();
            request.ReverseTransactionRequestDetails = new ReverseTransactionRequestDetailsType();
            request.ReverseTransactionRequestDetails.TransactionID = transactionID.Value;

            // Invoke the API
            ReverseTransactionReq wrapper = new ReverseTransactionReq();
            wrapper.ReverseTransactionRequest = request;
            PayPalAPIInterfaceServiceService service = new PayPalAPIInterfaceServiceService();
            ReverseTransactionResponseType ReverseTransactionResponse = service.ReverseTransaction(wrapper);

            // Check for API return status
            setKeyResponseObjects(service, ReverseTransactionResponse);
        }