<!--
{
  "availability" : [
    "iOS: 3.0.0 - 18.0.0",
    "iPadOS: 3.0.0 - 18.0.0",
    "macCatalyst: 13.1.0 - 18.0.0",
    "macOS: 10.7.0 - 15.0.0",
    "tvOS: -",
    "visionOS: 1.0.0 - 2.0.0",
    "watchOS: 6.2.0 - 11.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "StoreKit",
  "identifier" : "/documentation/StoreKit/SKPayment",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "StoreKit"
    ],
    "preciseIdentifier" : "c:objc(cs)SKPayment"
  },
  "title" : "SKPayment"
}
-->

# SKPayment

A request to the App Store to process payment for additional functionality that your app offers.

```
class SKPayment
```

## Overview

A payment object identifies a product and the quantity of those items the user would like to purchase.

## Topics

### Creating Payments

[`+  paymentWithProduct:`](/documentation/StoreKit/SKPayment/init(product:))

Returns a new payment for the specified product.

[`+  paymentWithProductIdentifier:`](/documentation/StoreKit/SKPayment/paymentWithProductIdentifier:)

Returns a new payment with the specified product identifier.

### Getting Payment Details

[`productIdentifier`](/documentation/StoreKit/SKPayment/productIdentifier)

A string used to identify a product that can be purchased from within your app.

[`quantity`](/documentation/StoreKit/SKPayment/quantity)

The number of items the user wants to purchase.

[`requestData`](/documentation/StoreKit/SKPayment/requestData)

Reserved for future use.

[`applicationUsername`](/documentation/StoreKit/SKPayment/applicationUsername)

A string that associates the transaction with a user account on your service.

### Simulating Purchases for Testing

[`simulatesAskToBuyInSandbox`](/documentation/StoreKit/SKPayment/simulatesAskToBuyInSandbox)

A Boolean value that produces an “ask to buy” flow for this payment in the sandbox.

### Getting Discount Details

[`paymentDiscount`](/documentation/StoreKit/SKPayment/paymentDiscount)

The details of the discount offer to apply to the payment.

[`SKPaymentDiscount`](/documentation/StoreKit/SKPaymentDiscount)

The signed discount to apply to a payment.

## Relationships

### Inherited By

[`SKMutablePayment`](/documentation/StoreKit/SKMutablePayment)

### Conforms To

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`NSMutableCopying`](/documentation/Foundation/NSMutableCopying)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`Hashable`](/documentation/Swift/Hashable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`NSCopying`](/documentation/Foundation/NSCopying)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)