# IAPHUB with subscriptions. IAPHUB component from PragmaFlow

**URL:** <https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448>\
**Category:** Get Help\
**Created:** [May 20, 2022, 3:57pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448 "2022-05-20T15:57:47Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RonDeveloper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rondeveloper/32/18539_2.png) [@RonDeveloper](https://forum.adalo.com/u/RonDeveloper)\
**Post date:** [May 20, 2022, 3:57pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/1 "2022-05-20T15:57:47Z")

</div>

I setup the IAPHUB SDK with IOS and SWIFT which works fine in sandbox mode. After that I setup the IAPHUB component with the same parameters, but still getting back only “Actions when an error occurred” and no “Log” string. I’m not sure if the IAPHUB component is working at all at the moment? Has anyone a working link to IAPHUB with IOS and only subscription?

By the way the support from IAPHUB is awesome and

 ![Bildschirmfoto 2022-05-20 um 17.54.14](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/2/629327b6c6e0edb38e04fba6eba3bf3beff1df4d.png)  
I have good news, the support send me the following answer: _“We just added Adalo on our roadmap, we will review the plugin and work on improvements in the near future”_

---

<div class="post-metadata">

**Author:** ![Mauro](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Mauro](https://forum.adalo.com/u/Mauro)\
**Post date:** [May 20, 2022, 4:33pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/2 "2022-05-20T16:33:19Z")

</div>

Hi Ron. With this user id it will not work. You need to randomize a unique id number. Im using IAPHUB subscriptions, with no problems

---

<div class="post-metadata">

**Author:** ![RonDeveloper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rondeveloper/32/18539_2.png) [@RonDeveloper](https://forum.adalo.com/u/RonDeveloper)\
**Post date:** [May 20, 2022, 7:40pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/3 "2022-05-20T19:40:49Z")

</div>

Thanks for the fast answer and great to hear the component is working. Maybe I’m making another mistake. Her are the steps I’m using:

1.) Setup Sandbox Testers

 ![Screen Shot 2022-05-20 at 21.11.16](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/9/9961b9827df95814f8d96c1446d8d2c19a87154e.png)  
2.) Setup the Subscription Group  
 ![Screen Shot 2022-05-20 at 21.13.32](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/1/8/18e3a2c38bd9a47d366dc595dcaa1b2b4bc29bff.png)  
3.) Setup Subscriptions  
 ![Screen Shot 2022-05-20 at 21.15.39](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/9/0/90eb73ec3c4dfa4b3c91aec9cc1c270b8808a062.png)

4.) I’ve created in Adalo a “Products” Database Collection and entered the details manually exact the same as in the subscriptions

 ![Screen Shot 2022-05-20 at 21.19.52](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/4/3/430fdfb8ea9cecc0aaea61237116a8c67c7b8e2b.png)

5.) I’ve created a screen showing all “Products”, if the user taps a product I’m linking to the “IAPhub” screen.

 ![Screen Shot 2022-05-20 at 21.26.31](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/a/caf80fd984cea7ae0e78c160bf51e6b4b20bd6e3.png)

On the IAPhub screen I’ve the IAPHUB component from PragmaFlow, a “Status” and a “Log” input field.

The IAPHUB component I’ve now added a randomizer for the User id

 ![Screen Shot 2022-05-20 at 21.30.39](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/0/8/081a5155900c472138a4ea38693de0d900aa40a0.png)

 ![Screen Shot 2022-05-20 at 21.32.30](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/0/b/0b4133428d1cc962bd7fef7b28b3548ffaf95233.png)

 ![Screen Shot 2022-05-20 at 21.33.32](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/d/1/d134467867a6c3643099908bff5e5282f8981e90.png)

here is the Action setup

 ![Screen Shot 2022-05-20 at 21.35.16](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/6/4/643bb6b7c2ea3b0dcba75e133f257682d855c68c.png)

 ![Screen Shot 2022-05-20 at 21.35.53](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/2/0/20a99416fe070f8bc42d886e0a5e19b8c462e2b1.png)

 ![Screen Shot 2022-05-20 at 21.36.43](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/1/a/1a3c7f65aaa6a1f065e5c8137d3d1e79225e5998.png)

Now when I press the IAPHUB button component the “Action when an error occurred” is triggered and in the log I’m getting the message: **{“code”:“sku\_not\_for\_sale”}**

Where am I making the mistake?

---

<div class="post-metadata">

**Author:** ![Mauro](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Mauro](https://forum.adalo.com/u/Mauro)\
**Post date:** [May 22, 2022, 6:34pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/4 "2022-05-22T18:34:08Z")

</div>

The random formula does not qork. You need to use randomizer component in adalo. Try to do it

---

<div class="post-metadata">

**Author:** ![RonDeveloper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rondeveloper/32/18539_2.png) [@RonDeveloper](https://forum.adalo.com/u/RonDeveloper)\
**Post date:** [May 22, 2022, 8:38pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/5 "2022-05-22T20:38:09Z")

</div>

I think for testing the RAND function is not a problem because it generates a unique userID. Do you have the IAPHUB component from PragmaFlow up and running for IOS?

I can see in the IAPHUB dashboard the users are created, but I’m getting an error from the component only on IOS “{“code”:“sku\_not\_for\_sale”}” ???

 ![Screen Shot 2022-05-22 at 22.39.25](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/c/3/c308761e354d1ba1b3366e6ba74fd37b902db539.png)

---

<div class="post-metadata">

**Author:** ![Mauro](https://avatars.discourse-cdn.com/v4/letter/m/45deac/32.png) [@Mauro](https://forum.adalo.com/u/Mauro)\
**Post date:** [May 23, 2022, 2:34am UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/6 "2022-05-23T02:34:55Z")

</div>

Now I see. I did not have this problem. But, yes, it is working for IOS.

Try To check Step by step, and follow exactly what IAPHUB dev sugestted. (You can fins it in this fórum).

Also, Did You created product and listing in IAPHUB platform?

---

<div class="post-metadata">

**Author:** ![RonDeveloper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/rondeveloper/32/18539_2.png) [@RonDeveloper](https://forum.adalo.com/u/RonDeveloper)\
**Post date:** [May 23, 2022, 5:38pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/7 "2022-05-23T17:38:42Z")

</div>

> [@RonDeveloper](#):
>
> IAPHUB component from PragmaFlow

Yes I’ve created the products in IAPHUB and with Android it is working. I followed the instruction I fount here at the forum but no success on IOS? I’ve posted on that entry at the beginning everything I setup, would be great if you can have a look on it and see if you can find any error?

 ![Untitled1](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/3X/d/b/dba7e803ea31fca6c178aee516f75c7fe35446f6.jpeg)

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [June 2, 2022, 5:39pm UTC](https://forum.adalo.com/t/iaphub-with-subscriptions-iaphub-component-from-pragmaflow/27448/8 "2022-06-02T17:39:35Z")

</div>

Closed on June 2, 2022, 5:39pm UTC

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
