cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to get the splitTenderID from response through c# SDK

I am trying to apply tip process for restaurants through authorize.net and we need to charge Tip from customer without new transaction. We are using your SDK and but not able to get the splitTenderID from response. We are using the following code:

 

  var request3 = new CardPresentAuthorizationRequest(Convert.ToDecimal(txtAmount.Text), txtTrack1.Text.Trim(), txtTrack2.Text.Trim());

                   

                    request3.AllowPartialAuth = "True";

                    //request3.Queue("x_allow_partial_auth", "True");

                    //request3.Add

                    //request3.

                    //step 2 - create the gateway, sending in your credentials

                    gate = new CardPresentGateway("6Y8r6jWA", "8x2z4834mZaZM9Da", true);

                   // gate.TestMode = true;

                    //step 3 - make some money

                    response = (CardPresentResponse)gate.Send(request3);

 

Receive response is:

Amount: 0
Approved: True
AuthorizationCode: DQY35Z
AVSResponse: Address (Street) and five digit ZIP match
CardCodeResponse: No result
CardNumber: XXXX0027
InvoiceNumber:
MD5Hash: FAD736962720680732C4C5A7F7B8B5D2
Message: This transaction has been approved.
RemainingBalanceOnCard: 0
RequestedAmount: 0
ResponseCode: 1
SplitTenderID:
TransactionID: 2194794103
UserReference:

 

Please help me to get the “SplitTenderID” output so it can be used for later transaction to charge tip or can you please help us to find the sample code for the same.

anujjha1
Member
5 REPLIES 5
RaynorC1emen7
Expert

