-
Notifications
You must be signed in to change notification settings - Fork 294
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
[Important] Adding imageUrl, upcType, upcCode to PayPalLineItem #1165
Conversation
@@ -27,16 +52,25 @@ import Foundation | |||
public let kind: BTPayPalLineItemKind | |||
|
|||
/// Optional: Per-unit tax price of the item. Can include up to 2 decimal places. This value can't be negative or zero. | |||
public let unitTaxAmount: String? = nil | |||
public var unitTaxAmount: 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.
This change is required to set values to these properties once the object is created.
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.
🍍
Demo/Application/Features/PayPalWebCheckoutViewController.swift
Outdated
Show resolved
Hide resolved
@@ -9,6 +9,54 @@ import Foundation | |||
case credit | |||
} | |||
|
|||
|
|||
/// Use this option to specify the Upc type of the lien item. |
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.
/// Use this option to specify the Upc type of the lien item. | |
/// Use this option to specify the UPC type of the line item. |
Additionally are there more descriptive UPC code definitions somewhere that we can link to? I'm not sure what all these cases mean and assume merchants may be confused as well.
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.
https://en.wikipedia.org/wiki/Universal_Product_Code is the best we found about these definitions. Not sure if we can link wiki page.
PayPal developer documentation doesn't have much details https://developer.paypal.com/api/limited-release/orders/v2/#definition-universal_product_code
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.
Got it, these docs are fine then since they seem to match paypal's public docs. We can hopefully assume merchants that use these know what they mean. 🙈
Demo/Application/Features/PayPalWebCheckoutViewController.swift
Outdated
Show resolved
Hide resolved
Demo/Application/Features/PayPalWebCheckoutViewController.swift
Outdated
Show resolved
Hide resolved
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.
Couple of very tiny cleanup comments but should be straightforward to apply.
Co-authored-by: Jax DesMarais-Leder <[email protected]>
Co-authored-by: Jax DesMarais-Leder <[email protected]>
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.
🍏 Looks good
Not sure why the integration tests are flaky now but UI tests have been flaking out for a while and are unrelated to this PR. I pulled down this branch and ran the integration tests and they are all passing outside of CI locally. Going to move forward with merging in this work as the Integration tests failing here are all passing. We will add this to our CI test investigation work. |
Thank you for your contribution to Braintree.
Summary of changes
Checklist
Authors