Skip to content

Commit e26f6a5

Browse files
authored
Merge pull request #14 from pkordal/bugfix/iOS14AndProductIdentifier
In iOS14 comparing payment fails for successful purchase.
2 parents 0ac0b16 + 4d00dd0 commit e26f6a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/SKPayment+Promise.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private class PaymentObserver: NSObject, SKPaymentTransactionObserver {
2323
}
2424

2525
func paymentQueue(_ queue: SKPaymentQueue, updatedTransactions transactions: [SKPaymentTransaction]) {
26-
guard let transaction = transactions.first(where: { $0.payment == payment }) else {
26+
guard let transaction = transactions.first(where: { $0.payment.productIdentifier == payment.productIdentifier }) else {
2727
return
2828
}
2929
switch transaction.transactionState {

0 commit comments

Comments
 (0)