please help me to get the splitTenderID to complete the CustomerPaymentProfile....

 

 

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="https://api.authorize.net/soap/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:CreateCustomerProfileTransaction>
<!--Optional:-->
<v1:merchantAuthentication>
<!--Optional:-->
<v1:name>96xY4UmpYx</v1:name>
<!--Optional:-->
<v1:transactionKey>9PeV8trX9498sDn7</v1:transactionKey>
</v1:merchantAuthentication>
<!--Optional:-->
<v1:transaction>
<!--You have a CHOICE of the next 6 items at this level-->
<!--Optional:-->
<v1:profileTransRefund>
<v1:amount>10.00</v1:amount>
<!--Optional:-->
<v1:tax>
<v1:amount>20.00</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:tax>
<!--Optional:-->
<v1:shipping>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:shipping>
<!--Optional:-->
<v1:duty>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:duty>
<!--Zero or more repetitions:-->
<v1:lineItems>
<!--Optional:-->
<v1:itemId>?</v1:itemId>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
<v1:quantity>?</v1:quantity>
<v1:unitPrice>?</v1:unitPrice>
<!--Optional:-->
<v1:taxable>?</v1:taxable>
</v1:lineItems>
<!--Optional:-->
<v1:customerProfileId>?</v1:customerProfileId>
<!--Optional:-->
<v1:customerPaymentProfileId>?</v1:customerPaymentProfileId>
<!--Optional:-->
<v1:customerShippingAddressId>?</v1:customerShippingAddressId>
<!--Optional:-->
<v1:creditCardNumberMasked>?</v1:creditCardNumberMasked>
<!--Optional:-->
<v1:bankRoutingNumberMasked>?</v1:bankRoutingNumberMasked>
<!--Optional:-->
<v1:bankAccountNumberMasked>?</v1:bankAccountNumberMasked>
<!--Optional:-->
<v1:order>
<!--Optional:-->
<v1:invoiceNumber>?</v1:invoiceNumber>
<!--Optional:-->
<v1:description>?</v1:description>
<!--Optional:-->
<v1:purchaseOrderNumber>?</v1:purchaseOrderNumber>
</v1:order>
<!--Optional:-->
<v1:transId>?</v1:transId>
</v1:profileTransRefund>
<!--Optional:-->
<v1:profileTransAuthCapture>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:tax>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:tax>
<!--Optional:-->
<v1:shipping>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:shipping>
<!--Optional:-->
<v1:duty>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:duty>
<!--Zero or more repetitions:-->
<v1:lineItems>
<!--Optional:-->
<v1:itemId>?</v1:itemId>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
<v1:quantity>?</v1:quantity>
<v1:unitPrice>?</v1:unitPrice>
<!--Optional:-->
<v1:taxable>?</v1:taxable>
</v1:lineItems>
<v1:customerProfileId>?</v1:customerProfileId>
<v1:customerPaymentProfileId>?</v1:customerPaymentProfileId>
<!--Optional:-->
<v1:customerShippingAddressId>?</v1:customerShippingAddressId>
<!--Optional:-->
<v1:order>
<!--Optional:-->
<v1:invoiceNumber>?</v1:invoiceNumber>
<!--Optional:-->
<v1:description>?</v1:description>
<!--Optional:-->
<v1:purchaseOrderNumber>?</v1:purchaseOrderNumber>
</v1:order>
<!--Optional:-->
<v1:taxExempt>?</v1:taxExempt>
<!--Optional:-->
<v1:recurringBilling>?</v1:recurringBilling>
<!--Optional:-->
<v1:cardCode>?</v1:cardCode>
<!--Optional:-->
<v1:splitTenderId>?</v1:splitTenderId>
</v1:profileTransAuthCapture>
<!--Optional:-->
<v1:profileTransCaptureOnly>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:tax>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:tax>
<!--Optional:-->
<v1:shipping>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:shipping>
<!--Optional:-->
<v1:duty>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:duty>
<!--Zero or more repetitions:-->
<v1:lineItems>
<!--Optional:-->
<v1:itemId>?</v1:itemId>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
<v1:quantity>?</v1:quantity>
<v1:unitPrice>?</v1:unitPrice>
<!--Optional:-->
<v1:taxable>?</v1:taxable>
</v1:lineItems>
<v1:customerProfileId>?</v1:customerProfileId>
<v1:customerPaymentProfileId>?</v1:customerPaymentProfileId>
<!--Optional:-->
<v1:customerShippingAddressId>?</v1:customerShippingAddressId>
<!--Optional:-->
<v1:order>
<!--Optional:-->
<v1:invoiceNumber>?</v1:invoiceNumber>
<!--Optional:-->
<v1:description>?</v1:description>
<!--Optional:-->
<v1:purchaseOrderNumber>?</v1:purchaseOrderNumber>
</v1:order>
<!--Optional:-->
<v1:taxExempt>?</v1:taxExempt>
<!--Optional:-->
<v1:recurringBilling>?</v1:recurringBilling>
<!--Optional:-->
<v1:cardCode>?</v1:cardCode>
<!--Optional:-->
<v1:splitTenderId>?</v1:splitTenderId>
<!--Optional:-->
<v1:approvalCode>?</v1:approvalCode>
</v1:profileTransCaptureOnly>
<!--Optional:-->
<v1:profileTransVoid>
<!--Optional:-->
<v1:customerProfileId>?</v1:customerProfileId>
<!--Optional:-->
<v1:customerPaymentProfileId>?</v1:customerPaymentProfileId>
<!--Optional:-->
<v1:customerShippingAddressId>?</v1:customerShippingAddressId>
<!--Optional:-->
<v1:transId>?</v1:transId>
</v1:profileTransVoid>
<!--Optional:-->
<v1:profileTransAuthOnly>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:tax>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:tax>
<!--Optional:-->
<v1:shipping>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:shipping>
<!--Optional:-->
<v1:duty>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:duty>
<!--Zero or more repetitions:-->
<v1:lineItems>
<!--Optional:-->
<v1:itemId>?</v1:itemId>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
<v1:quantity>?</v1:quantity>
<v1:unitPrice>?</v1:unitPrice>
<!--Optional:-->
<v1:taxable>?</v1:taxable>
</v1:lineItems>
<v1:customerProfileId>?</v1:customerProfileId>
<v1:customerPaymentProfileId>?</v1:customerPaymentProfileId>
<!--Optional:-->
<v1:customerShippingAddressId>?</v1:customerShippingAddressId>
<!--Optional:-->
<v1:order>
<!--Optional:-->
<v1:invoiceNumber>?</v1:invoiceNumber>
<!--Optional:-->
<v1:description>?</v1:description>
<!--Optional:-->
<v1:purchaseOrderNumber>?</v1:purchaseOrderNumber>
</v1:order>
<!--Optional:-->
<v1:taxExempt>?</v1:taxExempt>
<!--Optional:-->
<v1:recurringBilling>?</v1:recurringBilling>
<!--Optional:-->
<v1:cardCode>?</v1:cardCode>
<!--Optional:-->
<v1:splitTenderId>?</v1:splitTenderId>
</v1:profileTransAuthOnly>
<!--Optional:-->
<v1:profileTransPriorAuthCapture>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:tax>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:tax>
<!--Optional:-->
<v1:shipping>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:shipping>
<!--Optional:-->
<v1:duty>
<v1:amount>?</v1:amount>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
</v1:duty>
<!--Zero or more repetitions:-->
<v1:lineItems>
<!--Optional:-->
<v1:itemId>?</v1:itemId>
<!--Optional:-->
<v1:name>?</v1:name>
<!--Optional:-->
<v1:description>?</v1:description>
<v1:quantity>?</v1:quantity>
<v1:unitPrice>?</v1:unitPrice>
<!--Optional:-->
<v1:taxable>?</v1:taxable>
</v1:lineItems>
<!--Optional:-->
<v1:customerProfileId>?</v1:customerProfileId>
<!--Optional:-->
<v1:customerPaymentProfileId>?</v1:customerPaymentProfileId>
<!--Optional:-->
<v1:customerShippingAddressId>?</v1:customerShippingAddressId>
<!--Optional:-->
<v1:transId>?</v1:transId>
</v1:profileTransPriorAuthCapture>
</v1:transaction>
<!--Optional:-->
<v1:extraOptions>?</v1:extraOptions>
</v1:CreateCustomerProfileTransaction>
</soapenv:Body>
</soapenv:Envelope>

