You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/guides/in-app-purchases/ios-in-app-purchases.md
+18-4
Original file line number
Diff line number
Diff line change
@@ -43,9 +43,12 @@ To begin with, **the value of your offers** (= payment options) is vital in maki
43
43
`<asset id>_<access fee id>`
44
44
45
45
According to this product/access fee correlation, by purchasing **one product** from a native ecosystem, the end-users are in fact purchasing **one price** from our system.
46
-
As a merchant, you need to make sure that you have entered the **accurate value** as a product ID and then forward this information using the **validate method** of our native SDKs (illustrated below). This is crucial for having both the payment and access records entered in our system correctly, as well as for ensuring that your end-users will enjoy a cross-platform access on different devices for the purchased content.
46
+
As a merchant, you need to make sure that you have entered the **accurate value** as a product ID. This is crucial for having both the payment and access records entered in our system correctly, as well as for ensuring that your end-users will enjoy a cross-platform access on different devices for the purchased content.
47
+
To enable in-app payment, the application should communicate the payment information with the InPlayer system via the native SDK libraries.
47
48
48
-
**The validate method for iOS:**
49
+
**The validate method for iOS for V1 notifications:**
50
+
51
+
The in-app payment process ends with a **receipt** generated by the native Apple system. Thus, via the **validate method for V1 notifications** in our SDK libraries, this payment receipt is to be forwarded to the InPlayer system, as well as the product ID.
49
52
50
53
```swift
51
54
publicstaticfuncvalidate(
@@ -56,9 +59,20 @@ public static func validate(
56
59
)
57
60
```
58
61
59
-
To enable in-app payment, the application should communicate the payment information with the InPlayer system via the native SDK libraries. More specifically, the in-app payment process ends with a **receipt** generated by the native Apple system. Thus, via the **validate method** in our SDK libraries, this payment receipt is to be forwarded to the InPlayer system.
62
+
**The validate method for iOS for V2 notifications:**
63
+
64
+
The in-app payment process ends with a **transaction** generated by the native Apple system. Thus, via the **validate method for V2 notificiations** in our SDK libraries, only the transaction ID is to be forwarded to the InPlayer system.
Once our system receives this payment information, as a protection measure, it engages into validating that the receipt is both existing and valid in the native ecosystem (the communication with the native ecosystem is done via the parameters entered during the initial integration process). After the validity of the receipt is confirmed, our system will create and store all the relevant information regarding the in-app payment.
75
+
Once our system receives this payment information, as a protection measure, it engages into validating that the receipt/transaction is both existing and valid in the native ecosystem (the communication with the native ecosystem is done via the parameters entered during the initial integration process). After the validity of the receipt/transaction is confirmed, our system will create and store all the relevant information regarding the in-app payment.
0 commit comments