You could update a credit card by sending patch requests. Each path object would have a specific detail in the object to be updated.
You could set more than one patch while updating a credit card.
(See bootstrap.php for more on ApiContext
)
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
NOTE: PLEASE DO NOT USE RESULTPRINTER CLASS IN YOUR ORIGINAL CODE. FOR SAMPLE ONLY
Update Credit Card Sample
The CreditCard resource allows you to update previously saved CreditCards. API called: PATCH /v1/vault/credit-cards/
The following code takes you through
the process of updating a saved CreditCard