-
Notifications
You must be signed in to change notification settings - Fork 292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[V7] Update BTLocalPaymentRequest
#1447
Conversation
/// - isShippingAddressRequired: Indicates whether or not the payment needs to be shipped. For digital goods, this should be `false`. Defaults to `false`. | ||
/// - bic: Optional: Bank Identification Code of the customer (specific to iDEAL transactions). | ||
public init( | ||
paymentType: String? = nil, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is everything really optional?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for asking, i've updated it. paymentType
, amount
and currencyCode
are required for all LPMs, others depend on the type.
As docs says: paymentTypeCountryCode
is required for payment methods with multiple potential country codes, otherwise it will use the countryCode
(reference)
let surname: String? | ||
let phone: String? | ||
var isShippingAddressRequired: Bool = false | ||
let bic: String? | ||
|
||
public weak var localPaymentFlowDelegate: BTLocalPaymentRequestDelegate? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the case of delegates, do we prefer using dot syntax or requiring them in the init? Apple uses dot syntax
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's follow apple's lead and use the dot syntax!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
/// - phone: Optional: Phone number of the customer. | ||
/// - isShippingAddressRequired: Indicates whether or not the payment needs to be shipped. For digital goods, this should be `false`. Defaults to `false`. | ||
/// - bic: Optional: Bank Identification Code of the customer (specific to iDEAL transactions). | ||
public init( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Take it or leave it - do we want to alphabetize these?
let surname: String? | ||
let phone: String? | ||
var isShippingAddressRequired: Bool = false | ||
let bic: String? | ||
|
||
public weak var localPaymentFlowDelegate: BTLocalPaymentRequestDelegate? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's follow apple's lead and use the dot syntax!
|
||
/// Creates a LocalPaymentRequest | ||
/// - Parameters: | ||
/// - paymentType: The type of payment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these listed anywhere? If so can we link to the doc for it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated: 99b8064
Summary of changes
Docstrings:
Checklist
Authors