03-28-2011 04:04 PM
Always shows active for any Subscription ID I put in that is valid even though online it will say Terminated.
What is the problem?
04-05-2011 12:44 PM
The C# SDK doesn't alter the response in any way, so if the call returned "Active" that's what you would see. Can you provide more info so we can look into this further? Like the full call and the full response?
Developer Community Manager
08-06-2011 06:43 AM
I've been experiencing the same problem. The SDK works well creating, modifying and cancelling ARB subscriptions but continues to return "Active" for all cancelled and suspended requests (both in test and live environments).
To check subscriptions I'm using the C# SDK directly in my project like so:
PublicSharedFunction OpenGateway() AsSubscriptionGateway'pretend this is injected with IoC
Dim login As String = ConfigurationManager.AppSettings("ANetAPILoginID")
Dim transactionKey As String = ConfigurationManager.AppSettings("ANetAPITransactionKey")
Return New SubscriptionGateway(login, transactionKey, AuthorizeNet.ServiceMode.Live)
Public Shared Function CheckANetSubscriptionStatus(ByVal SubscriberID As String) As ARBSubscriptionStatusEnum
Dim gate As SubscriptionGateway = OpenGateway()
Dim response As ARBSubscriptionStatusEnum = gate.GetSubscriptionStatus(SubscriberID)
Any advice you could provide would be much appreciated!
08-06-2011 07:53 AM
I modified the SDK to give me the raw XML response data and it gave me this (the response indicates the correct status of the particular subscription queried):
<?xml version="1.0" encoding="utf-8"?>
Now I'll have to figure out why the SDK is incorrectly serializing this response...