Platforms to show: All Mac Windows Linux Cross-Platform

Back to SKPaymentMBS class.

SKPaymentMBS.paymentWithProduct(product as SKProductMBS) as SKPaymentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method StoreKit MBS MacCloud Plugin 11.2 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new payment for the specified product.
Example
dim product as SKProductMBS // your product
dim queue as SKPaymentQueueMBS // your queue

dim payment as SKPaymentMBS = SKPaymentMBS.paymentWithProduct(product)
MsgBox str(payment.quantity)+" units of "+product.localizedTitle

queue.addPayment payment

product: The product the user wishes to purchase.

This factory Method in Cocoa Core Competencies uses the productIdentifier property obtained from the product parameter to create and return a new payment with that identifier. The quantity property defaults to 1.

To create a SKPaymentMBS object with a quantity greater than 1, create a SKMutablePaymentMBS object, adjust its quantity property and then add it to the payment queue.

Available in Mac OS X v10.7 and later.

The items on this page are in the following plugins: MBS MacCloud Plugin.


The biggest plugin in space...