C# Class PayPal.Api.CreditCard

[DEPRECATED] Represents a credit card to fund a payment. Use Payment Card instead.

See PayPal Developer documentation for more information.

Inheritance: PayPalRelationalObject
Show file Open project: paypal/PayPal-NET-SDK Class Usage Examples

Private Properties

Property Type Description

Public Methods

Method Description
Create ( APIContext apiContext ) : CreditCard

Creates a new Credit Card Resource (aka Tokenize).

Create ( APIContext apiContext, CreditCard creditCard ) : CreditCard

Creates a new Credit Card Resource (aka Tokenize).

Delete ( APIContext apiContext ) : void

Delete the Credit Card resource for the given identifier.

Delete ( APIContext apiContext, string creditCardId ) : void

Delete the Credit Card resource for the given identifier.

Get ( APIContext apiContext, string creditCardId ) : CreditCard

Obtain the Credit Card resource for the given identifier.

List ( APIContext apiContext, int pageSize = 10, int page = 1, string startTime = "", string endTime = "", string sortOrder = "asc", string sortBy = "create_time", string merchantId = "", string externalCardId = "", string externalCustomerId = "", bool totalRequired = true ) : PayPal.Api.CreditCardList

Retrieves a list of Credit Card resources.

Update ( APIContext apiContext, PatchRequest patchRequest ) : CreditCard

Update information in a previously saved card. Only the modified fields need to be passed in the request.

Update ( APIContext apiContext, string creditCardId, PatchRequest patchRequest ) : CreditCard

Update information in a previously saved card. Only the modified fields need to be passed in the request.

Method Details

Create() public method

Creates a new Credit Card Resource (aka Tokenize).
public Create ( APIContext apiContext ) : CreditCard
apiContext APIContext APIContext used for the API call.
return CreditCard

Create() public static method

Creates a new Credit Card Resource (aka Tokenize).
public static Create ( APIContext apiContext, CreditCard creditCard ) : CreditCard
apiContext APIContext APIContext used for the API call.
creditCard CreditCard CreditCard object to be used to create the PayPal resource.
return CreditCard

Delete() public method

Delete the Credit Card resource for the given identifier.
public Delete ( APIContext apiContext ) : void
apiContext APIContext APIContext used for the API call.
return void

Delete() public static method

Delete the Credit Card resource for the given identifier.
public static Delete ( APIContext apiContext, string creditCardId ) : void
apiContext APIContext APIContext used for the API call.
creditCardId string Identifier of the credit card resource to obtain the data for.
return void

Get() public static method

Obtain the Credit Card resource for the given identifier.
public static Get ( APIContext apiContext, string creditCardId ) : CreditCard
apiContext APIContext APIContext used for the API call.
creditCardId string Identifier of the credit card resource to obtain the data for.
return CreditCard

List() public static method

Retrieves a list of Credit Card resources.
public static List ( APIContext apiContext, int pageSize = 10, int page = 1, string startTime = "", string endTime = "", string sortOrder = "asc", string sortBy = "create_time", string merchantId = "", string externalCardId = "", string externalCustomerId = "", bool totalRequired = true ) : PayPal.Api.CreditCardList
apiContext APIContext APIContext used for the API call.
pageSize int Number of items to be returned in the current page size, by a GET operation.
page int The page number to be retrieved, for the list of items, by the current GET request.
startTime string Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the start of a range of results.
endTime string Resource creation time as ISO8601 date-time format (ex: 1994-11-05T13:15:30Z) that indicates the end of a range of results.
sortOrder string Sort based on order of results. Options include 'asc' for ascending order or 'desc' for descending order.
sortBy string Sort based on 'create_time' or 'update_time'.
merchantId string Merchant identifier to filter the search results in list operations.
externalCardId string Externally provided card identifier to filter the search results in list operations.
externalCustomerId string Externally provided customer identifier to filter the search results in list operations.
totalRequired bool Identifies if total count is required or not. Defaults to true.
return PayPal.Api.CreditCardList

Update() public method

Update information in a previously saved card. Only the modified fields need to be passed in the request.
public Update ( APIContext apiContext, PatchRequest patchRequest ) : CreditCard
apiContext APIContext APIContext used for the API call.
patchRequest PatchRequest PatchRequest
return CreditCard

Update() public static method

Update information in a previously saved card. Only the modified fields need to be passed in the request.
public static Update ( APIContext apiContext, string creditCardId, PatchRequest patchRequest ) : CreditCard
apiContext APIContext APIContext used for the API call.
creditCardId string ID fo the credit card to update.
patchRequest PatchRequest PatchRequest
return CreditCard