em9592
Member

Why do you think you need the splitTenderID?

Anyway, if you search on what you post you would see the <v1:splitTenderId>?</v1:splitTenderId>

So, I'm not sure what you are asking for.

HOW TO GET A SPLITTENDERID SIR IN CIM...

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v1="https://api.authorize.net/soap/v1/">
<soapenv:Header/>
<soapenv:Body>
<v1:UpdateSplitTenderGroup>
<!--Optional:-->
<v1:merchantAuthentication>
<!--Optional:-->
<v1:name>96xY4UmpYx</v1:name>
<!--Optional:-->
<v1:transactionKey>3836PATZ7Gk99gmm</v1:transactionKey>
</v1:merchantAuthentication>
<v1:splitTenderId>

459147

</v1:splitTenderId>
<v1:splitTenderStatus>voided</v1:splitTenderStatus>
</v1:UpdateSplitTenderGroup>
</soapenv:Body>
</soapenv:Envelope>

 

 

The response is

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<UpdateSplitTenderGroupResponse xmlns="https://api.authorize.net/soap/v1/">
<UpdateSplitTenderGroupResult>
<resultCode>Error</resultCode>
<messages>
<MessagesTypeMessage>
<code>E00027</code>
<text>The specified SplitTenderID is invalid.</text> <---- ERROR
</MessagesTypeMessage>
</messages>
</UpdateSplitTenderGroupResult>
</UpdateSplitTenderGroupResponse>
</soap:Body>
</soap:Envelope>

Hello @em9592 

 

Just to clarify, the purpose of a split tender is to allow for partial payment of an amount with one card, and then use another card if there was insufficient funds available to complete the transaction.    For example, you wish to purchase an item that is $100.00.  When using your first card, only $60 is available.  If the transaction was submitted with split tender enabled, you could use a second card to pay the remaining $40.00 to purchase the item.

 

After reading your original post, your objective is add a tip to a previous transaction.  This is only possible using an Authorize Only transaction, then following up with one or more Prior Authorization and Capture transaction up to the amount of the original authorization.

 

Richard