SDK Setup

Get started with your Mac App Store implementation.

Downloads
Mac (App Store) SDK
Download the latest version of the Mac SDK.

1 Add to project

Add the Paddle framework to your Xcode project by dragging from the finder. macsdk-addtoproject

2 Add to target

Add the Paddle framework to your Xcode project by dragging from the finder. macsdk-addtotarget

3 Copy files

Now you need to tell Xcode to copy the framework into your project. Still within ‘Build Phases’ add a build phase (New Copy Files Build Phase), make sure ‘Destination’ is set to ‘Frameworks’. macsdk-copyfilesbuildphase

4 Sandbox settings

If your app is sandboxed you should enable Outgoing Connection in your Capabilities/Entitlements to allow the framework to send data to Paddle. macsdkmas-sandboxing

5 Integration code

The only remaining job is to import the headers into your class (usually AppDelegate.h) and set your keys.


#import <Paddle/Paddle.h>
	
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification {
    Paddle *paddle = [Paddle sharedInstance];
    [paddle setProductId:@"503866"];
    [paddle setVendorId:@"13578"];
    [paddle setApiKey:@"298c1c56fa2c2733220d54fdf211ea49"];
}

func applicationDidFinishLaunching(aNotification: NSNotification) {
    let paddle = Paddle.sharedInstance()
    paddle.setProductId("503866")
    paddle.setVendorId("13578")
    paddle.setApiKey("298c1c56fa2c2733220d54fdf211ea49")
}
Was this page helpful?