WePay iOS SDK
7.0.0-prerelease-1
|
#import <WPPaymentInfo.h>
Instance Methods | |
(instancetype) | - initWithSwipedInfo: |
(instancetype) | - initWithEMVInfo: |
(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 |
id | emvInfo |
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 |
Additional info obtained by using the EMV payment method.
|
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. XXXXXXXXXXXX1234 Note: the display format may change depending on the payment instrument and the payment method, so this field should not be parsed. It is meant for display to the end user as-is.
|
readnonatomicstrong |
The payment method used, one of (kWPPaymentMethodManual, kWPPaymentMethodSwipe, kWPPaymentMethodDip).
|
readnonatomicstrong |
Shipping address.
|
readnonatomicstrong |
Additional info obtained by using the Swipe payment method.