E-Payment Integrator 2020 C++ Edition

Questions / Feedback?

GetAggregate Method

Returns an aggregate containing level 2 details for a transaction.

Syntax

ANSI (Cross Platform)
char* GetAggregate();

Unicode (Windows)
LPWSTR GetAggregate();
- (NSString*)getAggregate;
#define MID_LEVEL2_GETAGGREGATE 4

INPAY_EXTERNAL int INPAY_CALL InPay_Level2_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);

Remarks

This method returns an aggregate containing the level 2 data specified. This aggregate must be passed to the ICharge class's Level2Aggregate property in order for the level 2 data to be sent in the transaction. Each gateway has different requirements when processing level 2 transactions. Please refer to Level2 to identify which properties are required for the gateway you are implementing.

An example of how this method is used is shown below:


  Level2.PONumber = "123456789"
  Level2.ShipToZip = "27713"
  Level2.TaxAmount = "1.23"
  Level2.IsTaxExempt = false
  ICharge.Level2Aggregate = Level2.GetAggregate()

Error Handling (C++)

This method returns a String value; after it returns, call the GetLastErrorCode() method to obtain its result code; 0 indicates success, while a non-zero error code indicates that this method encountered an error during its execution. If an error occurs, the GetLastError() method can be called to retrieve the associated error message.

Copyright (c) 2021 /n software inc. - All rights reserved.
E-Payment Integrator 2020 C++ Edition - Version 20.0 [Build 7941]