Platforms to show: All Mac Windows Linux Cross-Platform

Back to SKMutablePaymentMBS class.

SKMutablePaymentMBS.paymentWithProduct(product as SKProductMBS) as SKMutablePaymentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method StoreKit MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new payment for the specified product with the given quantity.
Example
dim product as SKProductMBS // your product
dim payment as SKMutablePaymentMBS = SKMutablePaymentMBS.paymentWithProduct(product)

MsgBox str(payment.quantity)+" units of "+product.localizedTitle

product: The product the user wishes to purchase.
quantity: Optional quantity. If you don't pass it, we default to 1.

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.

Available in Mac OS X v10.7 and later.

See also:

SKMutablePaymentMBS.paymentWithProduct(product as SKProductMBS, quantity as Integer) as SKMutablePaymentMBS

Type Topic Plugin Version macOS Windows Linux iOS Targets
shared method StoreKit MBS MacCloud Plugin 11.3 ✅ Yes ❌ No ❌ No ✅ Yes Desktop & iOS
Returns a new payment for the specified product with the given quantity.
Example
dim product as SKProductMBS // your product
dim payment as SKMutablePaymentMBS = SKMutablePaymentMBS.paymentWithProduct(product, 5)

MsgBox str(payment.quantity)+" units of "+product.localizedTitle

product: The product the user wishes to purchase.
quantity: Optional quantity. If you don't pass it, we default to 1.

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.

Available in Mac OS X v10.7 and later.

See also:

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


The biggest plugin in space...