WePay iOS SDK
3.0.0
|
#import <WPPaymentInfo.h>
Instance Methods | |
(instancetype) | - initWithSwipedInfo: |
(instancetype) | - initWithFirstName:lastName:email:billingAddress:shippingAddress:cardNumber:cvv:expMonth:expYear:virtualTerminal: |
(void) | - addEmail: |
Properties | |
NSString * | firstName |
NSString * | lastName |
NSString * | |
NSString * | paymentDescription |
BOOL | isVirtualTerminal |
WPAddress * | billingAddress |
WPAddress * | shippingAddress |
id | paymentMethod |
id | swiperInfo |
id | manualInfo |
An instance of this class represents the payment information obtained from the user via any of the supported payment methods. It is used as input for tokenization operations.
- (void) addEmail: | (NSString *) |
Allows adding an email if one is not already present. The call will be ignored if an email is already present.
the email address to be added |
- (instancetype) initWithFirstName: | (NSString *) | firstName | |
lastName: | (NSString *) | lastName | |
email: | (NSString *) | ||
billingAddress: | (WPAddress *) | billingAddress | |
shippingAddress: | (WPAddress *) | shippingAddress | |
cardNumber: | (NSString *) | cardNumber | |
cvv: | (NSString *) | cvv | |
expMonth: | (NSString *) | expMonth | |
expYear: | (NSString *) | expYear | |
virtualTerminal: | (BOOL) | virtualTerminal | |
Initializes a WPPaymentInfo instance of type kWPPaymentMethodManual.
firstName | First name of the payer. |
lastName | Last name of the payer. |
Email address of the payer. | |
billingAddress | Billing address. |
shippingAddress | Shipping address. |
cardNumber | The card number. |
cvv | The cvv code. |
expMonth | The 2-digit expiration month on the credit card. |
expYear | The 4-digit expiration year on the credit card. |
virtualTerminal | The virtual terminal flag - should be false if payment info was collected on the payer's device. |
|
readnonatomicstrong |
Billing address.
|
readnonatomicstrong |
Email address of the payer.
|
readnonatomicstrong |
First name of the payer.
|
readnonatomicassign |
Determines if the card was obtained in virtual terminal mode.
|
readnonatomicstrong |
Last name of the payer.
|
readnonatomicstrong |
Additional info obtained by using the Manual payment method.
|
readnonatomicstrong |
Masked representation of the payment instrument. e.g. 4242XXXXXXXX1234
|
readnonatomicstrong |
The payment method used, one of (kWPPaymentMethodManual, kWPPaymentMethodSwipe).
|
readnonatomicstrong |
Shipping address.
|
readnonatomicstrong |
Additional info obtained by using the Swipe payment method.