Reputation: 788
I am trying to do the payment using https://www.balancedpayments.com/ . They have their iPhone library for this https://github.com/balanced/balanced-ios . The problem is that there is not enough documentation on how the Balanced.framework has to be added in the XCode 4.5 project?
Upvotes: 0
Views: 479
Reputation: 1937
The balanced-ios project has changed quite a bit since this question was asked. It now creates a static library instead of a framework. This change was made for the reasons described in balanced-ios Project Architecture.
To integrate balanced-ios into iOS projects, do the following:
Code usage examples can be found in the README at https://github.com/balanced/balanced-ios
Upvotes: 1
Reputation: 96
Follow this issue on Github. The lack of linking Balanced.framework is related to Xcode templates. The fix is documented in the project's "Contributing" section. You need to build it.
Upvotes: 1
Reputation: 1724
You Just Need to add those Balanced- Classes as a static library, It will work out.
Add a Static Library to your Project. Now add those balanced classes to your static Library.
Goto YourProject->Target->BuildPhases->LinkWithBinaryLibraries Here add the StaticLibrary.
Hope this will help you.
Upvotes: 1
Reputation: 29084
Usage:
#import <Balanced/Balanced.h>
Balanced *balanced = [[Balanced alloc] initWithMarketplaceURI:@"/v1/marketplaces/TEST-MP2autgNHAZxRWZs76RriOze"];
BPCard *card = [[BPCard alloc] initWithNumber:@"4242424242424242" expirationMonth:8 expirationYear:2025 securityCode:@"123"];
If you need more help, look at the example project they have attached...
Upvotes: 3