Pass in a APIContext
object to authenticate
the call and to send a unique request id
(that ensures idempotency). The SDK generates
a request id if you do not pass one explicitly.
See Configuration.cs to know more about APIContext.
Create a new credit card resource that will be deleted for demonstration purposes.
Creates the credit card as a resource in the PayPal vault. The response contains an 'id' that you can use to refer to it in future payments.
Retrieve the credit card information for the new created resource.
Delete the credit card
For more information, please visit PayPal Developer REST API Reference.
DeleteCreditCard Sample
This sample code demonstrates how you delete a previously saved Credit Card using the 'vault' API. API used: DELETE /v1/vault/credit-card/{id}