See also the Transaction response object.

You can manually retry charging past due subscriptions. For details on how to do this, see the managing subscriptions page.

C♯
Result<Transaction> retryResult = gateway.Subscription.RetryCharge(
    subscription.Id,
    24.00M,
    true
);
if (retryResult.IsSuccess()) {
    // true
}
Arguments
SubscriptionId required, string

A string value representing a specific subscription in the vault

Amount Decimal

The amount to charge the customer if different from the current balance on the subscription. This value must be greater than 0, and must match the appropriate currency format.

SubmitForSettlement bool

If set to true, the transaction will automatically be submitted for settlement if the retry request is successful. Available in the latest versions of our server SDKs.

Examples

Manually submit transaction for settlement

C♯
Result<Transaction> retryResult = gateway.Subscription.RetryCharge(
    subscription.Id,
    24.00M
);
if (retryResult.IsSuccess()) {
    Result<Transaction> result = gateway.Transaction.SubmitForSettlement(
        retryResult.Target.Id
    );
    result.IsSuccess();
    // true
}