E-Payment Integrator 2020 C++ Edition

Questions / Feedback?

CheckoutPayment Method

Either obtain payment for a final sale, or request authorization for later capture of payment.

Syntax

ANSI (Cross Platform)
int CheckoutPayment();

Unicode (Windows)
INT CheckoutPayment();
- (void)checkoutPayment;
#define MID_EXPRESSCHECKOUT_CHECKOUTPAYMENT 4

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

Remarks

This method completes the sale or authorization. When this method is called, the following properties are required in the request:

To obtain payment for a final sale you will have to set the PaymentAction property to aSale. If you want to request an authorization, the PaymentAction property has to be set to aAuthorization. Then, you will need to use Capture to capture the transaction.

The following information may be optionally provided in the request:

The Response and Payment properties may be returned in the response.

Error Handling (C++)

This method returns a 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. (Note: This method's result code can also be obtained by calling the GetLastErrorCode() method after it returns.)

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