Credit Method
Credits a customer's card.
Syntax
ANSI (Cross Platform) int Credit(); Unicode (Windows) INT Credit();
- (void)credit;
#define MID_ICHARGE_CREDIT 7 INPAY_EXTERNAL int INPAY_CALL InPay_ICharge_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method credits a customer's card specified via Card. This type of transaction is NOT based on previous transaction. Some gateways refer to these as "Open" or "Blind" Credits.
TransactionAmount is used to specify the amount you wish to return to the customer's card.
Please see the gateway information in the table of contents to determine if your gateway supports Credit transactions.
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.)