PAYMENT INFORMATION using API


(Terri Bowman) #1

Hi Team,

How can we fetch the credit card information ( say if we want to Add / Delete / Update) any card details using API?

Further, how can we handle cancellation of a subscription plan ( of subscription based product) through API?

Any leads for the above would help.

Thanks


(Tom Scott) #2

You can update credit card information via the XMLRPC API, but you can not retrieve it through the API generally, due to PCI compliance implementation.

In order to accomplish this, you would need to use the DataService to add a record to the CreditCard table (list of tables accessible and their fields).

You can delete subscriptions through the following method:
https://developer.infusionsoft.com/docs/xml-rpc/#invoice-delete-a-subscription


(John Borelli) #3

As @TomScott has indicated. PCI DSS requires token representation of CC data once it is stored on their server. For purposes of purchase history keeping, CC records cannot be deleted. You can modify some of the associated information and, of course, add new information but not delete.

Regarding subscription cancellations, you can, also as indicated, cancel subscriptions through the api, however, be aware, that with some gateways, like PayPal, that cancellation doesn’t propagate by itself and the user would have to cancel the subscription in their PP app (or other gateway portal) themselves. Others don’t setup subscriptions but rely on IS to run a monthly charge so in those cases, that would not apply.