BTNUser Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | BTNUserProtocol.h |
– setIdentifier:
required method
Sets the unique identifier for the user.
- (void)setIdentifier:(NSString *)identifier
Discussion
Sets the unique identifier for the user.
Setting a user ID ensures subsequent Merchant activity (such as installs or purchases) is attributed to a user. This can either be your user ID, email or a stable hash of one. You can use this later to look up orders, activity and identify the user in Webhooks. String with a maximum length of 255.
@note: You should set the user ID in your login handler.
Declared In
BTNUserProtocol.h
– setEmail:
required method
Sets an email for the user.
- (void)setEmail:(nullable NSString *)email
Parameters
email |
The user’s email. |
---|
Discussion
Sets an email for the user.
This value will be hashed using the SHA-256 algorithm and potentially used in the Button Browser webview.
Note: Must be set after the Button SDK is configured.
Declared In
BTNUserProtocol.h
– setAutofillEnabled:
required method
Enables or disables autofill on merchant websites.
- (void)setAutofillEnabled:(BOOL)autofillEnabled
Parameters
autofillEnabled |
YES or NO |
---|
Discussion
Enables or disables autofill on merchant websites.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setFirstName:
required method
Sets a first name for the user’s autofill profile.
- (void)setFirstName:(NSString *)firstName
Parameters
firstName |
The user’s first name. |
---|
Discussion
Sets a first name for the user’s autofill profile.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setLastName:
required method
Sets a last name for the user’s autofill profile.
- (void)setLastName:(NSString *)lastName
Parameters
lastName |
The user’s last name. |
---|
Discussion
Sets a last name for the user’s autofill profile.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setPhoneNumber:
required method
Sets a phone number for the user’s autofill profile.
- (void)setPhoneNumber:(NSString *)phoneNumber
Parameters
phoneNumber |
The user’s phone number. |
---|
Discussion
Sets a phone number for the user’s autofill profile.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setAddressLineOne:
required method
Sets an address one for the user’s autofill profile.
- (void)setAddressLineOne:(NSString *)addressLineOne
Parameters
addressLineOne |
The user’s main address line. |
---|
Discussion
Sets an address one for the user’s autofill profile.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setAddressLineTwo:
required method
Sets an address two for the user’s autofill profile.
- (void)setAddressLineTwo:(NSString *)addressLineTwo
Parameters
addressLineTwo |
The user’s second address line. |
---|
Discussion
Sets an address two for the user’s autofill profile.
Declared In
BTNUserProtocol.h
– setCity:
required method
Sets a city for the user’s autofill profile.
- (void)setCity:(NSString *)city
Parameters
city |
The user’s city. |
---|
Discussion
Sets a city for the user’s autofill profile.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setState:
required method
Sets a state for the user’s autofill profile.
- (void)setState:(NSString *)state
Parameters
state |
The user’s state. |
---|
Discussion
Sets a state for the user’s autofill profile.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setCountry:
required method
Sets a country for the user’s autofill profile
- (void)setCountry:(NSString *)country
Parameters
country |
The user’s country. |
---|
Discussion
Sets a country for the user’s autofill profile
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setPostalCode:
required method
Sets a postal code for the user’s autofill profile.
- (void)setPostalCode:(NSString *)postalCode
Parameters
postalCode |
The user’s postal code. |
---|
Discussion
Sets a postal code for the user’s autofill profile.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h
– setPaymentMethodProvider:
required method
Sets the payment method provider for the user.
- (void)setPaymentMethodProvider:(id<BTNPaymentMethodProvider>)paymentMethodProvider
Parameters
paymentMethodProvider |
The object responsibile for providing the user’s payment details. |
---|
Discussion
Sets the payment method provider for the user.
Note: Autofill has been deprecated.
Declared In
BTNUserProtocol.h