AuthorizeNet/sample-code-node

Get Subscription by credit card number

msj121 opened this issue · 1 comments

Is there a way to get the subscription by credit card number so the user can cancel it, even if it wasn't added as a customer profile?

If subscription was added via: https://github.com/AuthorizeNet/sample-code-node/blob/master/RecurringBilling/create-subscription.js

Is there a way to list/cancel it, using only the credit card number? I would like to avoid listing all subscriptions and I would like to avoid storing credit card numbers, but still allow a user be able to cancel the subscription if they know the pertinent details of their card.

There is not an easy way to search using the API today. We do plan to extend this method to search by additional criteria such as last 4. This would find a card on file / customer payment profile and if it were used in any subscriptions those would be included in the object.

Thanks for this feature request.