Instantly share code, notes, and snippets.

What would you like to do?
Send a payment request to App Store once user select a product to purchase (Obj-C)
-(void)purchase:(SKProduct *)product {
if ([SKPaymentQueue canMakePayments]) {
// add this payment to the payment queue
SKPayment *payment = [SKPayment paymentWithProduct:product];
[[SKPaymentQueue defaultQueue] addPayment:payment];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment