A resource representing a credit card that can be used to fund a payment.
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.
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 the future payments.
Create Credit Card Sample
Using the 'vault' API, you can store a Credit Card securely on PayPal. You can use a saved Credit Card to process a payment in the future. The following code demonstrates how can save a Credit Card on PayPal using the Vault API. API used: POST /v1/vault/credit-card