cancel
Showing results for 
Search instead for 
Did you mean: 

Cancel ARB Subscription and renewal possibility

Hi, 

 

I'm working on custom PHP application and we set 1 year ongoing subscription.
1) Is there anyway customer can cancel subscription at any time within active susbscription status.  

2) I want to send renewal email 48 hours prior to subscription expire, 

 

Thanks

jay71134
Contributor
13 REPLIES 13

Hi @jay71134,

 

In that scenario, you'd need to do essentially three steps:

 

  1. A one-time charge on the new card.
  2. Update the subscription
  3. Reactivate the subscription

 

A change to a subscription wouldn't take effect until the next scheduled payment.

@Aaron,

 

Thanks for quick response.  Ok at the moment we are using Recuring billing so if i set trialAmount to $1 and trialOccurrences is also 1 with a 1 day trial period.  After successfull trial period ANet auto charged to customer. is this solution works.  

 

Or still i need to create 1 time payment and then start ongoing subscription.

 

Thanks 

That certainly is one way of doing what you want. However, that could still run into problems as the trial amount subscription isn't charged at the time you create it, but later that day. If you want to know if the card is valid at the time you're creating a subscription, you have to do a non-subscription transaction first to either authorize the card or charge it for the first month.

Hi @RichardH,

 

I fixed subscription payments issue but now we have more subscribers and loading time is bit slow so we tried to migrate to Amazon AWS.  Copied everything from inmotion hosting but for some reason now subscripitons are not created . I got this error response. This is happen when we void the payment that is captured for card authentication 

 

Here is response code. 

 

object(net\authorize\api\contract\v1\CreateTransactionResponse)#95 (5) {
  ["transactionResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private]=>
  object(net\authorize\api\contract\v1\TransactionResponseType)#363 (23) {
    ["responseCode":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(1) "3"
    ["rawResponseCode":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    NULL
    ["authCode":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(6) "000000"
    ["avsResultCode":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(1) "P"
    ["cvvResultCode":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(0) ""
    ["cavvResultCode":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(0) ""
    ["transId":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(1) "0"
    ["refTransID":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(0) ""
    ["transHash":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(32) "E8D85CF1EED742458004BFA5EBCCBD04"
    ["testRequest":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(1) "1"
    ["accountNumber":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(0) ""
    ["entryMode":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    NULL
    ["accountType":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(0) ""
    ["splitTenderId":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    NULL
    ["prePaidCard":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    NULL
    ["messages":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    array(0) {
    }
    ["errors":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    array(1) {
      [0]=>
      object(net\authorize\api\contract\v1\TransactionResponseType\ErrorsAType\ErrorAType)#235 (2) {
        ["errorCode":"net\authorize\api\contract\v1\TransactionResponseType\ErrorsAType\ErrorAType":private]=>
        string(2) "33"
        ["errorText":"net\authorize\api\contract\v1\TransactionResponseType\ErrorsAType\ErrorAType":private]=>
        string(46) "A valid referenced transaction ID is required."
      }
    }
    ["splitTenderPayments":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    array(0) {
    }
    ["userFields":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    array(0) {
    }
    ["shipTo":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    NULL
    ["secureAcceptance":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    NULL
    ["emvResponse":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    NULL
    ["transHashSha2":"net\authorize\api\contract\v1\TransactionResponseType":private]=>
    string(0) ""
  }
  ["profileResponse":"net\authorize\api\contract\v1\CreateTransactionResponse":private]=>
  NULL
  ["refId":"net\authorize\api\contract\v1\ANetApiResponseType":private]=>
  string(14) "ref-1495695361"
  ["messages":"net\authorize\api\contract\v1\ANetApiResponseType":private]=>
  object(net\authorize\api\contract\v1\MessagesType)#355 (2) {
    ["resultCode":"net\authorize\api\contract\v1\MessagesType":private]=>
    string(5) "Error"
    ["message":"net\authorize\api\contract\v1\MessagesType":private]=>
    array(1) {
      [0]=>
      object(net\authorize\api\contract\v1\MessagesType\MessageAType)#147 (2) {
        ["code":"net\authorize\api\contract\v1\MessagesType\MessageAType":private]=>
        string(6) "E00027"
        ["text":"net\authorize\api\contract\v1\MessagesType\MessageAType":private]=>
        string(33) "The transaction was unsuccessful."
      }
    }
  }
  ["sessionToken":"net\authorize\api\contract\v1\ANetApiResponseType":private]=>
  NULL
}