venmo / venmo-ios-sdk

Make and accept payments in your iOS app via Venmo
MIT License
178 stars 57 forks source link

Setting the Default Transaction method in Swift #63

Closed sanjams2 closed 9 years ago

sanjams2 commented 9 years ago

Using the swift programming language in XCode how does one set the default transaction method?

The code I currently have written is...

Venmo.sharedInstance().setDefaultTransactionMethod(VENTransactionMethodAPI)

I have never worked in objective-c, solely swift, but up to this point I have been able to translate fairly easily. This particular line is giving me a compile time error that states: "Use of unresolved identifier 'VENTransactionMethodAPI'"

If anyone has any insight into how to resolve this issue let me know. Thanks

sanjams2 commented 9 years ago

Resolved. This is the necessary code for anyone who has this same problem...

Venmo.sharedInstance().defaultTransactionMethod = VENTransactionMethod.API