-
Notifications
You must be signed in to change notification settings - Fork 10
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
feat(obj-c): add cash app methods (EIT-4059) #262
Conversation
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 just a couple of questions
// swiftlint:disable type_name | ||
|
||
@objc static var cashAppClientId: String { | ||
Afterpay.cashAppClientId ?? "" |
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.
Any reason not to make this 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.
no reason - great pickup. addressed in 71f61b6
|
||
@objc(APCashAppValidationFailedReasonNilData) | ||
public class CashAppValidationFailedReasonNilData: CashAppValidationFailedReason { | ||
init(_ void: ()) {} |
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.
Why do these take a void?
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.
no reason other than to keep consistency with the existing obj-c wrapper code.
Summary of Changes
This PR exposes methods and classes relating to Cash App for Obj C. These include:
validateCashAppOrder()
signCashAppOrderToken()
cashAppClientId