I am working on infusion soft payments subscription API's and subscription is working fine.Now i need to change the status of user if payment fails in any month but did not get any api related to that.I am using these api for subscription.
$subscriptionId = $app->addRecurringAdv($cid,false,23,2,2.95,true,1,$ccId,$affId,0);
$invoiceID = $app->recurringInvoice($recurringOrderId);
$result = $app->chargeInvoice(16,"API Upsell Payment",2,1,false);