Inherits from NSObject
Declared in LUCreditCardRequestFactory.h
LUCreditCardRequestFactory.m

Overview

LUCreditCardRequestFactory is used to build requests related to credit cards.

Class Methods

requestForCreditCards

Builds a request to return all credit cards added by the current user.

+ (LUAPIRequest *)requestForCreditCards

Discussion

Builds a request to return all credit cards added by the current user.

On success, this request will return an array of LUCreditCard instances.

Warning: Use of this request requires an Enterprise SDK license.

Declared In

LUCreditCardRequestFactory.h

requestToCreateCreditCard:

Builds a request to create a credit card.

+ (LUAPIRequest *)requestToCreateCreditCard:(LUCreditCard *)creditCard

Parameters

creditCard

The LUCreditCard to create.

Discussion

Builds a request to create a credit card.

On success, this request will return the newly created LUCreditCard.

Warning: This request requires an access token with the LUPermissionManageUserPaymentMethods permission.

Declared In

LUCreditCardRequestFactory.h

requestToDeleteCreditCardWithID:

Builds a request to delete a credit card.

+ (LUAPIRequest *)requestToDeleteCreditCardWithID:(NSNumber *)creditCardID

Parameters

creditCardID

The ID of a credit card to delete.

Discussion

Builds a request to delete a credit card.

On success, this request will return the deleted LUCreditCard.

Warning: Use of this request requires an Enterprise SDK license.

Declared In

LUCreditCardRequestFactory.h

requestToPromoteCreditCardWithID:

Builds a request to promote a credit card.

+ (LUAPIRequest *)requestToPromoteCreditCardWithID:(NSNumber *)creditCardID

Parameters

creditCardID

The ID of a credit card to promote.

Discussion

Builds a request to promote a credit card.

The promoted card will be the first attempted when charging a user. When a credit card is promoted, if there is another promoted card, that card will be un-promoted.

On success, this request will return the LUCreditCard that was promoted.

Warning: Use of this request requires an Enterprise SDK license.

Declared In

LUCreditCardRequestFactory.h