10-08-2017 08:51 AM
I'm migrating from the SIM Method to Accept Hosted.
With the hosted form via the SIM Method, it displayed the line items on the payment form. While I'm able to produce a payment form using Accept Hosted, I haven't found a way to have the Line Items displayed on it. I'm sending them in via XML, so I know it has access to that information. However, none of the sample Payment Forms I have come across seem to show line items included.
Is this simply not available like it used to be with the SIM Method?
12-13-2018 10:59 AM - edited 12-13-2018 11:01 AM
I obviously cannot post our company's code, only your API code that I am using. This was me just testing it:
ApiOperationBase.setEnvironment(Environment.SANDBOX); MerchantAuthenticationType merchantAuthenticationType = new MerchantAuthenticationType() ; merchantAuthenticationType.setName( authorizeNetLoginID ); merchantAuthenticationType.setTransactionKey( authorizeNetTransactionKey ); ApiOperationBase.setMerchantAuthentication(merchantAuthenticationType); OrderType orderRequest = new OrderType(); orderRequest.setInvoiceNumber( orderID ); // Create the payment transaction request TransactionRequestType txnRequest = new TransactionRequestType(); ArrayOfLineItem lineItemsArray = new ArrayOfLineItem(); List<LineItemType> lineItems = lineItemsArray.getLineItem(); LineItemType line1 = new LineItemType(); line1.setName("Name With Spaces"); line1.setDescription("Description With Spaces"); line1.setItemId("37894"); line1.setQuantity( BigDecimal.valueOf( 1 ) ); line1.setTaxable( true ); line1.setUnitPrice( BigDecimal.valueOf( 36456.00) ); lineItems.add( line1 ); // LineItemType line2 = new LineItemType(); // line2.setName("Name"); // line2.setDescription("Description"); // line2.setItemId("ItemID"); // line2.setQuantity( BigDecimal.valueOf( 5 ) ); // line2.setTaxable( true ); // line2.setUnitPrice( BigDecimal.valueOf( 900.00 ) ); // lineItems.add( line2 ); // // LineItemType line3 = new LineItemType(); // line3.setName("Name"); // line3.setDescription("Description"); // line3.setItemId("ItemID"); // line3.setQuantity( BigDecimal.valueOf( 5 ) ); // line3.setTaxable( true ); // line3.setUnitPrice( BigDecimal.valueOf( 900.00 ) ); // lineItems.add( line3 ); // // LineItemType line4 = new LineItemType(); // line4.setName("Name"); // line4.setDescription("Description"); // line4.setItemId("ItemID"); // line4.setQuantity( BigDecimal.valueOf( 5 ) ); // line4.setTaxable( true ); // line4.setUnitPrice( BigDecimal.valueOf( 900.00 ) ); // lineItems.add( line4 ); txnRequest.setOrder( orderRequest ); txnRequest.setLineItems( lineItemsArray );
I am using the redirect of Accept Hosted. When I confirm the payment and I'm redirected to your receipt page there are no line items. I assume they would be in the collapsable section?
There's also no line items in the Payment Form too. But I'm not worried about that.
12-13-2018 11:15 PM
12-14-2018 07:12 AM
12-14-2018 07:41 AM - edited 12-14-2018 07:44 AM
Alright, you are correct. I do see them in the transaction search in the merchant account.
That doesn't exactly help me though. I wanted them on the receipt page so that I could have the ability to add our custom text to their receipt page because AuthNet doesn't offer the ability to customize it - except for a silly color of a button.
I need to communicate to the customer that they must click the return button or their order might not be submitted on our end. Since AuthNet removed the synchronous POST of data back to our end.
So many things changed that just make my life more difficult.
Thanks anyway. I do appreciate the response. Unlike poor OP from a year ago.
12-14-2018 08:13 AM - edited 12-14-2018 08:16 AM
12-14-2018 07:05 PM
For the benefit of anyone reading- I have confirmed that the line items display in the email sent to the customer if email is set to required. You do not have to have a production account to test email receipt functionality. I just ran it on my sandbox.
12-17-2018 06:50 AM - edited 12-17-2018 06:58 AM
It does make me wonder what that 'Hide Details' section is for on the receipt page if it's not to collapse a possible 30 line items. Collapsing a single-line total just seems silly. Definitely feels like there is a bug here somewhere.