SKPaymentMBS shared methods

Online Documentation   -   Statistics   -   FAQ   -   Plugin Parts (All, Dependencies)   -   Class hierarchy

New in Version 22.2 22.3 22.4 22.5 23.0 23.1 23.2 23.3 23.4 23.5 24.0 24.1

The list of the   topics,   classes,   interfaces,   controls,   modules,   global methods by category,   global methods by name,   screenshots,   licenses   and   examples.

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.


💬 Ask a question or report a problem