CancelSubscription Method
Cancels or deletes a recurring payment subscription.
Syntax
ANSI (Cross Platform) int CancelSubscription(const char* lpszSubscriptionId); Unicode (Windows) INT CancelSubscription(LPCWSTR lpszSubscriptionId);
- (void)cancelSubscription:(NSString*)subscriptionId;
#define MID_RECURRINGBILLING_CANCELSUBSCRIPTION 3 INPAY_EXTERNAL int INPAY_CALL InPay_RecurringBilling_Do(void *lpObj, int methid, int cparam, void *param[], int cbparam[], int64 *lpllVal);
Remarks
This method is used to cancel or delete a recurring subscription identified by the specified SubscriptionId.
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.)