From b15ffa47f3baf6ac6d111be708079b22403865c5 Mon Sep 17 00:00:00 2001 From: hyochan Date: Thu, 17 Oct 2024 11:54:27 +0000 Subject: [PATCH] deploy: b7aa8fa6d5c303bfcdae3cd75b1299280b211d9d --- 404.html | 4 ++-- ...3da4c.fb724b5c.js => 03e3da4c.972cf609.js} | 2 +- ...e31f3.70b6735c.js => 081e31f3.3565b883.js} | 2 +- ...14cc1.3cf33652.js => 22614cc1.3080bd43.js} | 2 +- ...66a1c.2dd2e8b2.js => 2e166a1c.14652514.js} | 2 +- ...ee279.56db6f4c.js => 33bee279.3585b5fa.js} | 2 +- ...ba196.2f3b3963.js => 389ba196.975f1d9c.js} | 2 +- ...a6091.7a59b8a9.js => 452a6091.f4586f6f.js} | 2 +- ...793b5.a2b69288.js => 4fb793b5.c982d8de.js} | 2 +- ...07341.b4612a86.js => 58807341.17858b74.js} | 2 +- ...eb83e.67c331ad.js => 5ceeb83e.21c6e34d.js} | 2 +- ...7a0aa.0de7b9d5.js => 78a7a0aa.c229c184.js} | 2 +- ...57215.943b0b91.js => 7b557215.eb1442c4.js} | 2 +- ...5c5c5.79983ea3.js => 7e75c5c5.d97c2477.js} | 2 +- ...f8d59.fc9df4c8.js => 842f8d59.765812c4.js} | 2 +- ...3aab0.285b395a.js => 84f3aab0.6f6a75fa.js} | 2 +- ...e3ffc.89ff2f16.js => 86ae3ffc.9f5ba53d.js} | 2 +- ...50a9f.08ec0441.js => 86b50a9f.c6261d81.js} | 2 +- ...14f15.239e6d40.js => 92814f15.d252cf81.js} | 2 +- ...fbc45.f5ac5b80.js => a3efbc45.e0717f14.js} | 2 +- ...f4ca5.ccdff68b.js => a80f4ca5.bf8d4a71.js} | 2 +- ...39898.9db5977c.js => a9039898.61a4e642.js} | 2 +- assets/js/ab22a499.c1184bc0.js | 1 + assets/js/ab22a499.f2fe5ecc.js | 1 - ...2bd5e.37564e11.js => c162bd5e.a6004864.js} | 2 +- ...0365d.992ec1c4.js => c200365d.333234ba.js} | 2 +- ...d2f73.4222c425.js => ceed2f73.c2d79cf7.js} | 2 +- ...c2d7c.e48e401a.js => d4bc2d7c.c286d244.js} | 2 +- ...e484a.6adf1ac0.js => dc4e484a.c03231f0.js} | 2 +- ...644ad.517b47dd.js => dc5644ad.c0b8f93e.js} | 2 +- ...14729.c7cf0a6e.js => e4314729.4cb4292c.js} | 2 +- ...0aed3.4abdee64.js => e5d0aed3.962da969.js} | 2 +- ...e1277.48904b02.js => e9de1277.9298e6be.js} | 2 +- ...79d07.d1aca8a7.js => f1279d07.57e6b9db.js} | 2 +- ...33dc9.29b6ad52.js => f1333dc9.39cb3246.js} | 2 +- ...3a0a5.8badb10f.js => f1e3a0a5.3ba5e52b.js} | 2 +- ...0e843.2033d9e4.js => f290e843.11e56ae8.js} | 2 +- ...ebfbf.e2020fe5.js => f6aebfbf.1d3bc218.js} | 2 +- assets/js/runtime~main.3060cdd4.js | 1 - assets/js/runtime~main.63bd2cd7.js | 1 + docs/api-reference/hooks/index.html | 4 ++-- .../amazon/validate-receipt-amazon/index.html | 4 ++-- .../acknowledge-purchase-android/index.html | 4 ++-- .../index.html | 4 ++-- .../index.html | 4 ++-- .../validate-receipt-android/index.html | 4 ++-- .../ios/buy-promoted-product/index.html | 4 ++-- .../methods/ios/clear-products-ios/index.html | 4 ++-- .../ios/clear-transaction-ios/index.html | 4 ++-- .../ios/get-pending-purchases-ios/index.html | 4 ++-- .../ios/get-promoted-product-ios/index.html | 4 ++-- .../index.html | 4 ++-- .../request-purchase-with-offer/index.html | 4 ++-- .../index.html | 4 ++-- .../ios/validate-receipt-ios/index.html | 4 ++-- .../promoted-product-listener/index.html | 4 ++-- .../purchase-error-listener/index.html | 4 ++-- .../purchase-updated-listener/index.html | 4 ++-- docs/api/classes/PurchaseError/index.html | 6 ++--- docs/api/enums/ErrorCode/index.html | 6 ++--- .../api/enums/InstallSourceAndroid/index.html | 6 ++--- docs/api/enums/ProductType/index.html | 6 ++--- .../api/enums/PurchaseStateAndroid/index.html | 6 ++--- .../enums/ReplacementModesAndroid/index.html | 6 ++--- .../api/enums/SubscriptionPlatform/index.html | 6 ++--- docs/api/enums/TransactionReason/index.html | 6 ++--- docs/api/interfaces/Discount/index.html | 6 ++--- .../IapAmazon.AmazonModuleProps/index.html | 6 ++--- .../IapAndroid.AndroidModuleProps/index.html | 6 ++--- .../IapIos.IosModuleProps/index.html | 6 ++--- .../IapIosSk2.IosModulePropsSk2/index.html | 6 ++--- .../interfaces/NativeModuleProps/index.html | 6 ++--- .../interfaces/PricingPhaseAndroid/index.html | 6 ++--- docs/api/interfaces/ProductAndroid/index.html | 6 ++--- docs/api/interfaces/ProductCommon/index.html | 6 ++--- docs/api/interfaces/ProductIOS/index.html | 6 ++--- .../api/interfaces/ProductPurchase/index.html | 6 ++--- docs/api/interfaces/PurchaseResult/index.html | 6 ++--- .../RequestPurchaseAndroid/index.html | 6 ++--- .../RequestPurchaseBaseAndroid/index.html | 6 ++--- .../interfaces/RequestPurchaseIOS/index.html | 6 ++--- .../RequestSubscriptionAndroid/index.html | 6 ++--- .../interfaces/SubscriptionAmazon/index.html | 6 ++--- .../interfaces/SubscriptionAndroid/index.html | 6 ++--- .../api/interfaces/SubscriptionIOS/index.html | 6 ++--- .../interfaces/SubscriptionOffer/index.html | 6 ++--- .../SubscriptionOfferAndroid/index.html | 6 ++--- .../SubscriptionPurchase/index.html | 6 ++--- docs/api/modules/IapAmazon/index.html | 8 +++---- docs/api/modules/IapAndroid/index.html | 8 +++---- docs/api/modules/IapIos/index.html | 16 ++++++------- docs/api/modules/IapIosSk2/index.html | 8 +++---- docs/api/modules/index.html | 24 +++++++++---------- docs/faq/index.html | 4 ++-- docs/get-started/index.html | 4 ++-- docs/guides/amazon-iap/index.html | 6 ++--- docs/guides/lifecycle/index.html | 4 ++-- docs/guides/purchases/index.html | 4 ++-- docs/guides/receipts/index.html | 4 ++-- docs/guides/troubleshooting/index.html | 4 ++-- docs/migrate_to_10.0.0/index.html | 4 ++-- docs/migrate_to_11.0.0/index.html | 4 ++-- docs/migrate_to_12.0.0/index.html | 4 ++-- .../index.html | 4 ++-- docs/old-to-remove-product/index.html | 4 ++-- docs/support-us/index.html | 4 ++-- index.html | 4 ++-- 107 files changed, 226 insertions(+), 226 deletions(-) rename assets/js/{03e3da4c.fb724b5c.js => 03e3da4c.972cf609.js} (88%) rename assets/js/{081e31f3.70b6735c.js => 081e31f3.3565b883.js} (86%) rename assets/js/{22614cc1.3cf33652.js => 22614cc1.3080bd43.js} (88%) rename assets/js/{2e166a1c.2dd2e8b2.js => 2e166a1c.14652514.js} (96%) rename assets/js/{33bee279.56db6f4c.js => 33bee279.3585b5fa.js} (94%) rename assets/js/{389ba196.2f3b3963.js => 389ba196.975f1d9c.js} (95%) rename assets/js/{452a6091.7a59b8a9.js => 452a6091.f4586f6f.js} (87%) rename assets/js/{4fb793b5.a2b69288.js => 4fb793b5.c982d8de.js} (96%) rename assets/js/{58807341.b4612a86.js => 58807341.17858b74.js} (82%) rename assets/js/{5ceeb83e.67c331ad.js => 5ceeb83e.21c6e34d.js} (84%) rename assets/js/{78a7a0aa.0de7b9d5.js => 78a7a0aa.c229c184.js} (82%) rename assets/js/{7b557215.943b0b91.js => 7b557215.eb1442c4.js} (94%) rename assets/js/{7e75c5c5.79983ea3.js => 7e75c5c5.d97c2477.js} (94%) rename assets/js/{842f8d59.fc9df4c8.js => 842f8d59.765812c4.js} (88%) rename assets/js/{84f3aab0.285b395a.js => 84f3aab0.6f6a75fa.js} (96%) rename assets/js/{86ae3ffc.89ff2f16.js => 86ae3ffc.9f5ba53d.js} (95%) rename assets/js/{86b50a9f.08ec0441.js => 86b50a9f.c6261d81.js} (97%) rename assets/js/{92814f15.239e6d40.js => 92814f15.d252cf81.js} (92%) rename assets/js/{a3efbc45.f5ac5b80.js => a3efbc45.e0717f14.js} (83%) rename assets/js/{a80f4ca5.ccdff68b.js => a80f4ca5.bf8d4a71.js} (94%) rename assets/js/{a9039898.9db5977c.js => a9039898.61a4e642.js} (97%) create mode 100644 assets/js/ab22a499.c1184bc0.js delete mode 100644 assets/js/ab22a499.f2fe5ecc.js rename assets/js/{c162bd5e.37564e11.js => c162bd5e.a6004864.js} (94%) rename assets/js/{c200365d.992ec1c4.js => c200365d.333234ba.js} (94%) rename assets/js/{ceed2f73.4222c425.js => ceed2f73.c2d79cf7.js} (91%) rename assets/js/{d4bc2d7c.e48e401a.js => d4bc2d7c.c286d244.js} (95%) rename assets/js/{dc4e484a.6adf1ac0.js => dc4e484a.c03231f0.js} (94%) rename assets/js/{dc5644ad.517b47dd.js => dc5644ad.c0b8f93e.js} (94%) rename assets/js/{e4314729.c7cf0a6e.js => e4314729.4cb4292c.js} (87%) rename assets/js/{e5d0aed3.4abdee64.js => e5d0aed3.962da969.js} (97%) rename assets/js/{e9de1277.48904b02.js => e9de1277.9298e6be.js} (97%) rename assets/js/{f1279d07.d1aca8a7.js => f1279d07.57e6b9db.js} (94%) rename assets/js/{f1333dc9.29b6ad52.js => f1333dc9.39cb3246.js} (94%) rename assets/js/{f1e3a0a5.8badb10f.js => f1e3a0a5.3ba5e52b.js} (97%) rename assets/js/{f290e843.2033d9e4.js => f290e843.11e56ae8.js} (93%) rename assets/js/{f6aebfbf.e2020fe5.js => f6aebfbf.1d3bc218.js} (97%) delete mode 100644 assets/js/runtime~main.3060cdd4.js create mode 100644 assets/js/runtime~main.63bd2cd7.js diff --git a/404.html b/404.html index 7296e1ef2..6f7f791e3 100644 --- a/404.html +++ b/404.html @@ -4,13 +4,13 @@ Page Not Found | React Native IAP - +
Skip to main content

Page Not Found

We could not find what you were looking for.

Please contact the owner of the site that linked you to the original URL and let them know their link is broken.

- + \ No newline at end of file diff --git a/assets/js/03e3da4c.fb724b5c.js b/assets/js/03e3da4c.972cf609.js similarity index 88% rename from assets/js/03e3da4c.fb724b5c.js rename to assets/js/03e3da4c.972cf609.js index 424cc4a8e..01fdaf27e 100644 --- a/assets/js/03e3da4c.fb724b5c.js +++ b/assets/js/03e3da4c.972cf609.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8890],{5680:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var o=r.createContext({}),l=function(e){var n=r.useContext(o),t=n;return e&&(t="function"==typeof e?e(n):s(s({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(o.Provider,{value:n},e.children)},d="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},g=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,o=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),d=l(t),g=a,y=d["".concat(o,".").concat(g)]||d[g]||u[g]||i;return t?r.createElement(y,s(s({ref:n},c),{},{components:t})):r.createElement(y,s({ref:n},c))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,s=new Array(i);s[0]=g;var p={};for(var o in n)hasOwnProperty.call(n,o)&&(p[o]=n[o]);p.originalType=e,p[d]="string"==typeof e?e:a,s[1]=p;for(var l=2;l{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>s,default:()=>u,frontMatter:()=>i,metadata:()=>p,toc:()=>l});var r=t(8168),a=(t(6540),t(5680));const i={},s=void 0,p={unversionedId:"api/interfaces/PurchaseResult",id:"api/interfaces/PurchaseResult",title:"PurchaseResult",description:"react-native-iap / Exports / PurchaseResult",source:"@site/docs/api/interfaces/PurchaseResult.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/PurchaseResult",permalink:"/docs/api/interfaces/PurchaseResult",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/PurchaseResult.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductPurchase",permalink:"/docs/api/interfaces/ProductPurchase"},next:{title:"RequestPurchaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseAndroid"}},o={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"code",id:"code",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"debugMessage",id:"debugmessage",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"message",id:"message",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"purchaseToken",id:"purchasetoken",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"responseCode",id:"responsecode",level:3},{value:"Defined in",id:"defined-in-4",level:4}],c={toc:l},d="wrapper";function u(e){let{components:n,...t}=e;return(0,a.yg)(d,(0,r.A)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PurchaseResult"),(0,a.yg)("h1",{id:"interface-purchaseresult"},"Interface: PurchaseResult"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"properties"},"Properties"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#code"},"code")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#debugmessage"},"debugMessage")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#message"},"message")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#purchasetoken"},"purchaseToken")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#responsecode"},"responseCode"))),(0,a.yg)("h2",{id:"properties-1"},"Properties"),(0,a.yg)("h3",{id:"code"},"code"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"code"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L100"},"types/index.ts:100")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"debugmessage"},"debugMessage"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"debugMessage"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L99"},"types/index.ts:99")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"message"},"message"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"message"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L101"},"types/index.ts:101")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"purchasetoken"},"purchaseToken"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"purchaseToken"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L102"},"types/index.ts:102")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"responsecode"},"responseCode"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"responseCode"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"number")),(0,a.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L98"},"types/index.ts:98")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8890],{5680:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function s(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var o=r.createContext({}),l=function(e){var n=r.useContext(o),t=n;return e&&(t="function"==typeof e?e(n):s(s({},n),e)),t},c=function(e){var n=l(e.components);return r.createElement(o.Provider,{value:n},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},g=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,o=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),u=l(t),g=a,y=u["".concat(o,".").concat(g)]||u[g]||d[g]||i;return t?r.createElement(y,s(s({ref:n},c),{},{components:t})):r.createElement(y,s({ref:n},c))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,s=new Array(i);s[0]=g;var p={};for(var o in n)hasOwnProperty.call(n,o)&&(p[o]=n[o]);p.originalType=e,p[u]="string"==typeof e?e:a,s[1]=p;for(var l=2;l{t.r(n),t.d(n,{assets:()=>o,contentTitle:()=>s,default:()=>d,frontMatter:()=>i,metadata:()=>p,toc:()=>l});var r=t(8168),a=(t(6540),t(5680));const i={},s=void 0,p={unversionedId:"api/interfaces/PurchaseResult",id:"api/interfaces/PurchaseResult",title:"PurchaseResult",description:"react-native-iap / Exports / PurchaseResult",source:"@site/docs/api/interfaces/PurchaseResult.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/PurchaseResult",permalink:"/docs/api/interfaces/PurchaseResult",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/PurchaseResult.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductPurchase",permalink:"/docs/api/interfaces/ProductPurchase"},next:{title:"RequestPurchaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseAndroid"}},o={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"code",id:"code",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"debugMessage",id:"debugmessage",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"message",id:"message",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"purchaseToken",id:"purchasetoken",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"responseCode",id:"responsecode",level:3},{value:"Defined in",id:"defined-in-4",level:4}],c={toc:l},u="wrapper";function d(e){let{components:n,...t}=e;return(0,a.yg)(u,(0,r.A)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PurchaseResult"),(0,a.yg)("h1",{id:"interface-purchaseresult"},"Interface: PurchaseResult"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"properties"},"Properties"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#code"},"code")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#debugmessage"},"debugMessage")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#message"},"message")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#purchasetoken"},"purchaseToken")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult#responsecode"},"responseCode"))),(0,a.yg)("h2",{id:"properties-1"},"Properties"),(0,a.yg)("h3",{id:"code"},"code"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"code"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L100"},"types/index.ts:100")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"debugmessage"},"debugMessage"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"debugMessage"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L99"},"types/index.ts:99")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"message"},"message"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"message"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L101"},"types/index.ts:101")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"purchasetoken"},"purchaseToken"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"purchaseToken"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L102"},"types/index.ts:102")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"responsecode"},"responseCode"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"responseCode"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"number")),(0,a.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L98"},"types/index.ts:98")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/081e31f3.70b6735c.js b/assets/js/081e31f3.3565b883.js similarity index 86% rename from assets/js/081e31f3.70b6735c.js rename to assets/js/081e31f3.3565b883.js index d0ba0fec2..c4a875f8f 100644 --- a/assets/js/081e31f3.70b6735c.js +++ b/assets/js/081e31f3.3565b883.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8372],{5680:(e,n,i)=>{i.d(n,{xA:()=>c,yg:()=>g});var t=i(6540);function r(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function p(e){for(var n=1;n=0||(r[i]=e[i]);return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var d=t.createContext({}),l=function(e){var n=t.useContext(d),i=n;return e&&(i="function"==typeof e?e(n):p(p({},n),e)),i},c=function(e){var n=l(e.components);return t.createElement(d.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},u=t.forwardRef((function(e,n){var i=e.components,r=e.mdxType,a=e.originalType,d=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),y=l(i),u=r,g=y["".concat(d,".").concat(u)]||y[u]||s[u]||a;return i?t.createElement(g,p(p({ref:n},c),{},{components:i})):t.createElement(g,p({ref:n},c))}));function g(e,n){var i=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=i.length,p=new Array(a);p[0]=u;var o={};for(var d in n)hasOwnProperty.call(n,d)&&(o[d]=n[d]);o.originalType=e,o[y]="string"==typeof e?e:r,p[1]=o;for(var l=2;l{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>p,default:()=>s,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=i(8168),r=(i(6540),i(5680));const a={},p=void 0,o={unversionedId:"api/interfaces/ProductCommon",id:"api/interfaces/ProductCommon",title:"ProductCommon",description:"react-native-iap / Exports / ProductCommon",source:"@site/docs/api/interfaces/ProductCommon.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductCommon",permalink:"/docs/api/interfaces/ProductCommon",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductCommon.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductAndroid",permalink:"/docs/api/interfaces/ProductAndroid"},next:{title:"ProductIOS",permalink:"/docs/api/interfaces/ProductIOS"}},d={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"price",id:"price",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"productIds",id:"productids",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"title",id:"title",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-9",level:4}],c={toc:l},y="wrapper";function s(e){let{components:n,...i}=e;return(0,r.yg)(y,(0,t.A)({},c,i,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductCommon"),(0,r.yg)("h1",{id:"interface-productcommon"},"Interface: ProductCommon"),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"ProductCommon"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductAndroid"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductIOS"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionAmazon"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionAmazon"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionIOS"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#type"},"type"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"countrycode"},"countryCode"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L64"},"types/index.ts:64")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"currency"},"currency"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"currency"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L61"},"types/index.ts:61")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"description"},"description"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"description"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L59"},"types/index.ts:59")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L62"},"types/index.ts:62")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"originalprice"},"originalPrice"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L63"},"types/index.ts:63")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"price"},"price"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"price"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L60"},"types/index.ts:60")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productid"},"productId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L56"},"types/index.ts:56")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productids"},"productIds"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"productIds"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,r.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L57"},"types/index.ts:57")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"title"},"title"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"title"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L58"},"types/index.ts:58")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"type"},"type"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"type"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'"iap"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"inapp"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"subs"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"sub"')),(0,r.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L55"},"types/index.ts:55")))}s.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8372],{5680:(e,n,i)=>{i.d(n,{xA:()=>c,yg:()=>g});var t=i(6540);function r(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function p(e){for(var n=1;n=0||(r[i]=e[i]);return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var l=t.createContext({}),d=function(e){var n=t.useContext(l),i=n;return e&&(i="function"==typeof e?e(n):p(p({},n),e)),i},c=function(e){var n=d(e.components);return t.createElement(l.Provider,{value:n},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},u=t.forwardRef((function(e,n){var i=e.components,r=e.mdxType,a=e.originalType,l=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),y=d(i),u=r,g=y["".concat(l,".").concat(u)]||y[u]||s[u]||a;return i?t.createElement(g,p(p({ref:n},c),{},{components:i})):t.createElement(g,p({ref:n},c))}));function g(e,n){var i=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=i.length,p=new Array(a);p[0]=u;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o[y]="string"==typeof e?e:r,p[1]=o;for(var d=2;d{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>s,frontMatter:()=>a,metadata:()=>o,toc:()=>d});var t=i(8168),r=(i(6540),i(5680));const a={},p=void 0,o={unversionedId:"api/interfaces/ProductCommon",id:"api/interfaces/ProductCommon",title:"ProductCommon",description:"react-native-iap / Exports / ProductCommon",source:"@site/docs/api/interfaces/ProductCommon.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductCommon",permalink:"/docs/api/interfaces/ProductCommon",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductCommon.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductAndroid",permalink:"/docs/api/interfaces/ProductAndroid"},next:{title:"ProductIOS",permalink:"/docs/api/interfaces/ProductIOS"}},l={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"price",id:"price",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"productIds",id:"productids",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"title",id:"title",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-9",level:4}],c={toc:d},y="wrapper";function s(e){let{components:n,...i}=e;return(0,r.yg)(y,(0,t.A)({},c,i,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductCommon"),(0,r.yg)("h1",{id:"interface-productcommon"},"Interface: ProductCommon"),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"ProductCommon"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductAndroid"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductIOS"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionAmazon"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionAmazon"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionIOS"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon#type"},"type"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"countrycode"},"countryCode"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L64"},"types/index.ts:64")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"currency"},"currency"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"currency"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L61"},"types/index.ts:61")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"description"},"description"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"description"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L59"},"types/index.ts:59")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L62"},"types/index.ts:62")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"originalprice"},"originalPrice"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L63"},"types/index.ts:63")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"price"},"price"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"price"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L60"},"types/index.ts:60")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productid"},"productId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L56"},"types/index.ts:56")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productids"},"productIds"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"productIds"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,r.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L57"},"types/index.ts:57")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"title"},"title"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"title"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L58"},"types/index.ts:58")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"type"},"type"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"type"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'"iap"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"inapp"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"subs"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"sub"')),(0,r.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L55"},"types/index.ts:55")))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/22614cc1.3cf33652.js b/assets/js/22614cc1.3080bd43.js similarity index 88% rename from assets/js/22614cc1.3cf33652.js rename to assets/js/22614cc1.3080bd43.js index 6f71b1709..a43e7d168 100644 --- a/assets/js/22614cc1.3cf33652.js +++ b/assets/js/22614cc1.3080bd43.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5755],{5680:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>y});var i=r(6540);function t(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function d(e){for(var n=1;n=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var s=i.createContext({}),p=function(e){var n=i.useContext(s),r=n;return e&&(r="function"==typeof e?e(n):d(d({},n),e)),r},c=function(e){var n=p(e.components);return i.createElement(s.Provider,{value:n},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},f=i.forwardRef((function(e,n){var r=e.components,t=e.mdxType,a=e.originalType,s=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),l=p(r),f=t,y=l["".concat(s,".").concat(f)]||l[f]||u[f]||a;return r?i.createElement(y,d(d({ref:n},c),{},{components:r})):i.createElement(y,d({ref:n},c))}));function y(e,n){var r=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var a=r.length,d=new Array(a);d[0]=f;var o={};for(var s in n)hasOwnProperty.call(n,s)&&(o[s]=n[s]);o.originalType=e,o[l]="string"==typeof e?e:t,d[1]=o;for(var p=2;p{r.r(n),r.d(n,{assets:()=>s,contentTitle:()=>d,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>p});var i=r(8168),t=(r(6540),r(5680));const a={},d=void 0,o={unversionedId:"api/interfaces/RequestSubscriptionAndroid",id:"api/interfaces/RequestSubscriptionAndroid",title:"RequestSubscriptionAndroid",description:"react-native-iap / Exports / RequestSubscriptionAndroid",source:"@site/docs/api/interfaces/RequestSubscriptionAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestSubscriptionAndroid",permalink:"/docs/api/interfaces/RequestSubscriptionAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestSubscriptionAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestPurchaseIOS",permalink:"/docs/api/interfaces/RequestPurchaseIOS"},next:{title:"SubscriptionAmazon",permalink:"/docs/api/interfaces/SubscriptionAmazon"}},s={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"isOfferPersonalized",id:"isofferpersonalized",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"purchaseTokenAndroid",id:"purchasetokenandroid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"replacementModeAndroid",id:"replacementmodeandroid",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"subscriptionOffers",id:"subscriptionoffers",level:3},{value:"Defined in",id:"defined-in-5",level:4}],c={toc:p},l="wrapper";function u(e){let{components:n,...r}=e;return(0,t.yg)(l,(0,i.A)({},c,r,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestSubscriptionAndroid"),(0,t.yg)("h1",{id:"interface-requestsubscriptionandroid"},"Interface: RequestSubscriptionAndroid"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"RequestPurchaseBaseAndroid"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"RequestSubscriptionAndroid"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#purchasetokenandroid"},"purchaseTokenAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#replacementmodeandroid"},"replacementModeAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#subscriptionoffers"},"subscriptionOffers"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"isofferpersonalized"},"isOfferPersonalized"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isOfferPersonalized"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L220"},"types/index.ts:220")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L218"},"types/index.ts:218")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L219"},"types/index.ts:219")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"purchasetokenandroid"},"purchaseTokenAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"purchaseTokenAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L256"},"types/index.ts:256")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"replacementmodeandroid"},"replacementModeAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"replacementModeAndroid"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/ReplacementModesAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"ReplacementModesAndroid"))),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L257"},"types/index.ts:257")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"subscriptionoffers"},"subscriptionOffers"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"subscriptionOffers"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionOffer"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionOffer")),"[]"),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L258"},"types/index.ts:258")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5755],{5680:(e,n,r)=>{r.d(n,{xA:()=>c,yg:()=>y});var i=r(6540);function t(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var n=1;n=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var s=i.createContext({}),p=function(e){var n=i.useContext(s),r=n;return e&&(r="function"==typeof e?e(n):o(o({},n),e)),r},c=function(e){var n=p(e.components);return i.createElement(s.Provider,{value:n},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},f=i.forwardRef((function(e,n){var r=e.components,t=e.mdxType,a=e.originalType,s=e.parentName,c=d(e,["components","mdxType","originalType","parentName"]),l=p(r),f=t,y=l["".concat(s,".").concat(f)]||l[f]||u[f]||a;return r?i.createElement(y,o(o({ref:n},c),{},{components:r})):i.createElement(y,o({ref:n},c))}));function y(e,n){var r=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var a=r.length,o=new Array(a);o[0]=f;var d={};for(var s in n)hasOwnProperty.call(n,s)&&(d[s]=n[s]);d.originalType=e,d[l]="string"==typeof e?e:t,o[1]=d;for(var p=2;p{r.r(n),r.d(n,{assets:()=>s,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>d,toc:()=>p});var i=r(8168),t=(r(6540),r(5680));const a={},o=void 0,d={unversionedId:"api/interfaces/RequestSubscriptionAndroid",id:"api/interfaces/RequestSubscriptionAndroid",title:"RequestSubscriptionAndroid",description:"react-native-iap / Exports / RequestSubscriptionAndroid",source:"@site/docs/api/interfaces/RequestSubscriptionAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestSubscriptionAndroid",permalink:"/docs/api/interfaces/RequestSubscriptionAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestSubscriptionAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestPurchaseIOS",permalink:"/docs/api/interfaces/RequestPurchaseIOS"},next:{title:"SubscriptionAmazon",permalink:"/docs/api/interfaces/SubscriptionAmazon"}},s={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"isOfferPersonalized",id:"isofferpersonalized",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"purchaseTokenAndroid",id:"purchasetokenandroid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"replacementModeAndroid",id:"replacementmodeandroid",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"subscriptionOffers",id:"subscriptionoffers",level:3},{value:"Defined in",id:"defined-in-5",level:4}],c={toc:p},l="wrapper";function u(e){let{components:n,...r}=e;return(0,t.yg)(l,(0,i.A)({},c,r,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestSubscriptionAndroid"),(0,t.yg)("h1",{id:"interface-requestsubscriptionandroid"},"Interface: RequestSubscriptionAndroid"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"RequestPurchaseBaseAndroid"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"RequestSubscriptionAndroid"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#purchasetokenandroid"},"purchaseTokenAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#replacementmodeandroid"},"replacementModeAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid#subscriptionoffers"},"subscriptionOffers"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"isofferpersonalized"},"isOfferPersonalized"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isOfferPersonalized"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L220"},"types/index.ts:220")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L218"},"types/index.ts:218")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L219"},"types/index.ts:219")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"purchasetokenandroid"},"purchaseTokenAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"purchaseTokenAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L256"},"types/index.ts:256")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"replacementmodeandroid"},"replacementModeAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"replacementModeAndroid"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/ReplacementModesAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"ReplacementModesAndroid"))),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L257"},"types/index.ts:257")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"subscriptionoffers"},"subscriptionOffers"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"subscriptionOffers"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionOffer"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionOffer")),"[]"),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L258"},"types/index.ts:258")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/2e166a1c.2dd2e8b2.js b/assets/js/2e166a1c.14652514.js similarity index 96% rename from assets/js/2e166a1c.2dd2e8b2.js rename to assets/js/2e166a1c.14652514.js index 04495bd21..2b1938857 100644 --- a/assets/js/2e166a1c.2dd2e8b2.js +++ b/assets/js/2e166a1c.14652514.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[622],{5680:(e,n,t)=>{t.d(n,{xA:()=>s,yg:()=>u});var a=t(6540);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function o(e){for(var n=1;n=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var p=a.createContext({}),d=function(e){var n=a.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},s=function(e){var n=d(e.components);return a.createElement(p.Provider,{value:n},e.children)},m="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return a.createElement(a.Fragment,{},n)}},y=a.forwardRef((function(e,n){var t=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),m=d(t),y=r,u=m["".concat(p,".").concat(y)]||m[y]||c[y]||i;return t?a.createElement(u,o(o({ref:n},s),{},{components:t})):a.createElement(u,o({ref:n},s))}));function u(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var i=t.length,o=new Array(i);o[0]=y;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[m]="string"==typeof e?e:r,o[1]=l;for(var d=2;d{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var a=t(8168),r=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/interfaces/NativeModuleProps",id:"api/interfaces/NativeModuleProps",title:"NativeModuleProps",description:"react-native-iap / Exports / NativeModuleProps",source:"@site/docs/api/interfaces/NativeModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/NativeModuleProps",permalink:"/docs/api/interfaces/NativeModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/NativeModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapIosSk2.IosModulePropsSk2",permalink:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"},next:{title:"PricingPhaseAndroid",permalink:"/docs/api/interfaces/PricingPhaseAndroid"}},p={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Methods",id:"methods",level:3},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4}],s={toc:d},m="wrapper";function c(e){let{components:n,...t}=e;return(0,r.yg)(m,(0,a.A)({},s,t,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / NativeModuleProps"),(0,r.yg)("h1",{id:"interface-nativemoduleprops"},"Interface: NativeModuleProps"),(0,r.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"NativeModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AndroidModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AmazonModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapIos.IosModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"IosModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"},(0,r.yg)("inlineCode",{parentName:"a"},"IosModulePropsSk2"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"methods"},"Methods"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners"))),(0,r.yg)("h2",{id:"methods-1"},"Methods"),(0,r.yg)("h3",{id:"addlistener"},"addListener"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"addListener"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"addListener for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"eventType")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"endconnection"},"endConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to end the payment provider connection"),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"initconnection"},"initConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to start a payment provider connection"),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"count")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"number"))))),(0,r.yg)("h4",{id:"returns-3"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L15"},"modules/common.ts:15")))}c.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[622],{5680:(e,n,t)=>{t.d(n,{xA:()=>s,yg:()=>u});var a=t(6540);function r(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);n&&(a=a.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,a)}return t}function o(e){for(var n=1;n=0||(r[t]=e[t]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(r[t]=e[t])}return r}var p=a.createContext({}),d=function(e){var n=a.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},s=function(e){var n=d(e.components);return a.createElement(p.Provider,{value:n},e.children)},m="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return a.createElement(a.Fragment,{},n)}},y=a.forwardRef((function(e,n){var t=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),m=d(t),y=r,u=m["".concat(p,".").concat(y)]||m[y]||c[y]||i;return t?a.createElement(u,o(o({ref:n},s),{},{components:t})):a.createElement(u,o({ref:n},s))}));function u(e,n){var t=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var i=t.length,o=new Array(i);o[0]=y;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[m]="string"==typeof e?e:r,o[1]=l;for(var d=2;d{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var a=t(8168),r=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/interfaces/NativeModuleProps",id:"api/interfaces/NativeModuleProps",title:"NativeModuleProps",description:"react-native-iap / Exports / NativeModuleProps",source:"@site/docs/api/interfaces/NativeModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/NativeModuleProps",permalink:"/docs/api/interfaces/NativeModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/NativeModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapIosSk2.IosModulePropsSk2",permalink:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"},next:{title:"PricingPhaseAndroid",permalink:"/docs/api/interfaces/PricingPhaseAndroid"}},p={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Methods",id:"methods",level:3},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4}],s={toc:d},m="wrapper";function c(e){let{components:n,...t}=e;return(0,r.yg)(m,(0,a.A)({},s,t,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / NativeModuleProps"),(0,r.yg)("h1",{id:"interface-nativemoduleprops"},"Interface: NativeModuleProps"),(0,r.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"NativeModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AndroidModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AmazonModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapIos.IosModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"IosModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"},(0,r.yg)("inlineCode",{parentName:"a"},"IosModulePropsSk2"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"methods"},"Methods"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners"))),(0,r.yg)("h2",{id:"methods-1"},"Methods"),(0,r.yg)("h3",{id:"addlistener"},"addListener"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"addListener"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"addListener for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"eventType")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"endconnection"},"endConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to end the payment provider connection"),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"initconnection"},"initConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to start a payment provider connection"),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"count")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"number"))))),(0,r.yg)("h4",{id:"returns-3"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L15"},"modules/common.ts:15")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/33bee279.56db6f4c.js b/assets/js/33bee279.3585b5fa.js similarity index 94% rename from assets/js/33bee279.56db6f4c.js rename to assets/js/33bee279.3585b5fa.js index 5ff495439..a89db904d 100644 --- a/assets/js/33bee279.56db6f4c.js +++ b/assets/js/33bee279.3585b5fa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4647],{5680:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),d=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},c=function(e){var n=d(e.components);return r.createElement(p.Provider,{value:n},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=d(t),u=a,y=s["".concat(p,".").concat(u)]||s[u]||m[u]||i;return t?r.createElement(y,o(o({ref:n},c),{},{components:t})):r.createElement(y,o({ref:n},c))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=u;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[s]="string"==typeof e?e:a,o[1]=l;for(var d=2;d{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/enums/ReplacementModesAndroid",id:"api/enums/ReplacementModesAndroid",title:"ReplacementModesAndroid",description:"react-native-iap / Exports / ReplacementModesAndroid",source:"@site/docs/api/enums/ReplacementModesAndroid.md",sourceDirName:"api/enums",slug:"/api/enums/ReplacementModesAndroid",permalink:"/docs/api/enums/ReplacementModesAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/ReplacementModesAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PurchaseStateAndroid",permalink:"/docs/api/enums/PurchaseStateAndroid"},next:{title:"SubscriptionPlatform",permalink:"/docs/api/enums/SubscriptionPlatform"}},p={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"CHARGE_FULL_PRICE",id:"charge_full_price",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"CHARGE_PRORATED_PRICE",id:"charge_prorated_price",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"DEFERRED",id:"deferred",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"UNKNOWN_REPLACEMENT_MODE",id:"unknown_replacement_mode",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"WITHOUT_PRORATION",id:"without_proration",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"WITH_TIME_PRORATION",id:"with_time_proration",level:3},{value:"Defined in",id:"defined-in-5",level:4}],c={toc:d},s="wrapper";function m(e){let{components:n,...t}=e;return(0,a.yg)(s,(0,r.A)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ReplacementModesAndroid"),(0,a.yg)("h1",{id:"enumeration-replacementmodesandroid"},"Enumeration: ReplacementModesAndroid"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#charge_full_price"},"CHARGE","_","FULL","_","PRICE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#charge_prorated_price"},"CHARGE","_","PRORATED","_","PRICE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#deferred"},"DEFERRED")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#unknown_replacement_mode"},"UNKNOWN","_","REPLACEMENT","_","MODE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#without_proration"},"WITHOUT","_","PRORATION")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#with_time_proration"},"WITH","_","TIME","_","PRORATION"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"charge_full_price"},"CHARGE","_","FULL","_","PRICE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"CHARGE","_","FULL","_","PRICE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"5")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L17"},"types/index.ts:17")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"charge_prorated_price"},"CHARGE","_","PRORATED","_","PRICE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"CHARGE","_","PRORATED","_","PRICE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"2")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L15"},"types/index.ts:15")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"deferred"},"DEFERRED"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"DEFERRED")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"6")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L18"},"types/index.ts:18")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"unknown_replacement_mode"},"UNKNOWN","_","REPLACEMENT","_","MODE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"UNKNOWN","_","REPLACEMENT","_","MODE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"0")),(0,a.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L13"},"types/index.ts:13")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"without_proration"},"WITHOUT","_","PRORATION"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"WITHOUT","_","PRORATION")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"3")),(0,a.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L16"},"types/index.ts:16")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"with_time_proration"},"WITH","_","TIME","_","PRORATION"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"WITH","_","TIME","_","PRORATION")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"1")),(0,a.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L14"},"types/index.ts:14")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4647],{5680:(e,n,t)=>{t.d(n,{xA:()=>c,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),d=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},c=function(e){var n=d(e.components);return r.createElement(p.Provider,{value:n},e.children)},s="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},u=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,c=l(e,["components","mdxType","originalType","parentName"]),s=d(t),u=a,y=s["".concat(p,".").concat(u)]||s[u]||m[u]||i;return t?r.createElement(y,o(o({ref:n},c),{},{components:t})):r.createElement(y,o({ref:n},c))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=u;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[s]="string"==typeof e?e:a,o[1]=l;for(var d=2;d{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/enums/ReplacementModesAndroid",id:"api/enums/ReplacementModesAndroid",title:"ReplacementModesAndroid",description:"react-native-iap / Exports / ReplacementModesAndroid",source:"@site/docs/api/enums/ReplacementModesAndroid.md",sourceDirName:"api/enums",slug:"/api/enums/ReplacementModesAndroid",permalink:"/docs/api/enums/ReplacementModesAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/ReplacementModesAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PurchaseStateAndroid",permalink:"/docs/api/enums/PurchaseStateAndroid"},next:{title:"SubscriptionPlatform",permalink:"/docs/api/enums/SubscriptionPlatform"}},p={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"CHARGE_FULL_PRICE",id:"charge_full_price",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"CHARGE_PRORATED_PRICE",id:"charge_prorated_price",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"DEFERRED",id:"deferred",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"UNKNOWN_REPLACEMENT_MODE",id:"unknown_replacement_mode",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"WITHOUT_PRORATION",id:"without_proration",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"WITH_TIME_PRORATION",id:"with_time_proration",level:3},{value:"Defined in",id:"defined-in-5",level:4}],c={toc:d},s="wrapper";function m(e){let{components:n,...t}=e;return(0,a.yg)(s,(0,r.A)({},c,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ReplacementModesAndroid"),(0,a.yg)("h1",{id:"enumeration-replacementmodesandroid"},"Enumeration: ReplacementModesAndroid"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#charge_full_price"},"CHARGE","_","FULL","_","PRICE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#charge_prorated_price"},"CHARGE","_","PRORATED","_","PRICE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#deferred"},"DEFERRED")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#unknown_replacement_mode"},"UNKNOWN","_","REPLACEMENT","_","MODE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#without_proration"},"WITHOUT","_","PRORATION")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid#with_time_proration"},"WITH","_","TIME","_","PRORATION"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"charge_full_price"},"CHARGE","_","FULL","_","PRICE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"CHARGE","_","FULL","_","PRICE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"5")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L17"},"types/index.ts:17")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"charge_prorated_price"},"CHARGE","_","PRORATED","_","PRICE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"CHARGE","_","PRORATED","_","PRICE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"2")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L15"},"types/index.ts:15")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"deferred"},"DEFERRED"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"DEFERRED")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"6")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L18"},"types/index.ts:18")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"unknown_replacement_mode"},"UNKNOWN","_","REPLACEMENT","_","MODE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"UNKNOWN","_","REPLACEMENT","_","MODE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"0")),(0,a.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L13"},"types/index.ts:13")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"without_proration"},"WITHOUT","_","PRORATION"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"WITHOUT","_","PRORATION")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"3")),(0,a.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L16"},"types/index.ts:16")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"with_time_proration"},"WITH","_","TIME","_","PRORATION"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"WITH","_","TIME","_","PRORATION")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"1")),(0,a.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L14"},"types/index.ts:14")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/389ba196.2f3b3963.js b/assets/js/389ba196.975f1d9c.js similarity index 95% rename from assets/js/389ba196.2f3b3963.js rename to assets/js/389ba196.975f1d9c.js index 634253774..bae8f2976 100644 --- a/assets/js/389ba196.2f3b3963.js +++ b/assets/js/389ba196.975f1d9c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8236],{5680:(e,n,r)=>{r.d(n,{xA:()=>f,yg:()=>g});var t=r(6540);function i(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function o(e){for(var n=1;n=0||(i[r]=e[r]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=t.createContext({}),d=function(e){var n=t.useContext(l),r=n;return e&&(r="function"==typeof e?e(n):o(o({},n),e)),r},f=function(e){var n=d(e.components);return t.createElement(l.Provider,{value:n},e.children)},s="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},y=t.forwardRef((function(e,n){var r=e.components,i=e.mdxType,a=e.originalType,l=e.parentName,f=p(e,["components","mdxType","originalType","parentName"]),s=d(r),y=i,g=s["".concat(l,".").concat(y)]||s[y]||c[y]||a;return r?t.createElement(g,o(o({ref:n},f),{},{components:r})):t.createElement(g,o({ref:n},f))}));function g(e,n){var r=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var a=r.length,o=new Array(a);o[0]=y;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[s]="string"==typeof e?e:i,o[1]=p;for(var d=2;d{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>c,frontMatter:()=>a,metadata:()=>p,toc:()=>d});var t=r(8168),i=(r(6540),r(5680));const a={},o=void 0,p={unversionedId:"api/interfaces/SubscriptionOfferAndroid",id:"api/interfaces/SubscriptionOfferAndroid",title:"SubscriptionOfferAndroid",description:"react-native-iap / Exports / SubscriptionOfferAndroid",source:"@site/docs/api/interfaces/SubscriptionOfferAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionOfferAndroid",permalink:"/docs/api/interfaces/SubscriptionOfferAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionOfferAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionOffer",permalink:"/docs/api/interfaces/SubscriptionOffer"},next:{title:"SubscriptionPurchase",permalink:"/docs/api/interfaces/SubscriptionPurchase"}},l={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"basePlanId",id:"baseplanid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"offerId",id:"offerid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"offerTags",id:"offertags",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"offerToken",id:"offertoken",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"pricingPhases",id:"pricingphases",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-4",level:4}],f={toc:d},s="wrapper";function c(e){let{components:n,...r}=e;return(0,i.yg)(s,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionOfferAndroid"),(0,i.yg)("h1",{id:"interface-subscriptionofferandroid"},"Interface: SubscriptionOfferAndroid"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#baseplanid"},"basePlanId")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#offerid"},"offerId")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#offertags"},"offerTags")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#offertoken"},"offerToken")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#pricingphases"},"pricingPhases"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"baseplanid"},"basePlanId"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"basePlanId"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L160"},"types/index.ts:160")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"offerid"},"offerId"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerId"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L161"},"types/index.ts:161")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"offertags"},"offerTags"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerTags"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L166"},"types/index.ts:166")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"offertoken"},"offerToken"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerToken"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L162"},"types/index.ts:162")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"pricingphases"},"pricingPhases"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"pricingPhases"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"Object")),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"pricingPhaseList")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("a",{parentName:"td",href:"/docs/api/interfaces/PricingPhaseAndroid"},(0,i.yg)("inlineCode",{parentName:"a"},"PricingPhaseAndroid")),"[]")))),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L163"},"types/index.ts:163")))}c.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8236],{5680:(e,n,r)=>{r.d(n,{xA:()=>f,yg:()=>g});var t=r(6540);function i(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,t)}return r}function o(e){for(var n=1;n=0||(i[r]=e[r]);return i}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(i[r]=e[r])}return i}var l=t.createContext({}),d=function(e){var n=t.useContext(l),r=n;return e&&(r="function"==typeof e?e(n):o(o({},n),e)),r},f=function(e){var n=d(e.components);return t.createElement(l.Provider,{value:n},e.children)},s="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},y=t.forwardRef((function(e,n){var r=e.components,i=e.mdxType,a=e.originalType,l=e.parentName,f=p(e,["components","mdxType","originalType","parentName"]),s=d(r),y=i,g=s["".concat(l,".").concat(y)]||s[y]||c[y]||a;return r?t.createElement(g,o(o({ref:n},f),{},{components:r})):t.createElement(g,o({ref:n},f))}));function g(e,n){var r=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var a=r.length,o=new Array(a);o[0]=y;var p={};for(var l in n)hasOwnProperty.call(n,l)&&(p[l]=n[l]);p.originalType=e,p[s]="string"==typeof e?e:i,o[1]=p;for(var d=2;d{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>c,frontMatter:()=>a,metadata:()=>p,toc:()=>d});var t=r(8168),i=(r(6540),r(5680));const a={},o=void 0,p={unversionedId:"api/interfaces/SubscriptionOfferAndroid",id:"api/interfaces/SubscriptionOfferAndroid",title:"SubscriptionOfferAndroid",description:"react-native-iap / Exports / SubscriptionOfferAndroid",source:"@site/docs/api/interfaces/SubscriptionOfferAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionOfferAndroid",permalink:"/docs/api/interfaces/SubscriptionOfferAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionOfferAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionOffer",permalink:"/docs/api/interfaces/SubscriptionOffer"},next:{title:"SubscriptionPurchase",permalink:"/docs/api/interfaces/SubscriptionPurchase"}},l={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"basePlanId",id:"baseplanid",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"offerId",id:"offerid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"offerTags",id:"offertags",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"offerToken",id:"offertoken",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"pricingPhases",id:"pricingphases",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-4",level:4}],f={toc:d},s="wrapper";function c(e){let{components:n,...r}=e;return(0,i.yg)(s,(0,t.A)({},f,r,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionOfferAndroid"),(0,i.yg)("h1",{id:"interface-subscriptionofferandroid"},"Interface: SubscriptionOfferAndroid"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#baseplanid"},"basePlanId")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#offerid"},"offerId")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#offertags"},"offerTags")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#offertoken"},"offerToken")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid#pricingphases"},"pricingPhases"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"baseplanid"},"basePlanId"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"basePlanId"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L160"},"types/index.ts:160")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"offerid"},"offerId"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerId"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L161"},"types/index.ts:161")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"offertags"},"offerTags"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerTags"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L166"},"types/index.ts:166")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"offertoken"},"offerToken"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerToken"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L162"},"types/index.ts:162")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"pricingphases"},"pricingPhases"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"pricingPhases"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"Object")),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"pricingPhaseList")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("a",{parentName:"td",href:"/docs/api/interfaces/PricingPhaseAndroid"},(0,i.yg)("inlineCode",{parentName:"a"},"PricingPhaseAndroid")),"[]")))),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L163"},"types/index.ts:163")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/452a6091.7a59b8a9.js b/assets/js/452a6091.f4586f6f.js similarity index 87% rename from assets/js/452a6091.7a59b8a9.js rename to assets/js/452a6091.f4586f6f.js index 5c924387d..a98449a21 100644 --- a/assets/js/452a6091.7a59b8a9.js +++ b/assets/js/452a6091.f4586f6f.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9877],{5680:(e,n,t)=>{t.d(n,{xA:()=>s,yg:()=>m});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):p(p({},n),e)),t},s=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},d="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,l=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),d=u(t),y=a,m=d["".concat(l,".").concat(y)]||d[y]||c[y]||i;return t?r.createElement(m,p(p({ref:n},s),{},{components:t})):r.createElement(m,p({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,p=new Array(i);p[0]=y;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o[d]="string"==typeof e?e:a,p[1]=o;for(var u=2;u{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>c,frontMatter:()=>i,metadata:()=>o,toc:()=>u});var r=t(8168),a=(t(6540),t(5680));const i={},p=void 0,o={unversionedId:"api/enums/ProductType",id:"api/enums/ProductType",title:"ProductType",description:"react-native-iap / Exports / ProductType",source:"@site/docs/api/enums/ProductType.md",sourceDirName:"api/enums",slug:"/api/enums/ProductType",permalink:"/docs/api/enums/ProductType",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/ProductType.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"InstallSourceAndroid",permalink:"/docs/api/enums/InstallSourceAndroid"},next:{title:"PurchaseStateAndroid",permalink:"/docs/api/enums/PurchaseStateAndroid"}},l={},u=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"iap",id:"iap",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"inapp",id:"inapp",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"sub",id:"sub",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"subs",id:"subs",level:3},{value:"Defined in",id:"defined-in-3",level:4}],s={toc:u},d="wrapper";function c(e){let{components:n,...t}=e;return(0,a.yg)(d,(0,r.A)({},s,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductType"),(0,a.yg)("h1",{id:"enumeration-producttype"},"Enumeration: ProductType"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#iap"},"iap")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#inapp"},"inapp")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#sub"},"sub")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#subs"},"subs"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"iap"},"iap"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"iap")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"iap"')),(0,a.yg)("p",null,"Consumable"),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L46"},"types/index.ts:46")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"inapp"},"inapp"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"inapp")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"inapp"')),(0,a.yg)("p",null,"Consumable"),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L43"},"types/index.ts:43")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"sub"},"sub"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"sub")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"sub"')),(0,a.yg)("p",null,"Subscription"),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L40"},"types/index.ts:40")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"subs"},"subs"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"subs")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,a.yg)("p",null,"Subscription"),(0,a.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L37"},"types/index.ts:37")))}c.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9877],{5680:(e,n,t)=>{t.d(n,{xA:()=>s,yg:()=>m});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function p(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var l=r.createContext({}),u=function(e){var n=r.useContext(l),t=n;return e&&(t="function"==typeof e?e(n):p(p({},n),e)),t},s=function(e){var n=u(e.components);return r.createElement(l.Provider,{value:n},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},y=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,l=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=u(t),y=a,m=c["".concat(l,".").concat(y)]||c[y]||d[y]||i;return t?r.createElement(m,p(p({ref:n},s),{},{components:t})):r.createElement(m,p({ref:n},s))}));function m(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,p=new Array(i);p[0]=y;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o[c]="string"==typeof e?e:a,p[1]=o;for(var u=2;u{t.r(n),t.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>d,frontMatter:()=>i,metadata:()=>o,toc:()=>u});var r=t(8168),a=(t(6540),t(5680));const i={},p=void 0,o={unversionedId:"api/enums/ProductType",id:"api/enums/ProductType",title:"ProductType",description:"react-native-iap / Exports / ProductType",source:"@site/docs/api/enums/ProductType.md",sourceDirName:"api/enums",slug:"/api/enums/ProductType",permalink:"/docs/api/enums/ProductType",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/ProductType.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"InstallSourceAndroid",permalink:"/docs/api/enums/InstallSourceAndroid"},next:{title:"PurchaseStateAndroid",permalink:"/docs/api/enums/PurchaseStateAndroid"}},l={},u=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"iap",id:"iap",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"inapp",id:"inapp",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"sub",id:"sub",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"subs",id:"subs",level:3},{value:"Defined in",id:"defined-in-3",level:4}],s={toc:u},c="wrapper";function d(e){let{components:n,...t}=e;return(0,a.yg)(c,(0,r.A)({},s,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductType"),(0,a.yg)("h1",{id:"enumeration-producttype"},"Enumeration: ProductType"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#iap"},"iap")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#inapp"},"inapp")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#sub"},"sub")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType#subs"},"subs"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"iap"},"iap"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"iap")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"iap"')),(0,a.yg)("p",null,"Consumable"),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L46"},"types/index.ts:46")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"inapp"},"inapp"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"inapp")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"inapp"')),(0,a.yg)("p",null,"Consumable"),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L43"},"types/index.ts:43")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"sub"},"sub"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"sub")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"sub"')),(0,a.yg)("p",null,"Subscription"),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L40"},"types/index.ts:40")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"subs"},"subs"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"subs")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,a.yg)("p",null,"Subscription"),(0,a.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L37"},"types/index.ts:37")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/4fb793b5.a2b69288.js b/assets/js/4fb793b5.c982d8de.js similarity index 96% rename from assets/js/4fb793b5.a2b69288.js rename to assets/js/4fb793b5.c982d8de.js index 31c61e29a..ecf9ef573 100644 --- a/assets/js/4fb793b5.a2b69288.js +++ b/assets/js/4fb793b5.c982d8de.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2435],{5680:(e,n,a)=>{a.d(n,{xA:()=>d,yg:()=>u});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function l(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var o=t.createContext({}),s=function(e){var n=t.useContext(o),a=n;return e&&(a="function"==typeof e?e(n):l(l({},n),e)),a},d=function(e){var n=s(e.components);return t.createElement(o.Provider,{value:n},e.children)},y="mdxType",g={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,o=e.parentName,d=p(e,["components","mdxType","originalType","parentName"]),y=s(a),m=i,u=y["".concat(o,".").concat(m)]||y[m]||g[m]||r;return a?t.createElement(u,l(l({ref:n},d),{},{components:a})):t.createElement(u,l({ref:n},d))}));function u(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,l=new Array(r);l[0]=m;var p={};for(var o in n)hasOwnProperty.call(n,o)&&(p[o]=n[o]);p.originalType=e,p[y]="string"==typeof e?e:i,l[1]=p;for(var s=2;s{a.r(n),a.d(n,{assets:()=>o,contentTitle:()=>l,default:()=>g,frontMatter:()=>r,metadata:()=>p,toc:()=>s});var t=a(8168),i=(a(6540),a(5680));const r={},l=void 0,p={unversionedId:"api/modules/IapIosSk2",id:"api/modules/IapIosSk2",title:"IapIosSk2",description:"react-native-iap / Exports / IapIosSk2",source:"@site/docs/api/modules/IapIosSk2.md",sourceDirName:"api/modules",slug:"/api/modules/IapIosSk2",permalink:"/docs/api/modules/IapIosSk2",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapIosSk2.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapIos",permalink:"/docs/api/modules/IapIos"},next:{title:"modules",permalink:"/docs/api/modules"}},o={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Type Aliases",id:"type-aliases",level:3},{value:"Functions",id:"functions",level:3},{value:"Type Aliases",id:"type-aliases-1",level:2},{value:"BuyProduct",id:"buyproduct",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"Functions",id:"functions-1",level:2},{value:"beginRefundRequest",id:"beginrefundrequest",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"currentEntitlement",id:"currententitlement",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"finishTransaction",id:"finishtransaction",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"isEligibleForIntroOffer",id:"iseligibleforintrooffer",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"latestTransaction",id:"latesttransaction",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"showManageSubscriptions",id:"showmanagesubscriptions",level:3},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"subscriptionStatus",id:"subscriptionstatus",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"sync",id:"sync",level:3},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-8",level:4}],d={toc:s},y="wrapper";function g(e){let{components:n,...a}=e;return(0,i.yg)(y,(0,t.A)({},d,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapIosSk2"),(0,i.yg)("h1",{id:"namespace-iapiossk2"},"Namespace: IapIosSk2"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"interfaces"},"Interfaces"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"},"IosModulePropsSk2"))),(0,i.yg)("h3",{id:"type-aliases"},"Type Aliases"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#buyproduct"},"BuyProduct"))),(0,i.yg)("h3",{id:"functions"},"Functions"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#beginrefundrequest"},"beginRefundRequest")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#currententitlement"},"currentEntitlement")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#finishtransaction"},"finishTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#iseligibleforintrooffer"},"isEligibleForIntroOffer")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#latesttransaction"},"latestTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#showmanagesubscriptions"},"showManageSubscriptions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#subscriptionstatus"},"subscriptionStatus")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#sync"},"sync"))),(0,i.yg)("h2",{id:"type-aliases-1"},"Type Aliases"),(0,i.yg)("h3",{id:"buyproduct"},"BuyProduct"),(0,i.yg)("p",null,"\u01ac ",(0,i.yg)("strong",{parentName:"p"},"BuyProduct"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"number"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("a",{parentName:"td",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"andDangerouslyFinishTransactionAutomaticallyIOS")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"applicationUsername")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"quantity")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"withOffer")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L22"},"modules/iosSk2.ts:22")),(0,i.yg)("h2",{id:"functions-1"},"Functions"),(0,i.yg)("h3",{id:"beginrefundrequest"},"beginRefundRequest"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"beginRefundRequest"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L97"},"modules/iosSk2.ts:97")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"currententitlement"},"currentEntitlement"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"currentEntitlement"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L85"},"modules/iosSk2.ts:85")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"finishtransaction"},"finishTransaction"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"finishTransaction"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"transactionIdentifier"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"parameters-3"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"transactionIdentifier")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L109"},"modules/iosSk2.ts:109")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"iseligibleforintrooffer"},"isEligibleForIntroOffer"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"isEligibleForIntroOffer"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"groupID"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"parameters-4"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"groupID")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L72"},"modules/iosSk2.ts:72")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"latesttransaction"},"latestTransaction"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"latestTransaction"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-5"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L91"},"modules/iosSk2.ts:91")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"showmanagesubscriptions"},"showManageSubscriptions"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"showManageSubscriptions"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"returns-6"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L103"},"modules/iosSk2.ts:103")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"subscriptionstatus"},"subscriptionStatus"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"subscriptionStatus"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"parameters-6"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-7"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L79"},"modules/iosSk2.ts:79")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"sync"},"sync"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"sync"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("p",null,"Sync state with Appstore (iOS only)\n",(0,i.yg)("a",{parentName:"p",href:"https://developer.apple.com/documentation/storekit/appstore/3791906-sync"},"https://developer.apple.com/documentation/storekit/appstore/3791906-sync")),(0,i.yg)("h4",{id:"returns-8"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L67"},"modules/iosSk2.ts:67")))}g.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2435],{5680:(e,n,a)=>{a.d(n,{xA:()=>d,yg:()=>u});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function l(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var o=t.createContext({}),s=function(e){var n=t.useContext(o),a=n;return e&&(a="function"==typeof e?e(n):l(l({},n),e)),a},d=function(e){var n=s(e.components);return t.createElement(o.Provider,{value:n},e.children)},y="mdxType",g={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},m=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,o=e.parentName,d=p(e,["components","mdxType","originalType","parentName"]),y=s(a),m=i,u=y["".concat(o,".").concat(m)]||y[m]||g[m]||r;return a?t.createElement(u,l(l({ref:n},d),{},{components:a})):t.createElement(u,l({ref:n},d))}));function u(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,l=new Array(r);l[0]=m;var p={};for(var o in n)hasOwnProperty.call(n,o)&&(p[o]=n[o]);p.originalType=e,p[y]="string"==typeof e?e:i,l[1]=p;for(var s=2;s{a.r(n),a.d(n,{assets:()=>o,contentTitle:()=>l,default:()=>g,frontMatter:()=>r,metadata:()=>p,toc:()=>s});var t=a(8168),i=(a(6540),a(5680));const r={},l=void 0,p={unversionedId:"api/modules/IapIosSk2",id:"api/modules/IapIosSk2",title:"IapIosSk2",description:"react-native-iap / Exports / IapIosSk2",source:"@site/docs/api/modules/IapIosSk2.md",sourceDirName:"api/modules",slug:"/api/modules/IapIosSk2",permalink:"/docs/api/modules/IapIosSk2",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapIosSk2.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapIos",permalink:"/docs/api/modules/IapIos"},next:{title:"modules",permalink:"/docs/api/modules"}},o={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Type Aliases",id:"type-aliases",level:3},{value:"Functions",id:"functions",level:3},{value:"Type Aliases",id:"type-aliases-1",level:2},{value:"BuyProduct",id:"buyproduct",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"Functions",id:"functions-1",level:2},{value:"beginRefundRequest",id:"beginrefundrequest",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"currentEntitlement",id:"currententitlement",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"finishTransaction",id:"finishtransaction",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"isEligibleForIntroOffer",id:"iseligibleforintrooffer",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"latestTransaction",id:"latesttransaction",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"showManageSubscriptions",id:"showmanagesubscriptions",level:3},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"subscriptionStatus",id:"subscriptionstatus",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"sync",id:"sync",level:3},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-8",level:4}],d={toc:s},y="wrapper";function g(e){let{components:n,...a}=e;return(0,i.yg)(y,(0,t.A)({},d,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapIosSk2"),(0,i.yg)("h1",{id:"namespace-iapiossk2"},"Namespace: IapIosSk2"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"interfaces"},"Interfaces"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"},"IosModulePropsSk2"))),(0,i.yg)("h3",{id:"type-aliases"},"Type Aliases"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#buyproduct"},"BuyProduct"))),(0,i.yg)("h3",{id:"functions"},"Functions"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#beginrefundrequest"},"beginRefundRequest")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#currententitlement"},"currentEntitlement")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#finishtransaction"},"finishTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#iseligibleforintrooffer"},"isEligibleForIntroOffer")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#latesttransaction"},"latestTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#showmanagesubscriptions"},"showManageSubscriptions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#subscriptionstatus"},"subscriptionStatus")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2#sync"},"sync"))),(0,i.yg)("h2",{id:"type-aliases-1"},"Type Aliases"),(0,i.yg)("h3",{id:"buyproduct"},"BuyProduct"),(0,i.yg)("p",null,"\u01ac ",(0,i.yg)("strong",{parentName:"p"},"BuyProduct"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"number"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("a",{parentName:"td",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"andDangerouslyFinishTransactionAutomaticallyIOS")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"applicationUsername")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"quantity")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"withOffer")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L22"},"modules/iosSk2.ts:22")),(0,i.yg)("h2",{id:"functions-1"},"Functions"),(0,i.yg)("h3",{id:"beginrefundrequest"},"beginRefundRequest"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"beginRefundRequest"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L97"},"modules/iosSk2.ts:97")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"currententitlement"},"currentEntitlement"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"currentEntitlement"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L85"},"modules/iosSk2.ts:85")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"finishtransaction"},"finishTransaction"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"finishTransaction"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"transactionIdentifier"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"parameters-3"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"transactionIdentifier")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L109"},"modules/iosSk2.ts:109")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"iseligibleforintrooffer"},"isEligibleForIntroOffer"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"isEligibleForIntroOffer"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"groupID"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"parameters-4"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"groupID")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L72"},"modules/iosSk2.ts:72")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"latesttransaction"},"latestTransaction"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"latestTransaction"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-5"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L91"},"modules/iosSk2.ts:91")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"showmanagesubscriptions"},"showManageSubscriptions"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"showManageSubscriptions"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"returns-6"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L103"},"modules/iosSk2.ts:103")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"subscriptionstatus"},"subscriptionStatus"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"subscriptionStatus"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"parameters-6"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-7"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L79"},"modules/iosSk2.ts:79")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"sync"},"sync"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"sync"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("p",null,"Sync state with Appstore (iOS only)\n",(0,i.yg)("a",{parentName:"p",href:"https://developer.apple.com/documentation/storekit/appstore/3791906-sync"},"https://developer.apple.com/documentation/storekit/appstore/3791906-sync")),(0,i.yg)("h4",{id:"returns-8"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L67"},"modules/iosSk2.ts:67")))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/58807341.b4612a86.js b/assets/js/58807341.17858b74.js similarity index 82% rename from assets/js/58807341.b4612a86.js rename to assets/js/58807341.17858b74.js index d0aa0ff6d..340553b6c 100644 --- a/assets/js/58807341.b4612a86.js +++ b/assets/js/58807341.17858b74.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2955],{5680:(e,n,t)=>{t.d(n,{xA:()=>s,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),d=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},s=function(e){var n=d(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=d(t),m=a,y=u["".concat(p,".").concat(m)]||u[m]||c[m]||i;return t?r.createElement(y,o(o({ref:n},s),{},{components:t})):r.createElement(y,o({ref:n},s))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=m;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[u]="string"==typeof e?e:a,o[1]=l;for(var d=2;d{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>l,toc:()=>d});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/enums/InstallSourceAndroid",id:"api/enums/InstallSourceAndroid",title:"InstallSourceAndroid",description:"react-native-iap / Exports / InstallSourceAndroid",source:"@site/docs/api/enums/InstallSourceAndroid.md",sourceDirName:"api/enums",slug:"/api/enums/InstallSourceAndroid",permalink:"/docs/api/enums/InstallSourceAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/InstallSourceAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ErrorCode",permalink:"/docs/api/enums/ErrorCode"},next:{title:"ProductType",permalink:"/docs/api/enums/ProductType"}},p={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"AMAZON",id:"amazon",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"GOOGLE_PLAY",id:"google_play",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"NOT_SET",id:"not_set",level:3},{value:"Defined in",id:"defined-in-2",level:4}],s={toc:d},u="wrapper";function c(e){let{components:n,...t}=e;return(0,a.yg)(u,(0,r.A)({},s,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / InstallSourceAndroid"),(0,a.yg)("h1",{id:"enumeration-installsourceandroid"},"Enumeration: InstallSourceAndroid"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/InstallSourceAndroid#amazon"},"AMAZON")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/InstallSourceAndroid#google_play"},"GOOGLE","_","PLAY")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/InstallSourceAndroid#not_set"},"NOT","_","SET"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"amazon"},"AMAZON"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"AMAZON")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"2")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L32"},"types/index.ts:32")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"google_play"},"GOOGLE","_","PLAY"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"GOOGLE","_","PLAY")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"1")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L31"},"types/index.ts:31")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"not_set"},"NOT","_","SET"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"NOT","_","SET")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"0")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L30"},"types/index.ts:30")))}c.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2955],{5680:(e,n,t)=>{t.d(n,{xA:()=>d,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),s=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},d=function(e){var n=s(e.components);return r.createElement(p.Provider,{value:n},e.children)},u="mdxType",c={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,d=l(e,["components","mdxType","originalType","parentName"]),u=s(t),m=a,y=u["".concat(p,".").concat(m)]||u[m]||c[m]||i;return t?r.createElement(y,o(o({ref:n},d),{},{components:t})):r.createElement(y,o({ref:n},d))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=m;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[u]="string"==typeof e?e:a,o[1]=l;for(var s=2;s{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/enums/InstallSourceAndroid",id:"api/enums/InstallSourceAndroid",title:"InstallSourceAndroid",description:"react-native-iap / Exports / InstallSourceAndroid",source:"@site/docs/api/enums/InstallSourceAndroid.md",sourceDirName:"api/enums",slug:"/api/enums/InstallSourceAndroid",permalink:"/docs/api/enums/InstallSourceAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/InstallSourceAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ErrorCode",permalink:"/docs/api/enums/ErrorCode"},next:{title:"ProductType",permalink:"/docs/api/enums/ProductType"}},p={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"AMAZON",id:"amazon",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"GOOGLE_PLAY",id:"google_play",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"NOT_SET",id:"not_set",level:3},{value:"Defined in",id:"defined-in-2",level:4}],d={toc:s},u="wrapper";function c(e){let{components:n,...t}=e;return(0,a.yg)(u,(0,r.A)({},d,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / InstallSourceAndroid"),(0,a.yg)("h1",{id:"enumeration-installsourceandroid"},"Enumeration: InstallSourceAndroid"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/InstallSourceAndroid#amazon"},"AMAZON")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/InstallSourceAndroid#google_play"},"GOOGLE","_","PLAY")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/InstallSourceAndroid#not_set"},"NOT","_","SET"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"amazon"},"AMAZON"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"AMAZON")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"2")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L32"},"types/index.ts:32")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"google_play"},"GOOGLE","_","PLAY"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"GOOGLE","_","PLAY")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"1")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L31"},"types/index.ts:31")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"not_set"},"NOT","_","SET"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"NOT","_","SET")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"0")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L30"},"types/index.ts:30")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/5ceeb83e.67c331ad.js b/assets/js/5ceeb83e.21c6e34d.js similarity index 84% rename from assets/js/5ceeb83e.67c331ad.js rename to assets/js/5ceeb83e.21c6e34d.js index ab6e9f104..2d6946ff6 100644 --- a/assets/js/5ceeb83e.67c331ad.js +++ b/assets/js/5ceeb83e.21c6e34d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5211],{5680:(e,n,r)=>{r.d(n,{xA:()=>p,yg:()=>y});var i=r(6540);function t(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var n=1;n=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var l=i.createContext({}),d=function(e){var n=i.useContext(l),r=n;return e&&(r="function"==typeof e?e(n):o(o({},n),e)),r},p=function(e){var n=d(e.components);return i.createElement(l.Provider,{value:n},e.children)},s="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},g=i.forwardRef((function(e,n){var r=e.components,t=e.mdxType,a=e.originalType,l=e.parentName,p=c(e,["components","mdxType","originalType","parentName"]),s=d(r),g=t,y=s["".concat(l,".").concat(g)]||s[g]||u[g]||a;return r?i.createElement(y,o(o({ref:n},p),{},{components:r})):i.createElement(y,o({ref:n},p))}));function y(e,n){var r=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var a=r.length,o=new Array(a);o[0]=g;var c={};for(var l in n)hasOwnProperty.call(n,l)&&(c[l]=n[l]);c.originalType=e,c[s]="string"==typeof e?e:t,o[1]=c;for(var d=2;d{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>c,toc:()=>d});var i=r(8168),t=(r(6540),r(5680));const a={},o=void 0,c={unversionedId:"api/interfaces/PricingPhaseAndroid",id:"api/interfaces/PricingPhaseAndroid",title:"PricingPhaseAndroid",description:"react-native-iap / Exports / PricingPhaseAndroid",source:"@site/docs/api/interfaces/PricingPhaseAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/PricingPhaseAndroid",permalink:"/docs/api/interfaces/PricingPhaseAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/PricingPhaseAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"NativeModuleProps",permalink:"/docs/api/interfaces/NativeModuleProps"},next:{title:"ProductAndroid",permalink:"/docs/api/interfaces/ProductAndroid"}},l={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"billingCycleCount",id:"billingcyclecount",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"billingPeriod",id:"billingperiod",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"formattedPrice",id:"formattedprice",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"priceAmountMicros",id:"priceamountmicros",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"priceCurrencyCode",id:"pricecurrencycode",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"recurrenceMode",id:"recurrencemode",level:3},{value:"Defined in",id:"defined-in-5",level:4}],p={toc:d},s="wrapper";function u(e){let{components:n,...r}=e;return(0,t.yg)(s,(0,i.A)({},p,r,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PricingPhaseAndroid"),(0,t.yg)("h1",{id:"interface-pricingphaseandroid"},"Interface: PricingPhaseAndroid"),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#billingcyclecount"},"billingCycleCount")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#billingperiod"},"billingPeriod")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#formattedprice"},"formattedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#priceamountmicros"},"priceAmountMicros")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#pricecurrencycode"},"priceCurrencyCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#recurrencemode"},"recurrenceMode"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"billingcyclecount"},"billingCycleCount"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"billingCycleCount"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L176"},"types/index.ts:176")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"billingperiod"},"billingPeriod"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"billingPeriod"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("p",null,"P1W, P1M, P1Y"),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L175"},"types/index.ts:175")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"formattedprice"},"formattedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"formattedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L170"},"types/index.ts:170")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"priceamountmicros"},"priceAmountMicros"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"priceAmountMicros"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L177"},"types/index.ts:177")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"pricecurrencycode"},"priceCurrencyCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"priceCurrencyCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L171"},"types/index.ts:171")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"recurrencemode"},"recurrenceMode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"recurrenceMode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L178"},"types/index.ts:178")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[5211],{5680:(e,n,r)=>{r.d(n,{xA:()=>d,yg:()=>y});var i=r(6540);function t(e,n,r){return n in e?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,e}function a(e,n){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),r.push.apply(r,i)}return r}function o(e){for(var n=1;n=0||(t[r]=e[r]);return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(t[r]=e[r])}return t}var l=i.createContext({}),p=function(e){var n=i.useContext(l),r=n;return e&&(r="function"==typeof e?e(n):o(o({},n),e)),r},d=function(e){var n=p(e.components);return i.createElement(l.Provider,{value:n},e.children)},s="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},g=i.forwardRef((function(e,n){var r=e.components,t=e.mdxType,a=e.originalType,l=e.parentName,d=c(e,["components","mdxType","originalType","parentName"]),s=p(r),g=t,y=s["".concat(l,".").concat(g)]||s[g]||u[g]||a;return r?i.createElement(y,o(o({ref:n},d),{},{components:r})):i.createElement(y,o({ref:n},d))}));function y(e,n){var r=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var a=r.length,o=new Array(a);o[0]=g;var c={};for(var l in n)hasOwnProperty.call(n,l)&&(c[l]=n[l]);c.originalType=e,c[s]="string"==typeof e?e:t,o[1]=c;for(var p=2;p{r.r(n),r.d(n,{assets:()=>l,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>c,toc:()=>p});var i=r(8168),t=(r(6540),r(5680));const a={},o=void 0,c={unversionedId:"api/interfaces/PricingPhaseAndroid",id:"api/interfaces/PricingPhaseAndroid",title:"PricingPhaseAndroid",description:"react-native-iap / Exports / PricingPhaseAndroid",source:"@site/docs/api/interfaces/PricingPhaseAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/PricingPhaseAndroid",permalink:"/docs/api/interfaces/PricingPhaseAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/PricingPhaseAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"NativeModuleProps",permalink:"/docs/api/interfaces/NativeModuleProps"},next:{title:"ProductAndroid",permalink:"/docs/api/interfaces/ProductAndroid"}},l={},p=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"billingCycleCount",id:"billingcyclecount",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"billingPeriod",id:"billingperiod",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"formattedPrice",id:"formattedprice",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"priceAmountMicros",id:"priceamountmicros",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"priceCurrencyCode",id:"pricecurrencycode",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"recurrenceMode",id:"recurrencemode",level:3},{value:"Defined in",id:"defined-in-5",level:4}],d={toc:p},s="wrapper";function u(e){let{components:n,...r}=e;return(0,t.yg)(s,(0,i.A)({},d,r,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PricingPhaseAndroid"),(0,t.yg)("h1",{id:"interface-pricingphaseandroid"},"Interface: PricingPhaseAndroid"),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#billingcyclecount"},"billingCycleCount")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#billingperiod"},"billingPeriod")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#formattedprice"},"formattedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#priceamountmicros"},"priceAmountMicros")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#pricecurrencycode"},"priceCurrencyCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid#recurrencemode"},"recurrenceMode"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"billingcyclecount"},"billingCycleCount"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"billingCycleCount"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L176"},"types/index.ts:176")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"billingperiod"},"billingPeriod"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"billingPeriod"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("p",null,"P1W, P1M, P1Y"),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L175"},"types/index.ts:175")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"formattedprice"},"formattedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"formattedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L170"},"types/index.ts:170")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"priceamountmicros"},"priceAmountMicros"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"priceAmountMicros"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L177"},"types/index.ts:177")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"pricecurrencycode"},"priceCurrencyCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"priceCurrencyCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L171"},"types/index.ts:171")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"recurrencemode"},"recurrenceMode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"recurrenceMode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L178"},"types/index.ts:178")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/78a7a0aa.0de7b9d5.js b/assets/js/78a7a0aa.c229c184.js similarity index 82% rename from assets/js/78a7a0aa.0de7b9d5.js rename to assets/js/78a7a0aa.c229c184.js index 31b529b7f..bc6f07ca5 100644 --- a/assets/js/78a7a0aa.0de7b9d5.js +++ b/assets/js/78a7a0aa.c229c184.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4695],{5680:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),s=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},l=function(e){var n=s(e.components);return r.createElement(p.Provider,{value:n},e.children)},c="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,l=d(e,["components","mdxType","originalType","parentName"]),c=s(t),m=a,y=c["".concat(p,".").concat(m)]||c[m]||u[m]||i;return t?r.createElement(y,o(o({ref:n},l),{},{components:t})):r.createElement(y,o({ref:n},l))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=m;var d={};for(var p in n)hasOwnProperty.call(n,p)&&(d[p]=n[p]);d.originalType=e,d[c]="string"==typeof e?e:a,o[1]=d;for(var s=2;s{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>d,toc:()=>s});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,d={unversionedId:"api/enums/PurchaseStateAndroid",id:"api/enums/PurchaseStateAndroid",title:"PurchaseStateAndroid",description:"react-native-iap / Exports / PurchaseStateAndroid",source:"@site/docs/api/enums/PurchaseStateAndroid.md",sourceDirName:"api/enums",slug:"/api/enums/PurchaseStateAndroid",permalink:"/docs/api/enums/PurchaseStateAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/PurchaseStateAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductType",permalink:"/docs/api/enums/ProductType"},next:{title:"ReplacementModesAndroid",permalink:"/docs/api/enums/ReplacementModesAndroid"}},p={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"PENDING",id:"pending",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"PURCHASED",id:"purchased",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"UNSPECIFIED_STATE",id:"unspecified_state",level:3},{value:"Defined in",id:"defined-in-2",level:4}],l={toc:s},c="wrapper";function u(e){let{components:n,...t}=e;return(0,a.yg)(c,(0,r.A)({},l,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PurchaseStateAndroid"),(0,a.yg)("h1",{id:"enumeration-purchasestateandroid"},"Enumeration: PurchaseStateAndroid"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/PurchaseStateAndroid#pending"},"PENDING")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/PurchaseStateAndroid#purchased"},"PURCHASED")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/PurchaseStateAndroid#unspecified_state"},"UNSPECIFIED","_","STATE"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"pending"},"PENDING"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"PENDING")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"2")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L24"},"types/index.ts:24")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"purchased"},"PURCHASED"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"PURCHASED")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"1")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L23"},"types/index.ts:23")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"unspecified_state"},"UNSPECIFIED","_","STATE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"UNSPECIFIED","_","STATE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"0")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L22"},"types/index.ts:22")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4695],{5680:(e,n,t)=>{t.d(n,{xA:()=>l,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var d=r.createContext({}),s=function(e){var n=r.useContext(d),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},l=function(e){var n=s(e.components);return r.createElement(d.Provider,{value:n},e.children)},c="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,d=e.parentName,l=p(e,["components","mdxType","originalType","parentName"]),c=s(t),m=a,y=c["".concat(d,".").concat(m)]||c[m]||u[m]||i;return t?r.createElement(y,o(o({ref:n},l),{},{components:t})):r.createElement(y,o({ref:n},l))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=m;var p={};for(var d in n)hasOwnProperty.call(n,d)&&(p[d]=n[d]);p.originalType=e,p[c]="string"==typeof e?e:a,o[1]=p;for(var s=2;s{t.r(n),t.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>p,toc:()=>s});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,p={unversionedId:"api/enums/PurchaseStateAndroid",id:"api/enums/PurchaseStateAndroid",title:"PurchaseStateAndroid",description:"react-native-iap / Exports / PurchaseStateAndroid",source:"@site/docs/api/enums/PurchaseStateAndroid.md",sourceDirName:"api/enums",slug:"/api/enums/PurchaseStateAndroid",permalink:"/docs/api/enums/PurchaseStateAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/PurchaseStateAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductType",permalink:"/docs/api/enums/ProductType"},next:{title:"ReplacementModesAndroid",permalink:"/docs/api/enums/ReplacementModesAndroid"}},d={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"PENDING",id:"pending",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"PURCHASED",id:"purchased",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"UNSPECIFIED_STATE",id:"unspecified_state",level:3},{value:"Defined in",id:"defined-in-2",level:4}],l={toc:s},c="wrapper";function u(e){let{components:n,...t}=e;return(0,a.yg)(c,(0,r.A)({},l,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PurchaseStateAndroid"),(0,a.yg)("h1",{id:"enumeration-purchasestateandroid"},"Enumeration: PurchaseStateAndroid"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/PurchaseStateAndroid#pending"},"PENDING")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/PurchaseStateAndroid#purchased"},"PURCHASED")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/PurchaseStateAndroid#unspecified_state"},"UNSPECIFIED","_","STATE"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"pending"},"PENDING"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"PENDING")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"2")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L24"},"types/index.ts:24")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"purchased"},"PURCHASED"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"PURCHASED")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"1")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L23"},"types/index.ts:23")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"unspecified_state"},"UNSPECIFIED","_","STATE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"UNSPECIFIED","_","STATE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},"0")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L22"},"types/index.ts:22")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7b557215.943b0b91.js b/assets/js/7b557215.eb1442c4.js similarity index 94% rename from assets/js/7b557215.943b0b91.js rename to assets/js/7b557215.eb1442c4.js index 4f85a9ae8..edee6d705 100644 --- a/assets/js/7b557215.943b0b91.js +++ b/assets/js/7b557215.eb1442c4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3111],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>m});var t=a(6540);function r(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function i(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function d(e){for(var n=1;n=0||(r[a]=e[a]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var l=t.createContext({}),p=function(e){var n=t.useContext(l),a=n;return e&&(a="function"==typeof e?e(n):d(d({},n),e)),a},s=function(e){var n=p(e.components);return t.createElement(l.Provider,{value:n},e.children)},y="mdxType",g={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},u=t.forwardRef((function(e,n){var a=e.components,r=e.mdxType,i=e.originalType,l=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),y=p(a),u=r,m=y["".concat(l,".").concat(u)]||y[u]||g[u]||i;return a?t.createElement(m,d(d({ref:n},s),{},{components:a})):t.createElement(m,d({ref:n},s))}));function m(e,n){var a=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var i=a.length,d=new Array(i);d[0]=u;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o[y]="string"==typeof e?e:r,d[1]=o;for(var p=2;p{a.r(n),a.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>g,frontMatter:()=>i,metadata:()=>o,toc:()=>p});var t=a(8168),r=(a(6540),a(5680));const i={},d=void 0,o={unversionedId:"api/interfaces/IapAndroid.AndroidModuleProps",id:"api/interfaces/IapAndroid.AndroidModuleProps",title:"IapAndroid.AndroidModuleProps",description:"react-native-iap / Exports / IapAndroid / AndroidModuleProps",source:"@site/docs/api/interfaces/IapAndroid.AndroidModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapAndroid.AndroidModuleProps",permalink:"/docs/api/interfaces/IapAndroid.AndroidModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapAndroid.AndroidModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAmazon.AmazonModuleProps",permalink:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},next:{title:"IapIos.IosModuleProps",permalink:"/docs/api/interfaces/IapIos.IosModuleProps"}},l={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"acknowledgePurchase",id:"acknowledgepurchase",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"buyItemByType",id:"buyitembytype",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"consumeProduct",id:"consumeproduct",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"flushFailedPurchasesCachedAsPending",id:"flushfailedpurchasescachedaspending",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"getAvailableItemsByType",id:"getavailableitemsbytype",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"getItemsByType",id:"getitemsbytype",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"getPackageName",id:"getpackagename",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getPurchaseHistoryByType",id:"getpurchasehistorybytype",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"isFeatureSupported",id:"isfeaturesupported",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-8",level:4},{value:"startListening",id:"startlistening",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-13",level:4}],s={toc:p},y="wrapper";function g(e){let{components:n,...a}=e;return(0,r.yg)(y,(0,t.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid"},"IapAndroid")," / AndroidModuleProps"),(0,r.yg)("h1",{id:"interface-androidmoduleprops"},"Interface: AndroidModuleProps"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid"},"IapAndroid"),".AndroidModuleProps"),(0,r.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"AndroidModuleProps"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#acknowledgepurchase"},"acknowledgePurchase")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#buyitembytype"},"buyItemByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#consumeproduct"},"consumeProduct")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getavailableitemsbytype"},"getAvailableItemsByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getitemsbytype"},"getItemsByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getpackagename"},"getPackageName")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getpurchasehistorybytype"},"getPurchaseHistoryByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#isfeaturesupported"},"isFeatureSupported")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#startlistening"},"startListening"))),(0,r.yg)("h3",{id:"methods"},"Methods"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#addlistener"},"addListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#endconnection"},"endConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#initconnection"},"initConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#removelisteners"},"removeListeners"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"acknowledgepurchase"},"acknowledgePurchase"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"acknowledgePurchase"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"AcknowledgePurchase")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L68"},"modules/android.ts:68")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"buyitembytype"},"buyItemByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"buyItemByType"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#buyitembytype"},(0,r.yg)("inlineCode",{parentName:"a"},"BuyItemByType"))),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L67"},"modules/android.ts:67")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"consumeproduct"},"consumeProduct"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"consumeProduct"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"ConsumeProduct")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L69"},"modules/android.ts:69")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"flushFailedPurchasesCachedAsPending"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"FlushFailedPurchasesCachedAsPending")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L63"},"modules/android.ts:63")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getavailableitemsbytype"},"getAvailableItemsByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getAvailableItemsByType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetAvailableItemsByType")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L65"},"modules/android.ts:65")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getitemsbytype"},"getItemsByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getItemsByType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetItemsByType")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L64"},"modules/android.ts:64")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getpackagename"},"getPackageName"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getPackageName"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetPackageName")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L72"},"modules/android.ts:72")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getpurchasehistorybytype"},"getPurchaseHistoryByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getPurchaseHistoryByType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetPurchaseHistoryByType")),(0,r.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L66"},"modules/android.ts:66")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"isfeaturesupported"},"isFeatureSupported"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"isFeatureSupported"),": (",(0,r.yg)("inlineCode",{parentName:"p"},"feature"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"FeatureType"),") => ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,r.yg)("p",null,"\u25b8 (",(0,r.yg)("inlineCode",{parentName:"p"},"feature"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h5",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"feature")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"FeatureType"))))),(0,r.yg)("h5",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L73"},"modules/android.ts:73")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"startlistening"},"startListening"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"startListening"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"StartListening")),(0,r.yg)("p",null,(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"Deprecated"))),(0,r.yg)("p",null,"to be renamed to sendUnconsumedPurchases if not removed completely"),(0,r.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L71"},"modules/android.ts:71")),(0,r.yg)("h2",{id:"methods-1"},"Methods"),(0,r.yg)("h3",{id:"addlistener"},"addListener"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"addListener"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"addListener for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"eventType")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,r.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"endconnection"},"endConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to end the payment provider connection"),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,r.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"initconnection"},"initConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to start a payment provider connection"),(0,r.yg)("h4",{id:"returns-3"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,r.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters-2"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"count")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"number"))))),(0,r.yg)("h4",{id:"returns-4"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,r.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L15"},"modules/common.ts:15")))}g.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3111],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>m});var t=a(6540);function r(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function i(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function d(e){for(var n=1;n=0||(r[a]=e[a]);return r}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var l=t.createContext({}),p=function(e){var n=t.useContext(l),a=n;return e&&(a="function"==typeof e?e(n):d(d({},n),e)),a},s=function(e){var n=p(e.components);return t.createElement(l.Provider,{value:n},e.children)},y="mdxType",g={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},u=t.forwardRef((function(e,n){var a=e.components,r=e.mdxType,i=e.originalType,l=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),y=p(a),u=r,m=y["".concat(l,".").concat(u)]||y[u]||g[u]||i;return a?t.createElement(m,d(d({ref:n},s),{},{components:a})):t.createElement(m,d({ref:n},s))}));function m(e,n){var a=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var i=a.length,d=new Array(i);d[0]=u;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o[y]="string"==typeof e?e:r,d[1]=o;for(var p=2;p{a.r(n),a.d(n,{assets:()=>l,contentTitle:()=>d,default:()=>g,frontMatter:()=>i,metadata:()=>o,toc:()=>p});var t=a(8168),r=(a(6540),a(5680));const i={},d=void 0,o={unversionedId:"api/interfaces/IapAndroid.AndroidModuleProps",id:"api/interfaces/IapAndroid.AndroidModuleProps",title:"IapAndroid.AndroidModuleProps",description:"react-native-iap / Exports / IapAndroid / AndroidModuleProps",source:"@site/docs/api/interfaces/IapAndroid.AndroidModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapAndroid.AndroidModuleProps",permalink:"/docs/api/interfaces/IapAndroid.AndroidModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapAndroid.AndroidModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAmazon.AmazonModuleProps",permalink:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},next:{title:"IapIos.IosModuleProps",permalink:"/docs/api/interfaces/IapIos.IosModuleProps"}},l={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"acknowledgePurchase",id:"acknowledgepurchase",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"buyItemByType",id:"buyitembytype",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"consumeProduct",id:"consumeproduct",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"flushFailedPurchasesCachedAsPending",id:"flushfailedpurchasescachedaspending",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"getAvailableItemsByType",id:"getavailableitemsbytype",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"getItemsByType",id:"getitemsbytype",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"getPackageName",id:"getpackagename",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getPurchaseHistoryByType",id:"getpurchasehistorybytype",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"isFeatureSupported",id:"isfeaturesupported",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-8",level:4},{value:"startListening",id:"startlistening",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-13",level:4}],s={toc:p},y="wrapper";function g(e){let{components:n,...a}=e;return(0,r.yg)(y,(0,t.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid"},"IapAndroid")," / AndroidModuleProps"),(0,r.yg)("h1",{id:"interface-androidmoduleprops"},"Interface: AndroidModuleProps"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid"},"IapAndroid"),".AndroidModuleProps"),(0,r.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"AndroidModuleProps"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#acknowledgepurchase"},"acknowledgePurchase")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#buyitembytype"},"buyItemByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#consumeproduct"},"consumeProduct")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getavailableitemsbytype"},"getAvailableItemsByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getitemsbytype"},"getItemsByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getpackagename"},"getPackageName")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#getpurchasehistorybytype"},"getPurchaseHistoryByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#isfeaturesupported"},"isFeatureSupported")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#startlistening"},"startListening"))),(0,r.yg)("h3",{id:"methods"},"Methods"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#addlistener"},"addListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#endconnection"},"endConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#initconnection"},"initConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps#removelisteners"},"removeListeners"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"acknowledgepurchase"},"acknowledgePurchase"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"acknowledgePurchase"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"AcknowledgePurchase")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L68"},"modules/android.ts:68")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"buyitembytype"},"buyItemByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"buyItemByType"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#buyitembytype"},(0,r.yg)("inlineCode",{parentName:"a"},"BuyItemByType"))),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L67"},"modules/android.ts:67")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"consumeproduct"},"consumeProduct"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"consumeProduct"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"ConsumeProduct")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L69"},"modules/android.ts:69")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"flushFailedPurchasesCachedAsPending"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"FlushFailedPurchasesCachedAsPending")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L63"},"modules/android.ts:63")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getavailableitemsbytype"},"getAvailableItemsByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getAvailableItemsByType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetAvailableItemsByType")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L65"},"modules/android.ts:65")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getitemsbytype"},"getItemsByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getItemsByType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetItemsByType")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L64"},"modules/android.ts:64")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getpackagename"},"getPackageName"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getPackageName"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetPackageName")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L72"},"modules/android.ts:72")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getpurchasehistorybytype"},"getPurchaseHistoryByType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"getPurchaseHistoryByType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"GetPurchaseHistoryByType")),(0,r.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L66"},"modules/android.ts:66")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"isfeaturesupported"},"isFeatureSupported"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"isFeatureSupported"),": (",(0,r.yg)("inlineCode",{parentName:"p"},"feature"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"FeatureType"),") => ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,r.yg)("p",null,"\u25b8 (",(0,r.yg)("inlineCode",{parentName:"p"},"feature"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h5",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"feature")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"FeatureType"))))),(0,r.yg)("h5",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L73"},"modules/android.ts:73")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"startlistening"},"startListening"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"startListening"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"StartListening")),(0,r.yg)("p",null,(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"Deprecated"))),(0,r.yg)("p",null,"to be renamed to sendUnconsumedPurchases if not removed completely"),(0,r.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L71"},"modules/android.ts:71")),(0,r.yg)("h2",{id:"methods-1"},"Methods"),(0,r.yg)("h3",{id:"addlistener"},"addListener"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"addListener"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"addListener for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"eventType")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,r.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"endconnection"},"endConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to end the payment provider connection"),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,r.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"initconnection"},"initConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Required method to start a payment provider connection"),(0,r.yg)("h4",{id:"returns-3"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,r.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,r.yg)("h4",{id:"parameters-2"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"count")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"number"))))),(0,r.yg)("h4",{id:"returns-4"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"void")),(0,r.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,r.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L15"},"modules/common.ts:15")))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/7e75c5c5.79983ea3.js b/assets/js/7e75c5c5.d97c2477.js similarity index 94% rename from assets/js/7e75c5c5.79983ea3.js rename to assets/js/7e75c5c5.d97c2477.js index a0ee05439..a4fddb60f 100644 --- a/assets/js/7e75c5c5.79983ea3.js +++ b/assets/js/7e75c5c5.d97c2477.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2247],{5680:(e,n,i)=>{i.d(n,{xA:()=>c,yg:()=>u});var r=i(6540);function t(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function o(e){for(var n=1;n=0||(t[i]=e[i]);return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}var d=r.createContext({}),l=function(e){var n=r.useContext(d),i=n;return e&&(i="function"==typeof e?e(n):o(o({},n),e)),i},c=function(e){var n=l(e.components);return r.createElement(d.Provider,{value:n},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var i=e.components,t=e.mdxType,a=e.originalType,d=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=l(i),m=t,u=s["".concat(d,".").concat(m)]||s[m]||y[m]||a;return i?r.createElement(u,o(o({ref:n},c),{},{components:i})):r.createElement(u,o({ref:n},c))}));function u(e,n){var i=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var a=i.length,o=new Array(a);o[0]=m;var p={};for(var d in n)hasOwnProperty.call(n,d)&&(p[d]=n[d]);p.originalType=e,p[s]="string"==typeof e?e:t,o[1]=p;for(var l=2;l{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>y,frontMatter:()=>a,metadata:()=>p,toc:()=>l});var r=i(8168),t=(i(6540),i(5680));const a={},o=void 0,p={unversionedId:"api/interfaces/SubscriptionAmazon",id:"api/interfaces/SubscriptionAmazon",title:"SubscriptionAmazon",description:"react-native-iap / Exports / SubscriptionAmazon",source:"@site/docs/api/interfaces/SubscriptionAmazon.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionAmazon",permalink:"/docs/api/interfaces/SubscriptionAmazon",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionAmazon.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestSubscriptionAndroid",permalink:"/docs/api/interfaces/RequestSubscriptionAndroid"},next:{title:"SubscriptionAndroid",permalink:"/docs/api/interfaces/SubscriptionAndroid"}},d={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"platform",id:"platform",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"productType",id:"producttype",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-12",level:4}],c={toc:l},s="wrapper";function y(e){let{components:n,...i}=e;return(0,t.yg)(s,(0,r.A)({},c,i,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionAmazon"),(0,t.yg)("h1",{id:"interface-subscriptionamazon"},"Interface: SubscriptionAmazon"),(0,t.yg)("p",null,"TODO: As of 2022-10-10, this typing is not verified against the real\nAmazon API. Please update this if you have a more accurate type."),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"SubscriptionAmazon"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#name"},"name")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#platform"},"platform")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#producttype"},"productType")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"name"},"name"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"name"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L190"},"types/index.ts:190")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"platform"},"platform"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"platform"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/SubscriptionPlatform#amazon"},(0,t.yg)("inlineCode",{parentName:"a"},"amazon"))),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L186"},"types/index.ts:186")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"producttype"},"productType"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productType"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L189"},"types/index.ts:189")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L187"},"types/index.ts:187")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2247],{5680:(e,n,i)=>{i.d(n,{xA:()=>c,yg:()=>u});var r=i(6540);function t(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,r)}return i}function o(e){for(var n=1;n=0||(t[i]=e[i]);return t}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(t[i]=e[i])}return t}var d=r.createContext({}),l=function(e){var n=r.useContext(d),i=n;return e&&(i="function"==typeof e?e(n):o(o({},n),e)),i},c=function(e){var n=l(e.components);return r.createElement(d.Provider,{value:n},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var i=e.components,t=e.mdxType,a=e.originalType,d=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=l(i),m=t,u=s["".concat(d,".").concat(m)]||s[m]||y[m]||a;return i?r.createElement(u,o(o({ref:n},c),{},{components:i})):r.createElement(u,o({ref:n},c))}));function u(e,n){var i=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var a=i.length,o=new Array(a);o[0]=m;var p={};for(var d in n)hasOwnProperty.call(n,d)&&(p[d]=n[d]);p.originalType=e,p[s]="string"==typeof e?e:t,o[1]=p;for(var l=2;l{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>y,frontMatter:()=>a,metadata:()=>p,toc:()=>l});var r=i(8168),t=(i(6540),i(5680));const a={},o=void 0,p={unversionedId:"api/interfaces/SubscriptionAmazon",id:"api/interfaces/SubscriptionAmazon",title:"SubscriptionAmazon",description:"react-native-iap / Exports / SubscriptionAmazon",source:"@site/docs/api/interfaces/SubscriptionAmazon.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionAmazon",permalink:"/docs/api/interfaces/SubscriptionAmazon",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionAmazon.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestSubscriptionAndroid",permalink:"/docs/api/interfaces/RequestSubscriptionAndroid"},next:{title:"SubscriptionAndroid",permalink:"/docs/api/interfaces/SubscriptionAndroid"}},d={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"platform",id:"platform",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"productType",id:"producttype",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-12",level:4}],c={toc:l},s="wrapper";function y(e){let{components:n,...i}=e;return(0,t.yg)(s,(0,r.A)({},c,i,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionAmazon"),(0,t.yg)("h1",{id:"interface-subscriptionamazon"},"Interface: SubscriptionAmazon"),(0,t.yg)("p",null,"TODO: As of 2022-10-10, this typing is not verified against the real\nAmazon API. Please update this if you have a more accurate type."),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"SubscriptionAmazon"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#name"},"name")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#platform"},"platform")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#producttype"},"productType")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"name"},"name"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"name"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L190"},"types/index.ts:190")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"platform"},"platform"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"platform"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/SubscriptionPlatform#amazon"},(0,t.yg)("inlineCode",{parentName:"a"},"amazon"))),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L186"},"types/index.ts:186")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"producttype"},"productType"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productType"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L189"},"types/index.ts:189")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L187"},"types/index.ts:187")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/842f8d59.fc9df4c8.js b/assets/js/842f8d59.765812c4.js similarity index 88% rename from assets/js/842f8d59.fc9df4c8.js rename to assets/js/842f8d59.765812c4.js index 01cc88ebf..9a18d3cdc 100644 --- a/assets/js/842f8d59.fc9df4c8.js +++ b/assets/js/842f8d59.765812c4.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9733],{5680:(e,t,n)=>{n.d(t,{xA:()=>s,yg:()=>m});var a=n(6540);function i(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var p=a.createContext({}),d=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},s=function(e){var t=d(e.components);return a.createElement(p.Provider,{value:t},e.children)},g="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},y=a.forwardRef((function(e,t){var n=e.components,i=e.mdxType,r=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),g=d(n),y=i,m=g["".concat(p,".").concat(y)]||g[y]||u[y]||r;return n?a.createElement(m,o(o({ref:t},s),{},{components:n})):a.createElement(m,o({ref:t},s))}));function m(e,t){var n=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var r=n.length,o=new Array(r);o[0]=y;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[g]="string"==typeof e?e:i,o[1]=l;for(var d=2;d{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var a=n(8168),i=(n(6540),n(5680));const r={},o=void 0,l={unversionedId:"api/modules/IapIos",id:"api/modules/IapIos",title:"IapIos",description:"react-native-iap / Exports / IapIos",source:"@site/docs/api/modules/IapIos.md",sourceDirName:"api/modules",slug:"/api/modules/IapIos",permalink:"/docs/api/modules/IapIos",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapIos.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAndroid",permalink:"/docs/api/modules/IapAndroid"},next:{title:"IapIosSk2",permalink:"/docs/api/modules/IapIosSk2"}},p={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Type Aliases",id:"type-aliases",level:3},{value:"Functions",id:"functions",level:3},{value:"Type Aliases",id:"type-aliases-1",level:2},{value:"BuyProduct",id:"buyproduct",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"Functions",id:"functions-1",level:2},{value:"buyPromotedProductIOS",id:"buypromotedproductios",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"clearProductsIOS",id:"clearproductsios",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"clearTransactionIOS",id:"cleartransactionios",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"deepLinkToSubscriptionsIos",id:"deeplinktosubscriptionsios",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"getPendingPurchasesIOS",id:"getpendingpurchasesios",level:3},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"getPromotedProductIOS",id:"getpromotedproductios",level:3},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"getReceiptIOS",id:"getreceiptios",level:3},{value:"Usage",id:"usage",level:2},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"presentCodeRedemptionSheetIOS",id:"presentcoderedemptionsheetios",level:3},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"validateReceiptIos",id:"validatereceiptios",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-9",level:4}],s={toc:d},g="wrapper";function u(e){let{components:t,...n}=e;return(0,i.yg)(g,(0,a.A)({},s,n,{components:t,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapIos"),(0,i.yg)("h1",{id:"namespace-iapios"},"Namespace: IapIos"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"interfaces"},"Interfaces"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps"},"IosModuleProps"))),(0,i.yg)("h3",{id:"type-aliases"},"Type Aliases"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#buyproduct"},"BuyProduct"))),(0,i.yg)("h3",{id:"functions"},"Functions"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#buypromotedproductios"},"buyPromotedProductIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#clearproductsios"},"clearProductsIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#cleartransactionios"},"clearTransactionIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#deeplinktosubscriptionsios"},"deepLinkToSubscriptionsIos")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#getpendingpurchasesios"},"getPendingPurchasesIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#getpromotedproductios"},"getPromotedProductIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#getreceiptios"},"getReceiptIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#presentcoderedemptionsheetios"},"presentCodeRedemptionSheetIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#validatereceiptios"},"validateReceiptIos"))),(0,i.yg)("h2",{id:"type-aliases-1"},"Type Aliases"),(0,i.yg)("h3",{id:"buyproduct"},"BuyProduct"),(0,i.yg)("p",null,"\u01ac ",(0,i.yg)("strong",{parentName:"p"},"BuyProduct"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"number"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,i.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,i.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("a",{parentName:"td",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"andDangerouslyFinishTransactionAutomaticallyIOS")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"applicationUsername")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"quantity")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"withOffer")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,i.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L23"},"modules/ios.ts:23")),(0,i.yg)("h2",{id:"functions-1"},"Functions"),(0,i.yg)("h3",{id:"buypromotedproductios"},"buyPromotedProductIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"buyPromotedProductIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("p",null,"Buy the currently selected promoted product (iOS only)\nInitiates the payment process for a promoted product. Should only be called in response to the ",(0,i.yg)("inlineCode",{parentName:"p"},"iap-promoted-product")," event."),(0,i.yg)("h4",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L136"},"modules/ios.ts:136")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"clearproductsios"},"clearProductsIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"clearProductsIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("p",null,"Clear valid Products (iOS only)\nRemove all products which are validated by Apple server."),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L225"},"modules/ios.ts:225")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"cleartransactionios"},"clearTransactionIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"clearTransactionIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("p",null,"Clear Transaction (iOS only)\nFinish remaining transactions. Related to issue #257 and #801\nlink : ",(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/issues/257"},"https://github.com/hyochan/react-native-iap/issues/257"),"\n",(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/issues/801"},"https://github.com/hyochan/react-native-iap/issues/801")),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L217"},"modules/ios.ts:217")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"deeplinktosubscriptionsios"},"deepLinkToSubscriptionsIos"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"deepLinkToSubscriptionsIos"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L228"},"modules/ios.ts:228")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpendingpurchasesios"},"getPendingPurchasesIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"getPendingPurchasesIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductPurchase")),"[]",">"),(0,i.yg)("p",null,"Get the current receipt base64 encoded in IOS."),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductPurchase")),"[]",">"),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L61"},"modules/ios.ts:61")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpromotedproductios"},"getPromotedProductIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"getPromotedProductIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductIOS"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductIOS")),">"),(0,i.yg)("p",null,"Should Add Store Payment (iOS only)\nIndicates the the App Store purchase should continue from the app instead of the App Store."),(0,i.yg)("h4",{id:"returns-6"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductIOS"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductIOS")),">"),(0,i.yg)("p",null,"promoted product"),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L123"},"modules/ios.ts:123")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getreceiptios"},"getReceiptIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"getReceiptIOS"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"Requests"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"undefined")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),">"),(0,i.yg)("p",null,"Get the current receipt base64 encoded in IOS."),(0,i.yg)("p",null,"The sequence should be as follows:\nCall getReceiptIOS({forceRefresh: false}). That will return the cached receipt that is available on TestFlight and Production.\nIn the case of Sandbox the receipt might not be cached, causing it to return nil.\nIn that case you might want to let the user that they will to be prompted for credentials.\nIf they accept, call it again with `getReceiptIOS({forceRefresh:true}) If it fails or the user declines, assume they haven't purchased any items.\nReference: ",(0,i.yg)("a",{parentName:"p",href:"https://developer.apple.com/forums/thread/662350"},"https://developer.apple.com/forums/thread/662350")," "),(0,i.yg)("p",null,"From: ",(0,i.yg)("a",{parentName:"p",href:"https://apphud.com/blog/app-store-receipt-validation#what-is-app-store-receipt"},"https://apphud.com/blog/app-store-receipt-validation#what-is-app-store-receipt")),(0,i.yg)("blockquote",null,(0,i.yg)("p",{parentName:"blockquote"},"Q: Does a receipt always exist in the app?\nA: If a user downloaded the app from the App Store \u2013 yes. However, in sandbox if your app was installed via Xcode or Testflight, then there won't be a receipt until you make a purchase or restore.")),(0,i.yg)("h2",{id:"usage"},"Usage"),(0,i.yg)("pre",null,(0,i.yg)("code",{parentName:"pre",className:"language-tsx"},"import {getReceiptIOS} from 'react-native-iap';\ntry{\n let receipt = await getReceiptIOS({forceRefresh: false});\n if(!receipt){\n // Let user know that they might get prompted for credentials\n const shouldShowPrompt = // Display UI with details, Did user agree?. this only for Sandbox testing\n if(shouldShowPrompt){\n receipt = await getReceiptIOS({forceRefresh: true});\n }\n }\n}catch(error:Error){\n // error while getting the receipt, it might indicate an invalid receipt of a connection error while trying to get it\n}\n// If !receipt assume user doesn't own the items\n")),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Requests")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Object")),(0,i.yg)("td",{parentName:"tr",align:"left"},"the receipt from Bundle.main.appStoreReceiptURL. Based on the note above, looks like forceRefresh only makes sense when testing an app not downloaded from the Appstore. And only afer a direct user action.")),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Requests.forceRefresh?")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean")),(0,i.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,i.yg)("h4",{id:"returns-7"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"undefined")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),">"),(0,i.yg)("p",null,"The receipt data"),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L100"},"modules/ios.ts:100")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"presentcoderedemptionsheetios"},"presentCodeRedemptionSheetIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"presentCodeRedemptionSheetIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("p",null,"Launches a modal to register the redeem offer code in IOS."),(0,i.yg)("h4",{id:"returns-8"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L115"},"modules/ios.ts:115")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"validatereceiptios"},"validateReceiptIos"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"validateReceiptIos"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"false")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"ResponseBody"),">"),(0,i.yg)("p",null,"Validate receipt for iOS."),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"\xabdestructured\xbb")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Object"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,i.yg)("inlineCode",{parentName:"td"},"isTest?")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,i.yg)("inlineCode",{parentName:"td"},"receiptBody")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Record"),"\\<",(0,i.yg)("inlineCode",{parentName:"td"},"string"),", ",(0,i.yg)("inlineCode",{parentName:"td"},"unknown"),">")))),(0,i.yg)("h4",{id:"returns-9"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"false")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"ResponseBody"),">"),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L190"},"modules/ios.ts:190")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9733],{5680:(e,t,a)=>{a.d(t,{xA:()=>s,yg:()=>m});var n=a(6540);function i(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function r(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function o(e){for(var t=1;t=0||(i[a]=e[a]);return i}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var p=n.createContext({}),d=function(e){var t=n.useContext(p),a=t;return e&&(a="function"==typeof e?e(t):o(o({},t),e)),a},s=function(e){var t=d(e.components);return n.createElement(p.Provider,{value:t},e.children)},g="mdxType",u={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},y=n.forwardRef((function(e,t){var a=e.components,i=e.mdxType,r=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),g=d(a),y=i,m=g["".concat(p,".").concat(y)]||g[y]||u[y]||r;return a?n.createElement(m,o(o({ref:t},s),{},{components:a})):n.createElement(m,o({ref:t},s))}));function m(e,t){var a=arguments,i=t&&t.mdxType;if("string"==typeof e||i){var r=a.length,o=new Array(r);o[0]=y;var l={};for(var p in t)hasOwnProperty.call(t,p)&&(l[p]=t[p]);l.originalType=e,l[g]="string"==typeof e?e:i,o[1]=l;for(var d=2;d{a.r(t),a.d(t,{assets:()=>p,contentTitle:()=>o,default:()=>u,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var n=a(8168),i=(a(6540),a(5680));const r={},o=void 0,l={unversionedId:"api/modules/IapIos",id:"api/modules/IapIos",title:"IapIos",description:"react-native-iap / Exports / IapIos",source:"@site/docs/api/modules/IapIos.md",sourceDirName:"api/modules",slug:"/api/modules/IapIos",permalink:"/docs/api/modules/IapIos",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapIos.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAndroid",permalink:"/docs/api/modules/IapAndroid"},next:{title:"IapIosSk2",permalink:"/docs/api/modules/IapIosSk2"}},p={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Type Aliases",id:"type-aliases",level:3},{value:"Functions",id:"functions",level:3},{value:"Type Aliases",id:"type-aliases-1",level:2},{value:"BuyProduct",id:"buyproduct",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"Functions",id:"functions-1",level:2},{value:"buyPromotedProductIOS",id:"buypromotedproductios",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"clearProductsIOS",id:"clearproductsios",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"clearTransactionIOS",id:"cleartransactionios",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"deepLinkToSubscriptionsIos",id:"deeplinktosubscriptionsios",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"getPendingPurchasesIOS",id:"getpendingpurchasesios",level:3},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"getPromotedProductIOS",id:"getpromotedproductios",level:3},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"getReceiptIOS",id:"getreceiptios",level:3},{value:"Usage",id:"usage",level:2},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"presentCodeRedemptionSheetIOS",id:"presentcoderedemptionsheetios",level:3},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"validateReceiptIos",id:"validatereceiptios",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-9",level:4}],s={toc:d},g="wrapper";function u(e){let{components:t,...a}=e;return(0,i.yg)(g,(0,n.A)({},s,a,{components:t,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapIos"),(0,i.yg)("h1",{id:"namespace-iapios"},"Namespace: IapIos"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"interfaces"},"Interfaces"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps"},"IosModuleProps"))),(0,i.yg)("h3",{id:"type-aliases"},"Type Aliases"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#buyproduct"},"BuyProduct"))),(0,i.yg)("h3",{id:"functions"},"Functions"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#buypromotedproductios"},"buyPromotedProductIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#clearproductsios"},"clearProductsIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#cleartransactionios"},"clearTransactionIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#deeplinktosubscriptionsios"},"deepLinkToSubscriptionsIos")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#getpendingpurchasesios"},"getPendingPurchasesIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#getpromotedproductios"},"getPromotedProductIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#getreceiptios"},"getReceiptIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#presentcoderedemptionsheetios"},"presentCodeRedemptionSheetIOS")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos#validatereceiptios"},"validateReceiptIos"))),(0,i.yg)("h2",{id:"type-aliases-1"},"Type Aliases"),(0,i.yg)("h3",{id:"buyproduct"},"BuyProduct"),(0,i.yg)("p",null,"\u01ac ",(0,i.yg)("strong",{parentName:"p"},"BuyProduct"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"number"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"undefined"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,i.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"applicationUsername"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"quantity"),", ",(0,i.yg)("inlineCode",{parentName:"p"},"withOffer"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,i.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("a",{parentName:"td",href:"/docs/api/modules#sku"},(0,i.yg)("inlineCode",{parentName:"a"},"Sku")))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"andDangerouslyFinishTransactionAutomaticallyIOS")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"applicationUsername")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"quantity")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"withOffer")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Record"),"\\"," ","|"," ",(0,i.yg)("inlineCode",{parentName:"td"},"undefined"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,i.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L23"},"modules/ios.ts:23")),(0,i.yg)("h2",{id:"functions-1"},"Functions"),(0,i.yg)("h3",{id:"buypromotedproductios"},"buyPromotedProductIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"buyPromotedProductIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("p",null,"Buy the currently selected promoted product (iOS only)\nInitiates the payment process for a promoted product. Should only be called in response to the ",(0,i.yg)("inlineCode",{parentName:"p"},"iap-promoted-product")," event."),(0,i.yg)("h4",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L136"},"modules/ios.ts:136")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"clearproductsios"},"clearProductsIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"clearProductsIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("p",null,"Clear valid Products (iOS only)\nRemove all products which are validated by Apple server."),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L225"},"modules/ios.ts:225")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"cleartransactionios"},"clearTransactionIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"clearTransactionIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("p",null,"Clear Transaction (iOS only)\nFinish remaining transactions. Related to issue #257 and #801\nlink : ",(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/issues/257"},"https://github.com/hyochan/react-native-iap/issues/257"),"\n",(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/issues/801"},"https://github.com/hyochan/react-native-iap/issues/801")),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L217"},"modules/ios.ts:217")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"deeplinktosubscriptionsios"},"deepLinkToSubscriptionsIos"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"deepLinkToSubscriptionsIos"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L228"},"modules/ios.ts:228")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpendingpurchasesios"},"getPendingPurchasesIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"getPendingPurchasesIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductPurchase")),"[]",">"),(0,i.yg)("p",null,"Get the current receipt base64 encoded in IOS."),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductPurchase")),"[]",">"),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L61"},"modules/ios.ts:61")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpromotedproductios"},"getPromotedProductIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"getPromotedProductIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductIOS"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductIOS")),">"),(0,i.yg)("p",null,"Should Add Store Payment (iOS only)\nIndicates the the App Store purchase should continue from the app instead of the App Store."),(0,i.yg)("h4",{id:"returns-6"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductIOS"},(0,i.yg)("inlineCode",{parentName:"a"},"ProductIOS")),">"),(0,i.yg)("p",null,"promoted product"),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L123"},"modules/ios.ts:123")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getreceiptios"},"getReceiptIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"getReceiptIOS"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"Requests"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"undefined")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),">"),(0,i.yg)("p",null,"Get the current receipt base64 encoded in IOS."),(0,i.yg)("p",null,"The sequence should be as follows:\nCall getReceiptIOS({forceRefresh: false}). That will return the cached receipt that is available on TestFlight and Production.\nIn the case of Sandbox the receipt might not be cached, causing it to return nil.\nIn that case you might want to let the user that they will to be prompted for credentials.\nIf they accept, call it again with `getReceiptIOS({forceRefresh:true}) If it fails or the user declines, assume they haven't purchased any items.\nReference: ",(0,i.yg)("a",{parentName:"p",href:"https://developer.apple.com/forums/thread/662350"},"https://developer.apple.com/forums/thread/662350")," "),(0,i.yg)("p",null,"From: ",(0,i.yg)("a",{parentName:"p",href:"https://apphud.com/blog/app-store-receipt-validation#what-is-app-store-receipt"},"https://apphud.com/blog/app-store-receipt-validation#what-is-app-store-receipt")),(0,i.yg)("blockquote",null,(0,i.yg)("p",{parentName:"blockquote"},"Q: Does a receipt always exist in the app?\nA: If a user downloaded the app from the App Store \u2013 yes. However, in sandbox if your app was installed via Xcode or Testflight, then there won't be a receipt until you make a purchase or restore.")),(0,i.yg)("h2",{id:"usage"},"Usage"),(0,i.yg)("pre",null,(0,i.yg)("code",{parentName:"pre",className:"language-tsx"},"import {getReceiptIOS} from 'react-native-iap';\ntry{\n let receipt = await getReceiptIOS({forceRefresh: false});\n if(!receipt){\n // Let user know that they might get prompted for credentials\n const shouldShowPrompt = // Display UI with details, Did user agree?. this only for Sandbox testing\n if(shouldShowPrompt){\n receipt = await getReceiptIOS({forceRefresh: true});\n }\n }\n}catch(error:Error){\n // error while getting the receipt, it might indicate an invalid receipt of a connection error while trying to get it\n}\n// If !receipt assume user doesn't own the items\n")),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Requests")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Object")),(0,i.yg)("td",{parentName:"tr",align:"left"},"the receipt from Bundle.main.appStoreReceiptURL. Based on the note above, looks like forceRefresh only makes sense when testing an app not downloaded from the Appstore. And only afer a direct user action.")),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Requests.forceRefresh?")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean")),(0,i.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,i.yg)("h4",{id:"returns-7"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"undefined")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"null")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),">"),(0,i.yg)("p",null,"The receipt data"),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L100"},"modules/ios.ts:100")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"presentcoderedemptionsheetios"},"presentCodeRedemptionSheetIOS"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"presentCodeRedemptionSheetIOS"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("p",null,"Launches a modal to register the redeem offer code in IOS."),(0,i.yg)("h4",{id:"returns-8"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L115"},"modules/ios.ts:115")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"validatereceiptios"},"validateReceiptIos"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"validateReceiptIos"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"false")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"ResponseBody"),">"),(0,i.yg)("p",null,"Validate receipt for iOS."),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"\xabdestructured\xbb")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Object"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,i.yg)("inlineCode",{parentName:"td"},"isTest?")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,i.yg)("inlineCode",{parentName:"td"},"receiptBody")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"Record"),"\\<",(0,i.yg)("inlineCode",{parentName:"td"},"string"),", ",(0,i.yg)("inlineCode",{parentName:"td"},"unknown"),">")))),(0,i.yg)("h4",{id:"returns-9"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"false")," ","|"," ",(0,i.yg)("inlineCode",{parentName:"p"},"ResponseBody"),">"),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L190"},"modules/ios.ts:190")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/84f3aab0.285b395a.js b/assets/js/84f3aab0.6f6a75fa.js similarity index 96% rename from assets/js/84f3aab0.285b395a.js rename to assets/js/84f3aab0.6f6a75fa.js index 7d3d966cc..4c70e28ed 100644 --- a/assets/js/84f3aab0.285b395a.js +++ b/assets/js/84f3aab0.6f6a75fa.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3654],{5680:(e,r,n)=>{n.d(r,{xA:()=>p,yg:()=>y});var a=n(6540);function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var r=1;r=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var s=a.createContext({}),c=function(e){var r=a.useContext(s),n=r;return e&&(n="function"==typeof e?e(r):d(d({},r),e)),n},p=function(e){var r=c(e.components);return a.createElement(s.Provider,{value:r},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return a.createElement(a.Fragment,{},r)}},f=a.forwardRef((function(e,r){var n=e.components,t=e.mdxType,i=e.originalType,s=e.parentName,p=o(e,["components","mdxType","originalType","parentName"]),l=c(n),f=t,y=l["".concat(s,".").concat(f)]||l[f]||u[f]||i;return n?a.createElement(y,d(d({ref:r},p),{},{components:n})):a.createElement(y,d({ref:r},p))}));function y(e,r){var n=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var i=n.length,d=new Array(i);d[0]=f;var o={};for(var s in r)hasOwnProperty.call(r,s)&&(o[s]=r[s]);o.originalType=e,o[l]="string"==typeof e?e:t,d[1]=o;for(var c=2;c{n.r(r),n.d(r,{assets:()=>s,contentTitle:()=>d,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>c});var a=n(8168),t=(n(6540),n(5680));const i={},d=void 0,o={unversionedId:"api/interfaces/RequestPurchaseAndroid",id:"api/interfaces/RequestPurchaseAndroid",title:"RequestPurchaseAndroid",description:"react-native-iap / Exports / RequestPurchaseAndroid",source:"@site/docs/api/interfaces/RequestPurchaseAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestPurchaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestPurchaseAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PurchaseResult",permalink:"/docs/api/interfaces/PurchaseResult"},next:{title:"RequestPurchaseBaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseBaseAndroid"}},s={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"isOfferPersonalized",id:"isofferpersonalized",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"skus",id:"skus",level:3},{value:"Defined in",id:"defined-in-3",level:4}],p={toc:c},l="wrapper";function u(e){let{components:r,...n}=e;return(0,t.yg)(l,(0,a.A)({},p,n,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestPurchaseAndroid"),(0,t.yg)("h1",{id:"interface-requestpurchaseandroid"},"Interface: RequestPurchaseAndroid"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"RequestPurchaseBaseAndroid"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"RequestPurchaseAndroid"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#skus"},"skus"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"isofferpersonalized"},"isOfferPersonalized"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isOfferPersonalized"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L220"},"types/index.ts:220")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L218"},"types/index.ts:218")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L219"},"types/index.ts:219")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"skus"},"skus"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"skus"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L224"},"types/index.ts:224")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3654],{5680:(e,r,n)=>{n.d(r,{xA:()=>p,yg:()=>y});var a=n(6540);function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,a)}return n}function d(e){for(var r=1;r=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var s=a.createContext({}),c=function(e){var r=a.useContext(s),n=r;return e&&(n="function"==typeof e?e(r):d(d({},r),e)),n},p=function(e){var r=c(e.components);return a.createElement(s.Provider,{value:r},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return a.createElement(a.Fragment,{},r)}},f=a.forwardRef((function(e,r){var n=e.components,t=e.mdxType,i=e.originalType,s=e.parentName,p=o(e,["components","mdxType","originalType","parentName"]),l=c(n),f=t,y=l["".concat(s,".").concat(f)]||l[f]||u[f]||i;return n?a.createElement(y,d(d({ref:r},p),{},{components:n})):a.createElement(y,d({ref:r},p))}));function y(e,r){var n=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var i=n.length,d=new Array(i);d[0]=f;var o={};for(var s in r)hasOwnProperty.call(r,s)&&(o[s]=r[s]);o.originalType=e,o[l]="string"==typeof e?e:t,d[1]=o;for(var c=2;c{n.r(r),n.d(r,{assets:()=>s,contentTitle:()=>d,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>c});var a=n(8168),t=(n(6540),n(5680));const i={},d=void 0,o={unversionedId:"api/interfaces/RequestPurchaseAndroid",id:"api/interfaces/RequestPurchaseAndroid",title:"RequestPurchaseAndroid",description:"react-native-iap / Exports / RequestPurchaseAndroid",source:"@site/docs/api/interfaces/RequestPurchaseAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestPurchaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestPurchaseAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PurchaseResult",permalink:"/docs/api/interfaces/PurchaseResult"},next:{title:"RequestPurchaseBaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseBaseAndroid"}},s={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"isOfferPersonalized",id:"isofferpersonalized",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"skus",id:"skus",level:3},{value:"Defined in",id:"defined-in-3",level:4}],p={toc:c},l="wrapper";function u(e){let{components:r,...n}=e;return(0,t.yg)(l,(0,a.A)({},p,n,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestPurchaseAndroid"),(0,t.yg)("h1",{id:"interface-requestpurchaseandroid"},"Interface: RequestPurchaseAndroid"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"RequestPurchaseBaseAndroid"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"RequestPurchaseAndroid"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid#skus"},"skus"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"isofferpersonalized"},"isOfferPersonalized"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isOfferPersonalized"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L220"},"types/index.ts:220")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L218"},"types/index.ts:218")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L219"},"types/index.ts:219")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"skus"},"skus"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"skus"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L224"},"types/index.ts:224")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/86ae3ffc.89ff2f16.js b/assets/js/86ae3ffc.9f5ba53d.js similarity index 95% rename from assets/js/86ae3ffc.89ff2f16.js rename to assets/js/86ae3ffc.9f5ba53d.js index 6906e7d53..b4aebc9a7 100644 --- a/assets/js/86ae3ffc.89ff2f16.js +++ b/assets/js/86ae3ffc.9f5ba53d.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2257],{5680:(e,r,a)=>{a.d(r,{xA:()=>d,yg:()=>m});var n=a(6540);function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function i(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function o(e){for(var r=1;r=0||(t[a]=e[a]);return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}var p=n.createContext({}),s=function(e){var r=n.useContext(p),a=r;return e&&(a="function"==typeof e?e(r):o(o({},r),e)),a},d=function(e){var r=s(e.components);return n.createElement(p.Provider,{value:r},e.children)},g="mdxType",c={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},u=n.forwardRef((function(e,r){var a=e.components,t=e.mdxType,i=e.originalType,p=e.parentName,d=l(e,["components","mdxType","originalType","parentName"]),g=s(a),u=t,m=g["".concat(p,".").concat(u)]||g[u]||c[u]||i;return a?n.createElement(m,o(o({ref:r},d),{},{components:a})):n.createElement(m,o({ref:r},d))}));function m(e,r){var a=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var i=a.length,o=new Array(i);o[0]=u;var l={};for(var p in r)hasOwnProperty.call(r,p)&&(l[p]=r[p]);l.originalType=e,l[g]="string"==typeof e?e:t,o[1]=l;for(var s=2;s{a.r(r),a.d(r,{assets:()=>p,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=a(8168),t=(a(6540),a(5680));const i={},o=void 0,l={unversionedId:"api/classes/PurchaseError",id:"api/classes/PurchaseError",title:"PurchaseError",description:"react-native-iap / Exports / PurchaseError",source:"@site/docs/api/classes/PurchaseError.md",sourceDirName:"api/classes",slug:"/api/classes/PurchaseError",permalink:"/docs/api/classes/PurchaseError",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/classes/PurchaseError.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Validate Receipt Amazon",permalink:"/docs/api-reference/methods/amazon/validate-receipt-amazon"},next:{title:"ErrorCode",permalink:"/docs/api/enums/ErrorCode"}},p={},s=[{value:"Implements",id:"implements",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Constructors",id:"constructors",level:3},{value:"Properties",id:"properties",level:3},{value:"Constructors",id:"constructors-1",level:2},{value:"constructor",id:"constructor",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties-1",level:2},{value:"code",id:"code",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"debugMessage",id:"debugmessage",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"message",id:"message",level:3},{value:"Implementation of",id:"implementation-of",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"name",id:"name",level:3},{value:"Implementation of",id:"implementation-of-1",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"responseCode",id:"responsecode",level:3},{value:"Defined in",id:"defined-in-6",level:4}],d={toc:s},g="wrapper";function c(e){let{components:r,...a}=e;return(0,t.yg)(g,(0,n.A)({},d,a,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PurchaseError"),(0,t.yg)("h1",{id:"class-purchaseerror"},"Class: PurchaseError"),(0,t.yg)("h2",{id:"implements"},"Implements"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("inlineCode",{parentName:"li"},"Error"))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"constructors"},"Constructors"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#constructor"},"constructor"))),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#code"},"code")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#debugmessage"},"debugMessage")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#message"},"message")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#name"},"name")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#responsecode"},"responseCode"))),(0,t.yg)("h2",{id:"constructors-1"},"Constructors"),(0,t.yg)("h3",{id:"constructor"},"constructor"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"new PurchaseError"),"(",(0,t.yg)("inlineCode",{parentName:"p"},"name"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"message"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"responseCode?"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"debugMessage?"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"code?"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"productId?"),")"),(0,t.yg)("h4",{id:"parameters"},"Parameters"),(0,t.yg)("table",null,(0,t.yg)("thead",{parentName:"table"},(0,t.yg)("tr",{parentName:"thead"},(0,t.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,t.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,t.yg)("tbody",{parentName:"table"},(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"name")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"message")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"responseCode?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"number"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"debugMessage?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"code?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("a",{parentName:"td",href:"/docs/api/enums/ErrorCode"},(0,t.yg)("inlineCode",{parentName:"a"},"ErrorCode")))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"productId?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))))),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L22"},"purchaseError.ts:22")),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"code"},"code"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"code"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/ErrorCode"},(0,t.yg)("inlineCode",{parentName:"a"},"ErrorCode"))),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L27"},"purchaseError.ts:27")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"debugmessage"},"debugMessage"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"debugMessage"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L26"},"purchaseError.ts:26")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"message"},"message"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"message"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"implementation-of"},"Implementation of"),(0,t.yg)("p",null,"Error.message"),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L24"},"purchaseError.ts:24")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"name"},"name"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"name"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"implementation-of-1"},"Implementation of"),(0,t.yg)("p",null,"Error.name"),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L23"},"purchaseError.ts:23")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L28"},"purchaseError.ts:28")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"responsecode"},"responseCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"responseCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L25"},"purchaseError.ts:25")))}c.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2257],{5680:(e,r,a)=>{a.d(r,{xA:()=>d,yg:()=>m});var n=a(6540);function t(e,r,a){return r in e?Object.defineProperty(e,r,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[r]=a,e}function i(e,r){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),a.push.apply(a,n)}return a}function o(e){for(var r=1;r=0||(t[a]=e[a]);return t}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}var p=n.createContext({}),s=function(e){var r=n.useContext(p),a=r;return e&&(a="function"==typeof e?e(r):o(o({},r),e)),a},d=function(e){var r=s(e.components);return n.createElement(p.Provider,{value:r},e.children)},g="mdxType",c={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},u=n.forwardRef((function(e,r){var a=e.components,t=e.mdxType,i=e.originalType,p=e.parentName,d=l(e,["components","mdxType","originalType","parentName"]),g=s(a),u=t,m=g["".concat(p,".").concat(u)]||g[u]||c[u]||i;return a?n.createElement(m,o(o({ref:r},d),{},{components:a})):n.createElement(m,o({ref:r},d))}));function m(e,r){var a=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var i=a.length,o=new Array(i);o[0]=u;var l={};for(var p in r)hasOwnProperty.call(r,p)&&(l[p]=r[p]);l.originalType=e,l[g]="string"==typeof e?e:t,o[1]=l;for(var s=2;s{a.r(r),a.d(r,{assets:()=>p,contentTitle:()=>o,default:()=>c,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var n=a(8168),t=(a(6540),a(5680));const i={},o=void 0,l={unversionedId:"api/classes/PurchaseError",id:"api/classes/PurchaseError",title:"PurchaseError",description:"react-native-iap / Exports / PurchaseError",source:"@site/docs/api/classes/PurchaseError.md",sourceDirName:"api/classes",slug:"/api/classes/PurchaseError",permalink:"/docs/api/classes/PurchaseError",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/classes/PurchaseError.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Validate Receipt Amazon",permalink:"/docs/api-reference/methods/amazon/validate-receipt-amazon"},next:{title:"ErrorCode",permalink:"/docs/api/enums/ErrorCode"}},p={},s=[{value:"Implements",id:"implements",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Constructors",id:"constructors",level:3},{value:"Properties",id:"properties",level:3},{value:"Constructors",id:"constructors-1",level:2},{value:"constructor",id:"constructor",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"Properties",id:"properties-1",level:2},{value:"code",id:"code",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"debugMessage",id:"debugmessage",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"message",id:"message",level:3},{value:"Implementation of",id:"implementation-of",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"name",id:"name",level:3},{value:"Implementation of",id:"implementation-of-1",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"responseCode",id:"responsecode",level:3},{value:"Defined in",id:"defined-in-6",level:4}],d={toc:s},g="wrapper";function c(e){let{components:r,...a}=e;return(0,t.yg)(g,(0,n.A)({},d,a,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / PurchaseError"),(0,t.yg)("h1",{id:"class-purchaseerror"},"Class: PurchaseError"),(0,t.yg)("h2",{id:"implements"},"Implements"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("inlineCode",{parentName:"li"},"Error"))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"constructors"},"Constructors"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#constructor"},"constructor"))),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#code"},"code")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#debugmessage"},"debugMessage")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#message"},"message")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#name"},"name")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError#responsecode"},"responseCode"))),(0,t.yg)("h2",{id:"constructors-1"},"Constructors"),(0,t.yg)("h3",{id:"constructor"},"constructor"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"new PurchaseError"),"(",(0,t.yg)("inlineCode",{parentName:"p"},"name"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"message"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"responseCode?"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"debugMessage?"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"code?"),", ",(0,t.yg)("inlineCode",{parentName:"p"},"productId?"),")"),(0,t.yg)("h4",{id:"parameters"},"Parameters"),(0,t.yg)("table",null,(0,t.yg)("thead",{parentName:"table"},(0,t.yg)("tr",{parentName:"thead"},(0,t.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,t.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,t.yg)("tbody",{parentName:"table"},(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"name")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"message")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"responseCode?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"number"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"debugMessage?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"code?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("a",{parentName:"td",href:"/docs/api/enums/ErrorCode"},(0,t.yg)("inlineCode",{parentName:"a"},"ErrorCode")))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"productId?")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))))),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L22"},"purchaseError.ts:22")),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"code"},"code"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"code"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/ErrorCode"},(0,t.yg)("inlineCode",{parentName:"a"},"ErrorCode"))),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L27"},"purchaseError.ts:27")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"debugmessage"},"debugMessage"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"debugMessage"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L26"},"purchaseError.ts:26")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"message"},"message"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"message"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"implementation-of"},"Implementation of"),(0,t.yg)("p",null,"Error.message"),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L24"},"purchaseError.ts:24")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"name"},"name"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"name"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"implementation-of-1"},"Implementation of"),(0,t.yg)("p",null,"Error.name"),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L23"},"purchaseError.ts:23")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L28"},"purchaseError.ts:28")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"responsecode"},"responseCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"responseCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L25"},"purchaseError.ts:25")))}c.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/86b50a9f.08ec0441.js b/assets/js/86b50a9f.c6261d81.js similarity index 97% rename from assets/js/86b50a9f.08ec0441.js rename to assets/js/86b50a9f.c6261d81.js index d5da86628..1c423767d 100644 --- a/assets/js/86b50a9f.08ec0441.js +++ b/assets/js/86b50a9f.c6261d81.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[802],{5680:(e,a,n)=>{n.d(a,{xA:()=>s,yg:()=>g});var t=n(6540);function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function i(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=t.createContext({}),d=function(e){var a=t.useContext(p),n=a;return e&&(n="function"==typeof e?e(a):l(l({},a),e)),n},s=function(e){var a=d(e.components);return t.createElement(p.Provider,{value:a},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var a=e.children;return t.createElement(t.Fragment,{},a)}},y=t.forwardRef((function(e,a){var n=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),m=d(n),y=r,g=m["".concat(p,".").concat(y)]||m[y]||u[y]||i;return n?t.createElement(g,l(l({ref:a},s),{},{components:n})):t.createElement(g,l({ref:a},s))}));function g(e,a){var n=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var i=n.length,l=new Array(i);l[0]=y;var o={};for(var p in a)hasOwnProperty.call(a,p)&&(o[p]=a[p]);o.originalType=e,o[m]="string"==typeof e?e:r,l[1]=o;for(var d=2;d{n.r(a),n.d(a,{assets:()=>p,contentTitle:()=>l,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>d});var t=n(8168),r=(n(6540),n(5680));const i={},l=void 0,o={unversionedId:"api/modules/IapAmazon",id:"api/modules/IapAmazon",title:"IapAmazon",description:"react-native-iap / Exports / IapAmazon",source:"@site/docs/api/modules/IapAmazon.md",sourceDirName:"api/modules",slug:"/api/modules/IapAmazon",permalink:"/docs/api/modules/IapAmazon",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapAmazon.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionPurchase",permalink:"/docs/api/interfaces/SubscriptionPurchase"},next:{title:"IapAndroid",permalink:"/docs/api/modules/IapAndroid"}},p={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Variables",id:"variables",level:3},{value:"Functions",id:"functions",level:3},{value:"Variables",id:"variables-1",level:2},{value:"AmazonModule",id:"amazonmodule",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"Functions",id:"functions-1",level:2},{value:"deepLinkToSubscriptionsAmazon",id:"deeplinktosubscriptionsamazon",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"validateReceiptAmazon",id:"validatereceiptamazon",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"verifyLicense",id:"verifylicense",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-3",level:4}],s={toc:d},m="wrapper";function u(e){let{components:a,...n}=e;return(0,r.yg)(m,(0,t.A)({},s,n,{components:a,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapAmazon"),(0,r.yg)("h1",{id:"namespace-iapamazon"},"Namespace: IapAmazon"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"interfaces"},"Interfaces"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},"AmazonModuleProps"))),(0,r.yg)("h3",{id:"variables"},"Variables"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#amazonmodule"},"AmazonModule"))),(0,r.yg)("h3",{id:"functions"},"Functions"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#deeplinktosubscriptionsamazon"},"deepLinkToSubscriptionsAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#validatereceiptamazon"},"validateReceiptAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#verifylicense"},"verifyLicense"))),(0,r.yg)("h2",{id:"variables-1"},"Variables"),(0,r.yg)("h3",{id:"amazonmodule"},"AmazonModule"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Const")," ",(0,r.yg)("strong",{parentName:"p"},"AmazonModule"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AmazonModuleProps"))),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L46"},"modules/amazon.ts:46")),(0,r.yg)("h2",{id:"functions-1"},"Functions"),(0,r.yg)("h3",{id:"deeplinktosubscriptionsamazon"},"deepLinkToSubscriptionsAmazon"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"deepLinkToSubscriptionsAmazon"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("p",null,"Deep link to subscriptions screen on Android."),(0,r.yg)("h4",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object")),(0,r.yg)("td",{parentName:"tr",align:"left"},"The product's SKU (on Android)")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku.isAmazonDevice")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,r.yg)("h4",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L87"},"modules/amazon.ts:87")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"validatereceiptamazon"},"validateReceiptAmazon"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"validateReceiptAmazon"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("p",null,"Validate receipt for Amazon. NOTE: This method is here for debugging purposes only. Including\nyour developer secret in the binary you ship to users is potentially dangerous.\nUse server side validation instead for your production builds"),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"\xabdestructured\xbb")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"developerSecret")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"receiptId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"useSandbox")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"userId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L59"},"modules/amazon.ts:59")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"verifylicense"},"verifyLicense"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"verifyLicense"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,r.yg)("p",null,"Returns the status of verifying app's license"),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,r.yg)("p",null,(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"See"))),(0,r.yg)("p",null,"AmazonLicensingStatus"),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L79"},"modules/amazon.ts:79")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[802],{5680:(e,a,n)=>{n.d(a,{xA:()=>s,yg:()=>g});var t=n(6540);function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function i(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=t.createContext({}),d=function(e){var a=t.useContext(p),n=a;return e&&(n="function"==typeof e?e(a):l(l({},a),e)),n},s=function(e){var a=d(e.components);return t.createElement(p.Provider,{value:a},e.children)},m="mdxType",u={inlineCode:"code",wrapper:function(e){var a=e.children;return t.createElement(t.Fragment,{},a)}},y=t.forwardRef((function(e,a){var n=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),m=d(n),y=r,g=m["".concat(p,".").concat(y)]||m[y]||u[y]||i;return n?t.createElement(g,l(l({ref:a},s),{},{components:n})):t.createElement(g,l({ref:a},s))}));function g(e,a){var n=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var i=n.length,l=new Array(i);l[0]=y;var o={};for(var p in a)hasOwnProperty.call(a,p)&&(o[p]=a[p]);o.originalType=e,o[m]="string"==typeof e?e:r,l[1]=o;for(var d=2;d{n.r(a),n.d(a,{assets:()=>p,contentTitle:()=>l,default:()=>u,frontMatter:()=>i,metadata:()=>o,toc:()=>d});var t=n(8168),r=(n(6540),n(5680));const i={},l=void 0,o={unversionedId:"api/modules/IapAmazon",id:"api/modules/IapAmazon",title:"IapAmazon",description:"react-native-iap / Exports / IapAmazon",source:"@site/docs/api/modules/IapAmazon.md",sourceDirName:"api/modules",slug:"/api/modules/IapAmazon",permalink:"/docs/api/modules/IapAmazon",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapAmazon.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionPurchase",permalink:"/docs/api/interfaces/SubscriptionPurchase"},next:{title:"IapAndroid",permalink:"/docs/api/modules/IapAndroid"}},p={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Variables",id:"variables",level:3},{value:"Functions",id:"functions",level:3},{value:"Variables",id:"variables-1",level:2},{value:"AmazonModule",id:"amazonmodule",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"Functions",id:"functions-1",level:2},{value:"deepLinkToSubscriptionsAmazon",id:"deeplinktosubscriptionsamazon",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"validateReceiptAmazon",id:"validatereceiptamazon",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"verifyLicense",id:"verifylicense",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-3",level:4}],s={toc:d},m="wrapper";function u(e){let{components:a,...n}=e;return(0,r.yg)(m,(0,t.A)({},s,n,{components:a,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapAmazon"),(0,r.yg)("h1",{id:"namespace-iapamazon"},"Namespace: IapAmazon"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"interfaces"},"Interfaces"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},"AmazonModuleProps"))),(0,r.yg)("h3",{id:"variables"},"Variables"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#amazonmodule"},"AmazonModule"))),(0,r.yg)("h3",{id:"functions"},"Functions"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#deeplinktosubscriptionsamazon"},"deepLinkToSubscriptionsAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#validatereceiptamazon"},"validateReceiptAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon#verifylicense"},"verifyLicense"))),(0,r.yg)("h2",{id:"variables-1"},"Variables"),(0,r.yg)("h3",{id:"amazonmodule"},"AmazonModule"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Const")," ",(0,r.yg)("strong",{parentName:"p"},"AmazonModule"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AmazonModuleProps"))),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L46"},"modules/amazon.ts:46")),(0,r.yg)("h2",{id:"functions-1"},"Functions"),(0,r.yg)("h3",{id:"deeplinktosubscriptionsamazon"},"deepLinkToSubscriptionsAmazon"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"deepLinkToSubscriptionsAmazon"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("p",null,"Deep link to subscriptions screen on Android."),(0,r.yg)("h4",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object")),(0,r.yg)("td",{parentName:"tr",align:"left"},"The product's SKU (on Android)")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku.isAmazonDevice")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,r.yg)("h4",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L87"},"modules/amazon.ts:87")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"validatereceiptamazon"},"validateReceiptAmazon"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"validateReceiptAmazon"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("p",null,"Validate receipt for Amazon. NOTE: This method is here for debugging purposes only. Including\nyour developer secret in the binary you ship to users is potentially dangerous.\nUse server side validation instead for your production builds"),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"\xabdestructured\xbb")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"developerSecret")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"receiptId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"useSandbox")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"userId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L59"},"modules/amazon.ts:59")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"verifylicense"},"verifyLicense"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"verifyLicense"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,r.yg)("p",null,"Returns the status of verifying app's license"),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,r.yg)("p",null,(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"See"))),(0,r.yg)("p",null,"AmazonLicensingStatus"),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L79"},"modules/amazon.ts:79")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/92814f15.239e6d40.js b/assets/js/92814f15.d252cf81.js similarity index 92% rename from assets/js/92814f15.239e6d40.js rename to assets/js/92814f15.d252cf81.js index eaea48088..539857d0e 100644 --- a/assets/js/92814f15.239e6d40.js +++ b/assets/js/92814f15.d252cf81.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9631],{5680:(e,r,n)=>{n.d(r,{xA:()=>d,yg:()=>y});var a=n(6540);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function t(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var r=1;r=0||(i[n]=e[n]);return i}(e,r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var o=a.createContext({}),p=function(e){var r=a.useContext(o),n=r;return e&&(n="function"==typeof e?e(r):l(l({},r),e)),n},d=function(e){var r=p(e.components);return a.createElement(o.Provider,{value:r},e.children)},_="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return a.createElement(a.Fragment,{},r)}},s=a.forwardRef((function(e,r){var n=e.components,i=e.mdxType,t=e.originalType,o=e.parentName,d=E(e,["components","mdxType","originalType","parentName"]),_=p(n),s=i,y=_["".concat(o,".").concat(s)]||_[s]||u[s]||t;return n?a.createElement(y,l(l({ref:r},d),{},{components:n})):a.createElement(y,l({ref:r},d))}));function y(e,r){var n=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var t=n.length,l=new Array(t);l[0]=s;var E={};for(var o in r)hasOwnProperty.call(r,o)&&(E[o]=r[o]);E.originalType=e,E[_]="string"==typeof e?e:i,l[1]=E;for(var p=2;p{n.r(r),n.d(r,{assets:()=>o,contentTitle:()=>l,default:()=>u,frontMatter:()=>t,metadata:()=>E,toc:()=>p});var a=n(8168),i=(n(6540),n(5680));const t={},l=void 0,E={unversionedId:"api/enums/ErrorCode",id:"api/enums/ErrorCode",title:"ErrorCode",description:"react-native-iap / Exports / ErrorCode",source:"@site/docs/api/enums/ErrorCode.md",sourceDirName:"api/enums",slug:"/api/enums/ErrorCode",permalink:"/docs/api/enums/ErrorCode",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/ErrorCode.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PurchaseError",permalink:"/docs/api/classes/PurchaseError"},next:{title:"InstallSourceAndroid",permalink:"/docs/api/enums/InstallSourceAndroid"}},o={},p=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"E_ALREADY_OWNED",id:"e_already_owned",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"E_BILLING_RESPONSE_JSON_PARSE_ERROR",id:"e_billing_response_json_parse_error",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"E_DEFERRED_PAYMENT",id:"e_deferred_payment",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"E_DEVELOPER_ERROR",id:"e_developer_error",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"E_IAP_NOT_AVAILABLE",id:"e_iap_not_available",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"E_INTERRUPTED",id:"e_interrupted",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"E_ITEM_UNAVAILABLE",id:"e_item_unavailable",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"E_NETWORK_ERROR",id:"e_network_error",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"E_NOT_ENDED",id:"e_not_ended",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"E_NOT_PREPARED",id:"e_not_prepared",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"E_RECEIPT_FAILED",id:"e_receipt_failed",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"E_RECEIPT_FINISHED_FAILED",id:"e_receipt_finished_failed",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"E_REMOTE_ERROR",id:"e_remote_error",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"E_SERVICE_ERROR",id:"e_service_error",level:3},{value:"Defined in",id:"defined-in-13",level:4},{value:"E_UNKNOWN",id:"e_unknown",level:3},{value:"Defined in",id:"defined-in-14",level:4},{value:"E_USER_CANCELLED",id:"e_user_cancelled",level:3},{value:"Defined in",id:"defined-in-15",level:4},{value:"E_USER_ERROR",id:"e_user_error",level:3},{value:"Defined in",id:"defined-in-16",level:4}],d={toc:p},_="wrapper";function u(e){let{components:r,...n}=e;return(0,i.yg)(_,(0,a.A)({},d,n,{components:r,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ErrorCode"),(0,i.yg)("h1",{id:"enumeration-errorcode"},"Enumeration: ErrorCode"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_already_owned"},"E","_","ALREADY","_","OWNED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_billing_response_json_parse_error"},"E","_","BILLING","_","RESPONSE","_","JSON","_","PARSE","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_deferred_payment"},"E","_","DEFERRED","_","PAYMENT")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_developer_error"},"E","_","DEVELOPER","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_iap_not_available"},"E","_","IAP","_","NOT","_","AVAILABLE")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_interrupted"},"E","_","INTERRUPTED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_item_unavailable"},"E","_","ITEM","_","UNAVAILABLE")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_network_error"},"E","_","NETWORK","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_not_ended"},"E","_","NOT","_","ENDED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_not_prepared"},"E","_","NOT","_","PREPARED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_receipt_failed"},"E","_","RECEIPT","_","FAILED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_receipt_finished_failed"},"E","_","RECEIPT","_","FINISHED","_","FAILED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_remote_error"},"E","_","REMOTE","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_service_error"},"E","_","SERVICE","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_unknown"},"E","_","UNKNOWN")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_user_cancelled"},"E","_","USER","_","CANCELLED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_user_error"},"E","_","USER","_","ERROR"))),(0,i.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,i.yg)("h3",{id:"e_already_owned"},"E","_","ALREADY","_","OWNED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","ALREADY","_","OWNED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_ALREADY_OWNED"')),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L13"},"purchaseError.ts:13")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_billing_response_json_parse_error"},"E","_","BILLING","_","RESPONSE","_","JSON","_","PARSE","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","BILLING","_","RESPONSE","_","JSON","_","PARSE","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_BILLING_RESPONSE_JSON_PARSE_ERROR"')),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L15"},"purchaseError.ts:15")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_deferred_payment"},"E","_","DEFERRED","_","PAYMENT"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","DEFERRED","_","PAYMENT")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_DEFERRED_PAYMENT"')),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L16"},"purchaseError.ts:16")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_developer_error"},"E","_","DEVELOPER","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","DEVELOPER","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_DEVELOPER_ERROR"')),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L14"},"purchaseError.ts:14")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_iap_not_available"},"E","_","IAP","_","NOT","_","AVAILABLE"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","IAP","_","NOT","_","AVAILABLE")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_IAP_NOT_AVAILABLE"')),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L18"},"purchaseError.ts:18")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_interrupted"},"E","_","INTERRUPTED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","INTERRUPTED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_INTERRUPTED"')),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L17"},"purchaseError.ts:17")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_item_unavailable"},"E","_","ITEM","_","UNAVAILABLE"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","ITEM","_","UNAVAILABLE")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_ITEM_UNAVAILABLE"')),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L5"},"purchaseError.ts:5")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_network_error"},"E","_","NETWORK","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","NETWORK","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_NETWORK_ERROR"')),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L7"},"purchaseError.ts:7")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_not_ended"},"E","_","NOT","_","ENDED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","NOT","_","ENDED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_NOT_ENDED"')),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L12"},"purchaseError.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_not_prepared"},"E","_","NOT","_","PREPARED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","NOT","_","PREPARED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_NOT_PREPARED"')),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L11"},"purchaseError.ts:11")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_receipt_failed"},"E","_","RECEIPT","_","FAILED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","RECEIPT","_","FAILED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_RECEIPT_FAILED"')),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L9"},"purchaseError.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_receipt_finished_failed"},"E","_","RECEIPT","_","FINISHED","_","FAILED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","RECEIPT","_","FINISHED","_","FAILED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_RECEIPT_FINISHED_FAILED"')),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L10"},"purchaseError.ts:10")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_remote_error"},"E","_","REMOTE","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","REMOTE","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_REMOTE_ERROR"')),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L6"},"purchaseError.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_service_error"},"E","_","SERVICE","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","SERVICE","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_SERVICE_ERROR"')),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L8"},"purchaseError.ts:8")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_unknown"},"E","_","UNKNOWN"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","UNKNOWN")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_UNKNOWN"')),(0,i.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L2"},"purchaseError.ts:2")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_user_cancelled"},"E","_","USER","_","CANCELLED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","USER","_","CANCELLED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_USER_CANCELLED"')),(0,i.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L3"},"purchaseError.ts:3")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_user_error"},"E","_","USER","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","USER","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_USER_ERROR"')),(0,i.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/purchaseError.ts#L4"},"purchaseError.ts:4")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[9631],{5680:(e,r,n)=>{n.d(r,{xA:()=>d,yg:()=>y});var a=n(6540);function i(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function t(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,a)}return n}function l(e){for(var r=1;r=0||(i[n]=e[n]);return i}(e,r);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}var o=a.createContext({}),p=function(e){var r=a.useContext(o),n=r;return e&&(n="function"==typeof e?e(r):l(l({},r),e)),n},d=function(e){var r=p(e.components);return a.createElement(o.Provider,{value:r},e.children)},_="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return a.createElement(a.Fragment,{},r)}},s=a.forwardRef((function(e,r){var n=e.components,i=e.mdxType,t=e.originalType,o=e.parentName,d=E(e,["components","mdxType","originalType","parentName"]),_=p(n),s=i,y=_["".concat(o,".").concat(s)]||_[s]||u[s]||t;return n?a.createElement(y,l(l({ref:r},d),{},{components:n})):a.createElement(y,l({ref:r},d))}));function y(e,r){var n=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var t=n.length,l=new Array(t);l[0]=s;var E={};for(var o in r)hasOwnProperty.call(r,o)&&(E[o]=r[o]);E.originalType=e,E[_]="string"==typeof e?e:i,l[1]=E;for(var p=2;p{n.r(r),n.d(r,{assets:()=>o,contentTitle:()=>l,default:()=>u,frontMatter:()=>t,metadata:()=>E,toc:()=>p});var a=n(8168),i=(n(6540),n(5680));const t={},l=void 0,E={unversionedId:"api/enums/ErrorCode",id:"api/enums/ErrorCode",title:"ErrorCode",description:"react-native-iap / Exports / ErrorCode",source:"@site/docs/api/enums/ErrorCode.md",sourceDirName:"api/enums",slug:"/api/enums/ErrorCode",permalink:"/docs/api/enums/ErrorCode",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/ErrorCode.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PurchaseError",permalink:"/docs/api/classes/PurchaseError"},next:{title:"InstallSourceAndroid",permalink:"/docs/api/enums/InstallSourceAndroid"}},o={},p=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"E_ALREADY_OWNED",id:"e_already_owned",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"E_BILLING_RESPONSE_JSON_PARSE_ERROR",id:"e_billing_response_json_parse_error",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"E_DEFERRED_PAYMENT",id:"e_deferred_payment",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"E_DEVELOPER_ERROR",id:"e_developer_error",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"E_IAP_NOT_AVAILABLE",id:"e_iap_not_available",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"E_INTERRUPTED",id:"e_interrupted",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"E_ITEM_UNAVAILABLE",id:"e_item_unavailable",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"E_NETWORK_ERROR",id:"e_network_error",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"E_NOT_ENDED",id:"e_not_ended",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"E_NOT_PREPARED",id:"e_not_prepared",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"E_RECEIPT_FAILED",id:"e_receipt_failed",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"E_RECEIPT_FINISHED_FAILED",id:"e_receipt_finished_failed",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"E_REMOTE_ERROR",id:"e_remote_error",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"E_SERVICE_ERROR",id:"e_service_error",level:3},{value:"Defined in",id:"defined-in-13",level:4},{value:"E_UNKNOWN",id:"e_unknown",level:3},{value:"Defined in",id:"defined-in-14",level:4},{value:"E_USER_CANCELLED",id:"e_user_cancelled",level:3},{value:"Defined in",id:"defined-in-15",level:4},{value:"E_USER_ERROR",id:"e_user_error",level:3},{value:"Defined in",id:"defined-in-16",level:4}],d={toc:p},_="wrapper";function u(e){let{components:r,...n}=e;return(0,i.yg)(_,(0,a.A)({},d,n,{components:r,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ErrorCode"),(0,i.yg)("h1",{id:"enumeration-errorcode"},"Enumeration: ErrorCode"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_already_owned"},"E","_","ALREADY","_","OWNED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_billing_response_json_parse_error"},"E","_","BILLING","_","RESPONSE","_","JSON","_","PARSE","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_deferred_payment"},"E","_","DEFERRED","_","PAYMENT")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_developer_error"},"E","_","DEVELOPER","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_iap_not_available"},"E","_","IAP","_","NOT","_","AVAILABLE")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_interrupted"},"E","_","INTERRUPTED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_item_unavailable"},"E","_","ITEM","_","UNAVAILABLE")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_network_error"},"E","_","NETWORK","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_not_ended"},"E","_","NOT","_","ENDED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_not_prepared"},"E","_","NOT","_","PREPARED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_receipt_failed"},"E","_","RECEIPT","_","FAILED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_receipt_finished_failed"},"E","_","RECEIPT","_","FINISHED","_","FAILED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_remote_error"},"E","_","REMOTE","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_service_error"},"E","_","SERVICE","_","ERROR")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_unknown"},"E","_","UNKNOWN")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_user_cancelled"},"E","_","USER","_","CANCELLED")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode#e_user_error"},"E","_","USER","_","ERROR"))),(0,i.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,i.yg)("h3",{id:"e_already_owned"},"E","_","ALREADY","_","OWNED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","ALREADY","_","OWNED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_ALREADY_OWNED"')),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L13"},"purchaseError.ts:13")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_billing_response_json_parse_error"},"E","_","BILLING","_","RESPONSE","_","JSON","_","PARSE","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","BILLING","_","RESPONSE","_","JSON","_","PARSE","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_BILLING_RESPONSE_JSON_PARSE_ERROR"')),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L15"},"purchaseError.ts:15")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_deferred_payment"},"E","_","DEFERRED","_","PAYMENT"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","DEFERRED","_","PAYMENT")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_DEFERRED_PAYMENT"')),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L16"},"purchaseError.ts:16")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_developer_error"},"E","_","DEVELOPER","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","DEVELOPER","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_DEVELOPER_ERROR"')),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L14"},"purchaseError.ts:14")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_iap_not_available"},"E","_","IAP","_","NOT","_","AVAILABLE"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","IAP","_","NOT","_","AVAILABLE")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_IAP_NOT_AVAILABLE"')),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L18"},"purchaseError.ts:18")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_interrupted"},"E","_","INTERRUPTED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","INTERRUPTED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_INTERRUPTED"')),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L17"},"purchaseError.ts:17")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_item_unavailable"},"E","_","ITEM","_","UNAVAILABLE"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","ITEM","_","UNAVAILABLE")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_ITEM_UNAVAILABLE"')),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L5"},"purchaseError.ts:5")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_network_error"},"E","_","NETWORK","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","NETWORK","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_NETWORK_ERROR"')),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L7"},"purchaseError.ts:7")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_not_ended"},"E","_","NOT","_","ENDED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","NOT","_","ENDED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_NOT_ENDED"')),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L12"},"purchaseError.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_not_prepared"},"E","_","NOT","_","PREPARED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","NOT","_","PREPARED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_NOT_PREPARED"')),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L11"},"purchaseError.ts:11")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_receipt_failed"},"E","_","RECEIPT","_","FAILED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","RECEIPT","_","FAILED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_RECEIPT_FAILED"')),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L9"},"purchaseError.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_receipt_finished_failed"},"E","_","RECEIPT","_","FINISHED","_","FAILED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","RECEIPT","_","FINISHED","_","FAILED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_RECEIPT_FINISHED_FAILED"')),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L10"},"purchaseError.ts:10")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_remote_error"},"E","_","REMOTE","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","REMOTE","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_REMOTE_ERROR"')),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L6"},"purchaseError.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_service_error"},"E","_","SERVICE","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","SERVICE","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_SERVICE_ERROR"')),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L8"},"purchaseError.ts:8")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_unknown"},"E","_","UNKNOWN"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","UNKNOWN")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_UNKNOWN"')),(0,i.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L2"},"purchaseError.ts:2")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_user_cancelled"},"E","_","USER","_","CANCELLED"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","USER","_","CANCELLED")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_USER_CANCELLED"')),(0,i.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L3"},"purchaseError.ts:3")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"e_user_error"},"E","_","USER","_","ERROR"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"E","_","USER","_","ERROR")," = ",(0,i.yg)("inlineCode",{parentName:"p"},'"E_USER_ERROR"')),(0,i.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/purchaseError.ts#L4"},"purchaseError.ts:4")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/a3efbc45.f5ac5b80.js b/assets/js/a3efbc45.e0717f14.js similarity index 83% rename from assets/js/a3efbc45.f5ac5b80.js rename to assets/js/a3efbc45.e0717f14.js index 210970e1b..6bf0cef49 100644 --- a/assets/js/a3efbc45.f5ac5b80.js +++ b/assets/js/a3efbc45.e0717f14.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6314],{5680:(e,n,i)=>{i.d(n,{xA:()=>s,yg:()=>f});var t=i(6540);function r(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function p(e){for(var n=1;n=0||(r[i]=e[i]);return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var l=t.createContext({}),d=function(e){var n=t.useContext(l),i=n;return e&&(i="function"==typeof e?e(n):p(p({},n),e)),i},s=function(e){var n=d(e.components);return t.createElement(l.Provider,{value:n},e.children)},c="mdxType",y={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},u=t.forwardRef((function(e,n){var i=e.components,r=e.mdxType,a=e.originalType,l=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=d(i),u=r,f=c["".concat(l,".").concat(u)]||c[u]||y[u]||a;return i?t.createElement(f,p(p({ref:n},s),{},{components:i})):t.createElement(f,p({ref:n},s))}));function f(e,n){var i=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=i.length,p=new Array(a);p[0]=u;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o[c]="string"==typeof e?e:r,p[1]=o;for(var d=2;d{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>y,frontMatter:()=>a,metadata:()=>o,toc:()=>d});var t=i(8168),r=(i(6540),i(5680));const a={},p=void 0,o={unversionedId:"api/interfaces/Discount",id:"api/interfaces/Discount",title:"Discount",description:"react-native-iap / Exports / Discount",source:"@site/docs/api/interfaces/Discount.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/Discount",permalink:"/docs/api/interfaces/Discount",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/Discount.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"TransactionReason",permalink:"/docs/api/enums/TransactionReason"},next:{title:"IapAmazon.AmazonModuleProps",permalink:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"}},l={},d=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"identifier",id:"identifier",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"numberOfPeriods",id:"numberofperiods",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"paymentMode",id:"paymentmode",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"price",id:"price",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"subscriptionPeriod",id:"subscriptionperiod",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-6",level:4}],s={toc:d},c="wrapper";function y(e){let{components:n,...i}=e;return(0,r.yg)(c,(0,t.A)({},s,i,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / Discount"),(0,r.yg)("h1",{id:"interface-discount"},"Interface: Discount"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#identifier"},"identifier")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#localizedprice"},"localizedPrice")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#numberofperiods"},"numberOfPeriods")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#paymentmode"},"paymentMode")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#price"},"price")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#subscriptionperiod"},"subscriptionPeriod")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#type"},"type"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"identifier"},"identifier"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"identifier"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L116"},"types/index.ts:116")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L120"},"types/index.ts:120")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"numberofperiods"},"numberOfPeriods"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"numberOfPeriods"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L118"},"types/index.ts:118")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"paymentmode"},"paymentMode"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"paymentMode"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'""')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"FREETRIAL"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"PAYASYOUGO"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"PAYUPFRONT"')),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L121"},"types/index.ts:121")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"price"},"price"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"price"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L119"},"types/index.ts:119")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"subscriptionperiod"},"subscriptionPeriod"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"subscriptionPeriod"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L122"},"types/index.ts:122")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"type"},"type"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"type"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L117"},"types/index.ts:117")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6314],{5680:(e,n,i)=>{i.d(n,{xA:()=>c,yg:()=>f});var t=i(6540);function r(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function p(e){for(var n=1;n=0||(r[i]=e[i]);return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var l=t.createContext({}),s=function(e){var n=t.useContext(l),i=n;return e&&(i="function"==typeof e?e(n):p(p({},n),e)),i},c=function(e){var n=s(e.components);return t.createElement(l.Provider,{value:n},e.children)},d="mdxType",y={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},u=t.forwardRef((function(e,n){var i=e.components,r=e.mdxType,a=e.originalType,l=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),d=s(i),u=r,f=d["".concat(l,".").concat(u)]||d[u]||y[u]||a;return i?t.createElement(f,p(p({ref:n},c),{},{components:i})):t.createElement(f,p({ref:n},c))}));function f(e,n){var i=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=i.length,p=new Array(a);p[0]=u;var o={};for(var l in n)hasOwnProperty.call(n,l)&&(o[l]=n[l]);o.originalType=e,o[d]="string"==typeof e?e:r,p[1]=o;for(var s=2;s{i.r(n),i.d(n,{assets:()=>l,contentTitle:()=>p,default:()=>y,frontMatter:()=>a,metadata:()=>o,toc:()=>s});var t=i(8168),r=(i(6540),i(5680));const a={},p=void 0,o={unversionedId:"api/interfaces/Discount",id:"api/interfaces/Discount",title:"Discount",description:"react-native-iap / Exports / Discount",source:"@site/docs/api/interfaces/Discount.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/Discount",permalink:"/docs/api/interfaces/Discount",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/Discount.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"TransactionReason",permalink:"/docs/api/enums/TransactionReason"},next:{title:"IapAmazon.AmazonModuleProps",permalink:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"}},l={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"identifier",id:"identifier",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"numberOfPeriods",id:"numberofperiods",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"paymentMode",id:"paymentmode",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"price",id:"price",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"subscriptionPeriod",id:"subscriptionperiod",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"type",id:"type",level:3},{value:"Defined in",id:"defined-in-6",level:4}],c={toc:s},d="wrapper";function y(e){let{components:n,...i}=e;return(0,r.yg)(d,(0,t.A)({},c,i,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / Discount"),(0,r.yg)("h1",{id:"interface-discount"},"Interface: Discount"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#identifier"},"identifier")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#localizedprice"},"localizedPrice")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#numberofperiods"},"numberOfPeriods")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#paymentmode"},"paymentMode")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#price"},"price")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#subscriptionperiod"},"subscriptionPeriod")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount#type"},"type"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"identifier"},"identifier"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"identifier"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L116"},"types/index.ts:116")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L120"},"types/index.ts:120")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"numberofperiods"},"numberOfPeriods"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"numberOfPeriods"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L118"},"types/index.ts:118")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"paymentmode"},"paymentMode"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"paymentMode"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'""')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"FREETRIAL"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"PAYASYOUGO"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"PAYUPFRONT"')),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L121"},"types/index.ts:121")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"price"},"price"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"price"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L119"},"types/index.ts:119")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"subscriptionperiod"},"subscriptionPeriod"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"subscriptionPeriod"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L122"},"types/index.ts:122")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"type"},"type"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"type"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L117"},"types/index.ts:117")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/a80f4ca5.ccdff68b.js b/assets/js/a80f4ca5.bf8d4a71.js similarity index 94% rename from assets/js/a80f4ca5.ccdff68b.js rename to assets/js/a80f4ca5.bf8d4a71.js index c858b40e8..dd741de68 100644 --- a/assets/js/a80f4ca5.ccdff68b.js +++ b/assets/js/a80f4ca5.bf8d4a71.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3047],{5680:(e,t,n)=>{n.d(t,{xA:()=>c,yg:()=>f});var a=n(6540);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),l=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},c=function(e){var t=l(e.components);return a.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},y=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),u=l(n),y=r,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||i;return n?a.createElement(f,o(o({ref:t},c),{},{components:n})):a.createElement(f,o({ref:t},c))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,o=new Array(i);o[0]=y;var s={};for(var p in t)hasOwnProperty.call(t,p)&&(s[p]=t[p]);s.originalType=e,s[u]="string"==typeof e?e:r,o[1]=s;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>o,default:()=>d,frontMatter:()=>i,metadata:()=>s,toc:()=>l});var a=n(8168),r=(n(6540),n(5680));const i={},o=void 0,s={unversionedId:"api/interfaces/RequestPurchaseIOS",id:"api/interfaces/RequestPurchaseIOS",title:"RequestPurchaseIOS",description:"react-native-iap / Exports / RequestPurchaseIOS",source:"@site/docs/api/interfaces/RequestPurchaseIOS.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestPurchaseIOS",permalink:"/docs/api/interfaces/RequestPurchaseIOS",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestPurchaseIOS.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestPurchaseBaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},next:{title:"RequestSubscriptionAndroid",permalink:"/docs/api/interfaces/RequestSubscriptionAndroid"}},p={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"andDangerouslyFinishTransactionAutomaticallyIOS",id:"anddangerouslyfinishtransactionautomaticallyios",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"appAccountToken",id:"appaccounttoken",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"quantity",id:"quantity",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"sku",id:"sku",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"withOffer",id:"withoffer",level:3},{value:"Defined in",id:"defined-in-4",level:4}],c={toc:l},u="wrapper";function d(e){let{components:t,...n}=e;return(0,r.yg)(u,(0,a.A)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestPurchaseIOS"),(0,r.yg)("h1",{id:"interface-requestpurchaseios"},"Interface: RequestPurchaseIOS"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#anddangerouslyfinishtransactionautomaticallyios"},"andDangerouslyFinishTransactionAutomaticallyIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#appaccounttoken"},"appAccountToken")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#quantity"},"quantity")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#sku"},"sku")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#withoffer"},"withOffer"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"anddangerouslyfinishtransactionautomaticallyios"},"andDangerouslyFinishTransactionAutomaticallyIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L229"},"types/index.ts:229")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"appaccounttoken"},"appAccountToken"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"appAccountToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("p",null,"UUID representing user account"),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L233"},"types/index.ts:233")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"quantity"},"quantity"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"quantity"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L234"},"types/index.ts:234")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"sku"},"sku"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"sku"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L228"},"types/index.ts:228")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"withoffer"},"withOffer"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"withOffer"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"PaymentDiscount")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L235"},"types/index.ts:235")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3047],{5680:(e,t,n)=>{n.d(t,{xA:()=>c,yg:()=>f});var a=n(6540);function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function o(e){for(var t=1;t=0||(r[n]=e[n]);return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=a.createContext({}),l=function(e){var t=a.useContext(p),n=t;return e&&(n="function"==typeof e?e(t):o(o({},t),e)),n},c=function(e){var t=l(e.components);return a.createElement(p.Provider,{value:t},e.children)},u="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return a.createElement(a.Fragment,{},t)}},y=a.forwardRef((function(e,t){var n=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,c=s(e,["components","mdxType","originalType","parentName"]),u=l(n),y=r,f=u["".concat(p,".").concat(y)]||u[y]||d[y]||i;return n?a.createElement(f,o(o({ref:t},c),{},{components:n})):a.createElement(f,o({ref:t},c))}));function f(e,t){var n=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var i=n.length,o=new Array(i);o[0]=y;var s={};for(var p in t)hasOwnProperty.call(t,p)&&(s[p]=t[p]);s.originalType=e,s[u]="string"==typeof e?e:r,o[1]=s;for(var l=2;l{n.r(t),n.d(t,{assets:()=>p,contentTitle:()=>o,default:()=>d,frontMatter:()=>i,metadata:()=>s,toc:()=>l});var a=n(8168),r=(n(6540),n(5680));const i={},o=void 0,s={unversionedId:"api/interfaces/RequestPurchaseIOS",id:"api/interfaces/RequestPurchaseIOS",title:"RequestPurchaseIOS",description:"react-native-iap / Exports / RequestPurchaseIOS",source:"@site/docs/api/interfaces/RequestPurchaseIOS.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestPurchaseIOS",permalink:"/docs/api/interfaces/RequestPurchaseIOS",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestPurchaseIOS.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestPurchaseBaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},next:{title:"RequestSubscriptionAndroid",permalink:"/docs/api/interfaces/RequestSubscriptionAndroid"}},p={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"andDangerouslyFinishTransactionAutomaticallyIOS",id:"anddangerouslyfinishtransactionautomaticallyios",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"appAccountToken",id:"appaccounttoken",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"quantity",id:"quantity",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"sku",id:"sku",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"withOffer",id:"withoffer",level:3},{value:"Defined in",id:"defined-in-4",level:4}],c={toc:l},u="wrapper";function d(e){let{components:t,...n}=e;return(0,r.yg)(u,(0,a.A)({},c,n,{components:t,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestPurchaseIOS"),(0,r.yg)("h1",{id:"interface-requestpurchaseios"},"Interface: RequestPurchaseIOS"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#anddangerouslyfinishtransactionautomaticallyios"},"andDangerouslyFinishTransactionAutomaticallyIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#appaccounttoken"},"appAccountToken")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#quantity"},"quantity")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#sku"},"sku")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS#withoffer"},"withOffer"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"anddangerouslyfinishtransactionautomaticallyios"},"andDangerouslyFinishTransactionAutomaticallyIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"andDangerouslyFinishTransactionAutomaticallyIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L229"},"types/index.ts:229")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"appaccounttoken"},"appAccountToken"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"appAccountToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("p",null,"UUID representing user account"),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L233"},"types/index.ts:233")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"quantity"},"quantity"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"quantity"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L234"},"types/index.ts:234")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"sku"},"sku"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"sku"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L228"},"types/index.ts:228")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"withoffer"},"withOffer"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"withOffer"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"PaymentDiscount")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L235"},"types/index.ts:235")))}d.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/a9039898.9db5977c.js b/assets/js/a9039898.61a4e642.js similarity index 97% rename from assets/js/a9039898.9db5977c.js rename to assets/js/a9039898.61a4e642.js index bbcb9dd8d..d735b2794 100644 --- a/assets/js/a9039898.9db5977c.js +++ b/assets/js/a9039898.61a4e642.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6966],{5680:(e,r,t)=>{t.d(r,{xA:()=>f,yg:()=>y});var n=t(6540);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function a(e){for(var r=1;r=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var s=n.createContext({}),c=function(e){var r=n.useContext(s),t=r;return e&&(t="function"==typeof e?e(r):a(a({},r),e)),t},f=function(e){var r=c(e.components);return n.createElement(s.Provider,{value:r},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,i=e.mdxType,o=e.originalType,s=e.parentName,f=p(e,["components","mdxType","originalType","parentName"]),l=c(t),d=i,y=l["".concat(s,".").concat(d)]||l[d]||u[d]||o;return t?n.createElement(y,a(a({ref:r},f),{},{components:t})):n.createElement(y,a({ref:r},f))}));function y(e,r){var t=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=d;var p={};for(var s in r)hasOwnProperty.call(r,s)&&(p[s]=r[s]);p.originalType=e,p[l]="string"==typeof e?e:i,a[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>a,default:()=>u,frontMatter:()=>o,metadata:()=>p,toc:()=>c});var n=t(8168),i=(t(6540),t(5680));const o={},a=void 0,p={unversionedId:"api/interfaces/SubscriptionOffer",id:"api/interfaces/SubscriptionOffer",title:"SubscriptionOffer",description:"react-native-iap / Exports / SubscriptionOffer",source:"@site/docs/api/interfaces/SubscriptionOffer.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionOffer",permalink:"/docs/api/interfaces/SubscriptionOffer",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionOffer.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionIOS",permalink:"/docs/api/interfaces/SubscriptionIOS"},next:{title:"SubscriptionOfferAndroid",permalink:"/docs/api/interfaces/SubscriptionOfferAndroid"}},s={},c=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"offerToken",id:"offertoken",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"sku",id:"sku",level:3},{value:"Defined in",id:"defined-in-1",level:4}],f={toc:c},l="wrapper";function u(e){let{components:r,...t}=e;return(0,i.yg)(l,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionOffer"),(0,i.yg)("h1",{id:"interface-subscriptionoffer"},"Interface: SubscriptionOffer"),(0,i.yg)("p",null,"In order to purchase a new subscription, every sku must have a selected offerToken"),(0,i.yg)("p",null,(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"See"))),(0,i.yg)("p",null,"SubscriptionAndroid.subscriptionOfferDetails.offerToken"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOffer#offertoken"},"offerToken")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOffer#sku"},"sku"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"offertoken"},"offerToken"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerToken"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L252"},"types/index.ts:252")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"sku"},"sku"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"sku"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L251"},"types/index.ts:251")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6966],{5680:(e,r,t)=>{t.d(r,{xA:()=>f,yg:()=>y});var n=t(6540);function i(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function o(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function a(e){for(var r=1;r=0||(i[t]=e[t]);return i}(e,r);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(i[t]=e[t])}return i}var s=n.createContext({}),c=function(e){var r=n.useContext(s),t=r;return e&&(t="function"==typeof e?e(r):a(a({},r),e)),t},f=function(e){var r=c(e.components);return n.createElement(s.Provider,{value:r},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return n.createElement(n.Fragment,{},r)}},d=n.forwardRef((function(e,r){var t=e.components,i=e.mdxType,o=e.originalType,s=e.parentName,f=p(e,["components","mdxType","originalType","parentName"]),l=c(t),d=i,y=l["".concat(s,".").concat(d)]||l[d]||u[d]||o;return t?n.createElement(y,a(a({ref:r},f),{},{components:t})):n.createElement(y,a({ref:r},f))}));function y(e,r){var t=arguments,i=r&&r.mdxType;if("string"==typeof e||i){var o=t.length,a=new Array(o);a[0]=d;var p={};for(var s in r)hasOwnProperty.call(r,s)&&(p[s]=r[s]);p.originalType=e,p[l]="string"==typeof e?e:i,a[1]=p;for(var c=2;c{t.r(r),t.d(r,{assets:()=>s,contentTitle:()=>a,default:()=>u,frontMatter:()=>o,metadata:()=>p,toc:()=>c});var n=t(8168),i=(t(6540),t(5680));const o={},a=void 0,p={unversionedId:"api/interfaces/SubscriptionOffer",id:"api/interfaces/SubscriptionOffer",title:"SubscriptionOffer",description:"react-native-iap / Exports / SubscriptionOffer",source:"@site/docs/api/interfaces/SubscriptionOffer.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionOffer",permalink:"/docs/api/interfaces/SubscriptionOffer",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionOffer.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionIOS",permalink:"/docs/api/interfaces/SubscriptionIOS"},next:{title:"SubscriptionOfferAndroid",permalink:"/docs/api/interfaces/SubscriptionOfferAndroid"}},s={},c=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"offerToken",id:"offertoken",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"sku",id:"sku",level:3},{value:"Defined in",id:"defined-in-1",level:4}],f={toc:c},l="wrapper";function u(e){let{components:r,...t}=e;return(0,i.yg)(l,(0,n.A)({},f,t,{components:r,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionOffer"),(0,i.yg)("h1",{id:"interface-subscriptionoffer"},"Interface: SubscriptionOffer"),(0,i.yg)("p",null,"In order to purchase a new subscription, every sku must have a selected offerToken"),(0,i.yg)("p",null,(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"See"))),(0,i.yg)("p",null,"SubscriptionAndroid.subscriptionOfferDetails.offerToken"),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOffer#offertoken"},"offerToken")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOffer#sku"},"sku"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"offertoken"},"offerToken"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"offerToken"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L252"},"types/index.ts:252")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"sku"},"sku"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"sku"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L251"},"types/index.ts:251")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/ab22a499.c1184bc0.js b/assets/js/ab22a499.c1184bc0.js new file mode 100644 index 000000000..fc178e5a7 --- /dev/null +++ b/assets/js/ab22a499.c1184bc0.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6999],{5680:(e,t,a)=>{a.d(t,{xA:()=>u,yg:()=>g});var n=a(6540);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var s=n.createContext({}),p=function(e){var t=n.useContext(s),a=t;return e&&(a="function"==typeof e?e(t):i(i({},t),e)),a},u=function(e){var t=p(e.components);return n.createElement(s.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,o=e.originalType,s=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=p(a),m=r,g=c["".concat(s,".").concat(m)]||c[m]||d[m]||o;return a?n.createElement(g,i(i({ref:t},u),{},{components:a})):n.createElement(g,i({ref:t},u))}));function g(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=a.length,i=new Array(o);i[0]=m;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l[c]="string"==typeof e?e:r,i[1]=l;for(var p=2;p{a.d(t,{A:()=>i});var n=a(6540),r=a(53);const o={tabItem:"tabItem_Ymn6"};function i(e){let{children:t,hidden:a,className:i}=e;return n.createElement("div",{role:"tabpanel",className:(0,r.A)(o.tabItem,i),hidden:a},t)}},1470:(e,t,a)=>{a.d(t,{A:()=>w});var n=a(8168),r=a(6540),o=a(53),i=a(3104),l=a(6347),s=a(7485),p=a(1682),u=a(9466);function c(e){return function(e){return r.Children.map(e,(e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}(e).map((e=>{let{props:{value:t,label:a,attributes:n,default:r}}=e;return{value:t,label:a,attributes:n,default:r}}))}function d(e){const{values:t,children:a}=e;return(0,r.useMemo)((()=>{const e=t??c(a);return function(e){const t=(0,p.X)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,a])}function m(e){let{value:t,tabValues:a}=e;return a.some((e=>e.value===t))}function g(e){let{queryString:t=!1,groupId:a}=e;const n=(0,l.W6)(),o=function(e){let{queryString:t=!1,groupId:a}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:t,groupId:a});return[(0,s.aZ)(o),(0,r.useCallback)((e=>{if(!o)return;const t=new URLSearchParams(n.location.search);t.set(o,e),n.replace({...n.location,search:t.toString()})}),[o,n])]}function y(e){const{defaultValue:t,queryString:a=!1,groupId:n}=e,o=d(e),[i,l]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:a}=e;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!m({value:t,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${a.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=a.find((e=>e.default))??a[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:o}))),[s,p]=g({queryString:a,groupId:n}),[c,y]=function(e){let{groupId:t}=e;const a=function(e){return e?`docusaurus.tab.${e}`:null}(t),[n,o]=(0,u.Dv)(a);return[n,(0,r.useCallback)((e=>{a&&o.set(e)}),[a,o])]}({groupId:n}),h=(()=>{const e=s??c;return m({value:e,tabValues:o})?e:null})();(0,r.useLayoutEffect)((()=>{h&&l(h)}),[h]);return{selectedValue:i,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);l(e),p(e),y(e)}),[p,y,o]),tabValues:o}}var h=a(2303);const f={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};function b(e){let{className:t,block:a,selectedValue:l,selectValue:s,tabValues:p}=e;const u=[],{blockElementScrollPositionUntilNextRender:c}=(0,i.a_)(),d=e=>{const t=e.currentTarget,a=u.indexOf(t),n=p[a].value;n!==l&&(c(t),s(n))},m=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const a=u.indexOf(e.currentTarget)+1;t=u[a]??u[0];break}case"ArrowLeft":{const a=u.indexOf(e.currentTarget)-1;t=u[a]??u[u.length-1];break}}t?.focus()};return r.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.A)("tabs",{"tabs--block":a},t)},p.map((e=>{let{value:t,label:a,attributes:i}=e;return r.createElement("li",(0,n.A)({role:"tab",tabIndex:l===t?0:-1,"aria-selected":l===t,key:t,ref:e=>u.push(e),onKeyDown:m,onClick:d},i,{className:(0,o.A)("tabs__item",f.tabItem,i?.className,{"tabs__item--active":l===t})}),a??t)})))}function v(e){let{lazy:t,children:a,selectedValue:n}=e;const o=(Array.isArray(a)?a:[a]).filter(Boolean);if(t){const e=o.find((e=>e.props.value===n));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return r.createElement("div",{className:"margin-top--md"},o.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==n}))))}function A(e){const t=y(e);return r.createElement("div",{className:(0,o.A)("tabs-container",f.tabList)},r.createElement(b,(0,n.A)({},e,t)),r.createElement(v,(0,n.A)({},e,t)))}function w(e){const t=(0,h.A)();return r.createElement(A,(0,n.A)({key:String(t)},e))}},8663:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(6540);function r(e){let{className:t="adfit",style:a,unit:r,height:o,width:i}=e;return(0,n.useEffect)((()=>{let e=document.createElement("ins"),a=document.createElement("script");e.className="kakao_ad_area",e.style="display:none; width:100%;",a.async="true",a.type="text/javascript",a.src="//t1.daumcdn.net/kas/static/ba.min.js",e.setAttribute("data-ad-width",i.toString()),e.setAttribute("data-ad-height",o.toString()),e.setAttribute("data-ad-unit",r.toString()),document.querySelector(`.${t}`).appendChild(e),document.querySelector(`.${t}`).appendChild(a)}),[]),n.createElement("div",{style:a},n.createElement("div",{className:t}))}},1748:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6540),r=a(8663);function o(){return n.createElement(r.A,{unit:"DAN-YTmjDwlbcP42HBg6",height:100,width:320,className:"adfit-top",style:{flex:1,marginTop:24,marginBottom:24}})}},8109:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>c,contentTitle:()=>p,default:()=>y,frontMatter:()=>s,metadata:()=>u,toc:()=>d});var n=a(8168),r=(a(6540),a(5680)),o=a(1470),i=a(9365),l=a(1748);const s={title:"Amazon IAP",sidebar_label:"Amazon IAP",sidebar_position:7},p=void 0,u={unversionedId:"guides/amazon-iap",id:"guides/amazon-iap",title:"Amazon IAP",description:"The guide assumes that react-native-iap is implemented in your app and works with the Play Store without issues. Here are the additional steps to configure Amazon IAP.",source:"@site/docs/guides/amazon-iap.mdx",sourceDirName:"guides",slug:"/guides/amazon-iap",permalink:"/docs/guides/amazon-iap",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/guides/amazon-iap.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"Amazon IAP",sidebar_label:"Amazon IAP",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"Receipts",permalink:"/docs/guides/receipts"},next:{title:"Troubleshooting",permalink:"/docs/guides/troubleshooting"}},c={},d=[{value:"Add In-App Items for your app",id:"add-in-app-items-for-your-app",level:3},{value:"App configuration",id:"app-configuration",level:3},{value:"Amazon's DRM protection",id:"amazons-drm-protection",level:2},{value:"Disabling Amazon's DRM",id:"disabling-amazons-drm",level:3},{value:"Testing in development",id:"testing-in-development",level:2},{value:"Server Validation",id:"server-validation",level:2},{value:"Subscriptions",id:"subscriptions",level:2},{value:"Caveats",id:"caveats",level:2}],m={toc:d},g="wrapper";function y(e){let{components:t,...a}=e;return(0,r.yg)(g,(0,n.A)({},m,a,{components:t,mdxType:"MDXLayout"}),(0,r.yg)(l.A,{mdxType:"AdFitTopFixed"}),(0,r.yg)("h1",{id:"amazon-iap"},"Amazon IAP"),(0,r.yg)("p",null,"The guide assumes that ",(0,r.yg)("inlineCode",{parentName:"p"},"react-native-iap")," is implemented in your app and works with the Play Store without issues. Here are the additional steps to configure Amazon IAP."),(0,r.yg)("h3",{id:"add-in-app-items-for-your-app"},"Add In-App Items for your app"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("p",{parentName:"li"},'Create "In-App Items" using Amazon Developer portal for your app. Amazon put up detailed instructions at ',(0,r.yg)("a",{parentName:"p",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-create-and-submit-iap-items.html"},"https://developer.amazon.com/docs/in-app-purchasing/iap-create-and-submit-iap-items.html"))),(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("p",{parentName:"li"},"Add this a call to ",(0,r.yg)("inlineCode",{parentName:"p"},"RNIapActivityListener.registerActivity(this);")," inside your ",(0,r.yg)("inlineCode",{parentName:"p"},"MainActivity"),"'s ",(0,r.yg)("inlineCode",{parentName:"p"},"onCreate")," method. This is a necessary step only when using Amazon, but adding it will not affect negatively your Google Play Android builds. E.g.:"))),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-java"},"\nimport com.dooboolab.rniap.RNIapActivityListener;\n...\npublic class MainActivity extends ReactActivity {\n ...\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //Needed for Amazon IAP\n RNIapActivityListener.registerActivity(this);\n }\n")),(0,r.yg)("ol",{start:3},(0,r.yg)("li",{parentName:"ol"},"Add new ",(0,r.yg)("inlineCode",{parentName:"li"},"SKU")," strings to your ",(0,r.yg)("inlineCode",{parentName:"li"},"Iap.getProducts")," or ",(0,r.yg)("inlineCode",{parentName:"li"},"Iap.getSubscriptions")," calls.")),(0,r.yg)("h3",{id:"app-configuration"},"App configuration"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},"The current version of Amazon IAP SDK does not play well with R8 optimization. (",(0,r.yg)("a",{parentName:"li",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-obfuscate-the-code.html"},"https://developer.amazon.com/docs/in-app-purchasing/iap-obfuscate-the-code.html"),").")),(0,r.yg)("p",null,"Add the code below in ",(0,r.yg)("inlineCode",{parentName:"p"},"android/app/proguard-rules.pro"),":"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-diff"},"+ -dontwarn com.amazon.**\n+ -keep class com.amazon.** {*;}\n+ -keepattributes *Annotation*\n")),(0,r.yg)("h2",{id:"amazons-drm-protection"},"Amazon's DRM protection"),(0,r.yg)("p",null,"This package includes Amazon's DRM (Digital Rights Management) protection enabled by default. Amazon's DRM allows license verification for your app, ensuring compliance and protection of your digital content. For more details, refer to the following resources:"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("a",{parentName:"li",href:"https://developer.amazon.com/docs/in-app-purchasing/drm-overview.html"},"DRM Overview")),(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("a",{parentName:"li",href:"https://developer.amazon.com/docs/in-app-purchasing/drm-android.html"},"DRM for Android"))),(0,r.yg)("h3",{id:"disabling-amazons-drm"},"Disabling Amazon's DRM"),(0,r.yg)("p",null,"In certain cases, you may prefer not to use Amazon's DRM solution and instead implement your own custom DRM. To disable Amazon's DRM, simply add the following property to your project's ",(0,r.yg)("inlineCode",{parentName:"p"},"gradle.properties")," file:"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-java"},"isAmazonDrmEnabled=false\n")),(0,r.yg)("p",null,"This setting overrides the default behavior, disabling Amazon's DRM for your app."),(0,r.yg)("h2",{id:"testing-in-development"},"Testing in development"),(0,r.yg)("p",null,"To run the example app, with the amazon provider, run:"),(0,r.yg)(o.A,{groupId:"npm2yarn",mdxType:"Tabs"},(0,r.yg)(i.A,{value:"npm",mdxType:"TabItem"},(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"npm run android:amazon\n"))),(0,r.yg)(i.A,{value:"yarn",label:"Yarn",mdxType:"TabItem"},(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"yarn android:amazon\n"))),(0,r.yg)(i.A,{value:"pnpm",label:"pnpm",mdxType:"TabItem"},(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"pnpm run android:amazon\n")))),(0,r.yg)("p",null,"Amazon offers the ",(0,r.yg)("inlineCode",{parentName:"p"},"App Tester")," tool to make In-App purchases testing easier. More information can be found ",(0,r.yg)("a",{parentName:"p",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-app-tester-user-guide.html"},"here"),"."),(0,r.yg)("h2",{id:"server-validation"},"Server Validation"),(0,r.yg)("p",null,"Amazon IAP API supports validation of In-App purchases on a remote server side. More information can be found ",(0,r.yg)("a",{parentName:"p",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-rvs-for-android-apps.html"},"here"),"."),(0,r.yg)("h2",{id:"subscriptions"},"Subscriptions"),(0,r.yg)("p",null,"When fetching subscriptions from Amazon, make sure to use children ",(0,r.yg)("inlineCode",{parentName:"p"},"SKUs")," (so SKUs for specific period ex. monthly or annually), do not use parent subscription ",(0,r.yg)("inlineCode",{parentName:"p"},"SKUs"),"!"),(0,r.yg)("h2",{id:"caveats"},"Caveats"),(0,r.yg)("p",null,"Amazon does not return decimal price & currency. Only localized price as a string (ex. 11.22$), see this ",(0,r.yg)("a",{parentName:"p",href:"https://forums.developer.amazon.com/answers/234257/view.html"},"page"),"."),(0,r.yg)("p",null,"The package will try its best to parse the string into decimal price. If the package cannot parse the price, it will be 0. Currency is detected based on users Amazon marketplace."))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/ab22a499.f2fe5ecc.js b/assets/js/ab22a499.f2fe5ecc.js deleted file mode 100644 index 07541bc6e..000000000 --- a/assets/js/ab22a499.f2fe5ecc.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6999],{5680:(e,t,a)=>{a.d(t,{xA:()=>p,yg:()=>g});var n=a(6540);function r(e,t,a){return t in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function o(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),a.push.apply(a,n)}return a}function i(e){for(var t=1;t=0||(r[a]=e[a]);return r}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(n=0;n=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(r[a]=e[a])}return r}var s=n.createContext({}),u=function(e){var t=n.useContext(s),a=t;return e&&(a="function"==typeof e?e(t):i(i({},t),e)),a},p=function(e){var t=u(e.components);return n.createElement(s.Provider,{value:t},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var t=e.children;return n.createElement(n.Fragment,{},t)}},m=n.forwardRef((function(e,t){var a=e.components,r=e.mdxType,o=e.originalType,s=e.parentName,p=l(e,["components","mdxType","originalType","parentName"]),c=u(a),m=r,g=c["".concat(s,".").concat(m)]||c[m]||d[m]||o;return a?n.createElement(g,i(i({ref:t},p),{},{components:a})):n.createElement(g,i({ref:t},p))}));function g(e,t){var a=arguments,r=t&&t.mdxType;if("string"==typeof e||r){var o=a.length,i=new Array(o);i[0]=m;var l={};for(var s in t)hasOwnProperty.call(t,s)&&(l[s]=t[s]);l.originalType=e,l[c]="string"==typeof e?e:r,i[1]=l;for(var u=2;u{a.d(t,{A:()=>i});var n=a(6540),r=a(53);const o={tabItem:"tabItem_Ymn6"};function i(e){let{children:t,hidden:a,className:i}=e;return n.createElement("div",{role:"tabpanel",className:(0,r.A)(o.tabItem,i),hidden:a},t)}},1470:(e,t,a)=>{a.d(t,{A:()=>w});var n=a(8168),r=a(6540),o=a(53),i=a(3104),l=a(6347),s=a(7485),u=a(1682),p=a(9466);function c(e){return function(e){return r.Children.map(e,(e=>{if(!e||(0,r.isValidElement)(e)&&function(e){const{props:t}=e;return!!t&&"object"==typeof t&&"value"in t}(e))return e;throw new Error(`Docusaurus error: Bad child <${"string"==typeof e.type?e.type:e.type.name}>: all children of the component should be , and every should have a unique "value" prop.`)}))?.filter(Boolean)??[]}(e).map((e=>{let{props:{value:t,label:a,attributes:n,default:r}}=e;return{value:t,label:a,attributes:n,default:r}}))}function d(e){const{values:t,children:a}=e;return(0,r.useMemo)((()=>{const e=t??c(a);return function(e){const t=(0,u.X)(e,((e,t)=>e.value===t.value));if(t.length>0)throw new Error(`Docusaurus error: Duplicate values "${t.map((e=>e.value)).join(", ")}" found in . Every value needs to be unique.`)}(e),e}),[t,a])}function m(e){let{value:t,tabValues:a}=e;return a.some((e=>e.value===t))}function g(e){let{queryString:t=!1,groupId:a}=e;const n=(0,l.W6)(),o=function(e){let{queryString:t=!1,groupId:a}=e;if("string"==typeof t)return t;if(!1===t)return null;if(!0===t&&!a)throw new Error('Docusaurus error: The component groupId prop is required if queryString=true, because this value is used as the search param name. You can also provide an explicit value such as queryString="my-search-param".');return a??null}({queryString:t,groupId:a});return[(0,s.aZ)(o),(0,r.useCallback)((e=>{if(!o)return;const t=new URLSearchParams(n.location.search);t.set(o,e),n.replace({...n.location,search:t.toString()})}),[o,n])]}function y(e){const{defaultValue:t,queryString:a=!1,groupId:n}=e,o=d(e),[i,l]=(0,r.useState)((()=>function(e){let{defaultValue:t,tabValues:a}=e;if(0===a.length)throw new Error("Docusaurus error: the component requires at least one children component");if(t){if(!m({value:t,tabValues:a}))throw new Error(`Docusaurus error: The has a defaultValue "${t}" but none of its children has the corresponding value. Available values are: ${a.map((e=>e.value)).join(", ")}. If you intend to show no default tab, use defaultValue={null} instead.`);return t}const n=a.find((e=>e.default))??a[0];if(!n)throw new Error("Unexpected error: 0 tabValues");return n.value}({defaultValue:t,tabValues:o}))),[s,u]=g({queryString:a,groupId:n}),[c,y]=function(e){let{groupId:t}=e;const a=function(e){return e?`docusaurus.tab.${e}`:null}(t),[n,o]=(0,p.Dv)(a);return[n,(0,r.useCallback)((e=>{a&&o.set(e)}),[a,o])]}({groupId:n}),f=(()=>{const e=s??c;return m({value:e,tabValues:o})?e:null})();(0,r.useLayoutEffect)((()=>{f&&l(f)}),[f]);return{selectedValue:i,selectValue:(0,r.useCallback)((e=>{if(!m({value:e,tabValues:o}))throw new Error(`Can't select invalid tab value=${e}`);l(e),u(e),y(e)}),[u,y,o]),tabValues:o}}var f=a(2303);const h={tabList:"tabList__CuJ",tabItem:"tabItem_LNqP"};function b(e){let{className:t,block:a,selectedValue:l,selectValue:s,tabValues:u}=e;const p=[],{blockElementScrollPositionUntilNextRender:c}=(0,i.a_)(),d=e=>{const t=e.currentTarget,a=p.indexOf(t),n=u[a].value;n!==l&&(c(t),s(n))},m=e=>{let t=null;switch(e.key){case"Enter":d(e);break;case"ArrowRight":{const a=p.indexOf(e.currentTarget)+1;t=p[a]??p[0];break}case"ArrowLeft":{const a=p.indexOf(e.currentTarget)-1;t=p[a]??p[p.length-1];break}}t?.focus()};return r.createElement("ul",{role:"tablist","aria-orientation":"horizontal",className:(0,o.A)("tabs",{"tabs--block":a},t)},u.map((e=>{let{value:t,label:a,attributes:i}=e;return r.createElement("li",(0,n.A)({role:"tab",tabIndex:l===t?0:-1,"aria-selected":l===t,key:t,ref:e=>p.push(e),onKeyDown:m,onClick:d},i,{className:(0,o.A)("tabs__item",h.tabItem,i?.className,{"tabs__item--active":l===t})}),a??t)})))}function v(e){let{lazy:t,children:a,selectedValue:n}=e;const o=(Array.isArray(a)?a:[a]).filter(Boolean);if(t){const e=o.find((e=>e.props.value===n));return e?(0,r.cloneElement)(e,{className:"margin-top--md"}):null}return r.createElement("div",{className:"margin-top--md"},o.map(((e,t)=>(0,r.cloneElement)(e,{key:t,hidden:e.props.value!==n}))))}function A(e){const t=y(e);return r.createElement("div",{className:(0,o.A)("tabs-container",h.tabList)},r.createElement(b,(0,n.A)({},e,t)),r.createElement(v,(0,n.A)({},e,t)))}function w(e){const t=(0,f.A)();return r.createElement(A,(0,n.A)({key:String(t)},e))}},8663:(e,t,a)=>{a.d(t,{A:()=>r});var n=a(6540);function r(e){let{className:t="adfit",style:a,unit:r,height:o,width:i}=e;return(0,n.useEffect)((()=>{let e=document.createElement("ins"),a=document.createElement("script");e.className="kakao_ad_area",e.style="display:none; width:100%;",a.async="true",a.type="text/javascript",a.src="//t1.daumcdn.net/kas/static/ba.min.js",e.setAttribute("data-ad-width",i.toString()),e.setAttribute("data-ad-height",o.toString()),e.setAttribute("data-ad-unit",r.toString()),document.querySelector(`.${t}`).appendChild(e),document.querySelector(`.${t}`).appendChild(a)}),[]),n.createElement("div",{style:a},n.createElement("div",{className:t}))}},1748:(e,t,a)=>{a.d(t,{A:()=>o});var n=a(6540),r=a(8663);function o(){return n.createElement(r.A,{unit:"DAN-YTmjDwlbcP42HBg6",height:100,width:320,className:"adfit-top",style:{flex:1,marginTop:24,marginBottom:24}})}},8109:(e,t,a)=>{a.r(t),a.d(t,{assets:()=>c,contentTitle:()=>u,default:()=>y,frontMatter:()=>s,metadata:()=>p,toc:()=>d});var n=a(8168),r=(a(6540),a(5680)),o=a(1470),i=a(9365),l=a(1748);const s={title:"Amazon IAP",sidebar_label:"Amazon IAP",sidebar_position:7},u=void 0,p={unversionedId:"guides/amazon-iap",id:"guides/amazon-iap",title:"Amazon IAP",description:"The guide assumes that react-native-iap is implemented in your app and works with the Play Store without issues. Here are the additional steps to configure Amazon IAP.",source:"@site/docs/guides/amazon-iap.mdx",sourceDirName:"guides",slug:"/guides/amazon-iap",permalink:"/docs/guides/amazon-iap",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/guides/amazon-iap.mdx",tags:[],version:"current",sidebarPosition:7,frontMatter:{title:"Amazon IAP",sidebar_label:"Amazon IAP",sidebar_position:7},sidebar:"tutorialSidebar",previous:{title:"Receipts",permalink:"/docs/guides/receipts"},next:{title:"Troubleshooting",permalink:"/docs/guides/troubleshooting"}},c={},d=[{value:"Add In-App Items for your app",id:"add-in-app-items-for-your-app",level:3},{value:"App configuration",id:"app-configuration",level:3},{value:"Testing in development",id:"testing-in-development",level:2},{value:"Server Validation",id:"server-validation",level:2},{value:"Subscriptions",id:"subscriptions",level:2},{value:"Caveats",id:"caveats",level:2}],m={toc:d},g="wrapper";function y(e){let{components:t,...a}=e;return(0,r.yg)(g,(0,n.A)({},m,a,{components:t,mdxType:"MDXLayout"}),(0,r.yg)(l.A,{mdxType:"AdFitTopFixed"}),(0,r.yg)("h1",{id:"amazon-iap"},"Amazon IAP"),(0,r.yg)("p",null,"The guide assumes that ",(0,r.yg)("inlineCode",{parentName:"p"},"react-native-iap")," is implemented in your app and works with the Play Store without issues. Here are the additional steps to configure Amazon IAP."),(0,r.yg)("h3",{id:"add-in-app-items-for-your-app"},"Add In-App Items for your app"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("p",{parentName:"li"},'Create "In-App Items" using Amazon Developer portal for your app. Amazon put up detailed instructions at ',(0,r.yg)("a",{parentName:"p",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-create-and-submit-iap-items.html"},"https://developer.amazon.com/docs/in-app-purchasing/iap-create-and-submit-iap-items.html"))),(0,r.yg)("li",{parentName:"ol"},(0,r.yg)("p",{parentName:"li"},"Add this a call to ",(0,r.yg)("inlineCode",{parentName:"p"},"RNIapActivityListener.registerActivity(this);")," inside your ",(0,r.yg)("inlineCode",{parentName:"p"},"MainActivity"),"'s ",(0,r.yg)("inlineCode",{parentName:"p"},"onCreate")," method. This is a necessary step only when using Amazon, but adding it will not affect negatively your Google Play Android builds. E.g.:"))),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-java"},"\nimport com.dooboolab.rniap.RNIapActivityListener;\n...\npublic class MainActivity extends ReactActivity {\n ...\n @Override\n protected void onCreate(Bundle savedInstanceState) {\n super.onCreate(savedInstanceState);\n //Needed for Amazon IAP\n RNIapActivityListener.registerActivity(this);\n }\n")),(0,r.yg)("ol",{start:3},(0,r.yg)("li",{parentName:"ol"},"Add new ",(0,r.yg)("inlineCode",{parentName:"li"},"SKU")," strings to your ",(0,r.yg)("inlineCode",{parentName:"li"},"Iap.getProducts")," or ",(0,r.yg)("inlineCode",{parentName:"li"},"Iap.getSubscriptions")," calls.")),(0,r.yg)("h3",{id:"app-configuration"},"App configuration"),(0,r.yg)("ol",null,(0,r.yg)("li",{parentName:"ol"},"The current version of Amazon IAP SDK does not play well with R8 optimization. (",(0,r.yg)("a",{parentName:"li",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-obfuscate-the-code.html"},"https://developer.amazon.com/docs/in-app-purchasing/iap-obfuscate-the-code.html"),").")),(0,r.yg)("p",null,"Add the code below in ",(0,r.yg)("inlineCode",{parentName:"p"},"android/app/proguard-rules.pro"),":"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-diff"},"+ -dontwarn com.amazon.**\n+ -keep class com.amazon.** {*;}\n+ -keepattributes *Annotation*\n")),(0,r.yg)("h2",{id:"testing-in-development"},"Testing in development"),(0,r.yg)("p",null,"To run the example app, with the amazon provider, run:"),(0,r.yg)(o.A,{groupId:"npm2yarn",mdxType:"Tabs"},(0,r.yg)(i.A,{value:"npm",mdxType:"TabItem"},(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"npm run android:amazon\n"))),(0,r.yg)(i.A,{value:"yarn",label:"Yarn",mdxType:"TabItem"},(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"yarn android:amazon\n"))),(0,r.yg)(i.A,{value:"pnpm",label:"pnpm",mdxType:"TabItem"},(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-bash"},"pnpm run android:amazon\n")))),(0,r.yg)("p",null,"Amazon offers the ",(0,r.yg)("inlineCode",{parentName:"p"},"App Tester")," tool to make In-App purchases testing easier. More information can be found ",(0,r.yg)("a",{parentName:"p",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-app-tester-user-guide.html"},"here"),"."),(0,r.yg)("h2",{id:"server-validation"},"Server Validation"),(0,r.yg)("p",null,"Amazon IAP API supports validation of In-App purchases on a remote server side. More information can be found ",(0,r.yg)("a",{parentName:"p",href:"https://developer.amazon.com/docs/in-app-purchasing/iap-rvs-for-android-apps.html"},"here"),"."),(0,r.yg)("h2",{id:"subscriptions"},"Subscriptions"),(0,r.yg)("p",null,"When fetching subscriptions from Amazon, make sure to use children ",(0,r.yg)("inlineCode",{parentName:"p"},"SKUs")," (so SKUs for specific period ex. monthly or annually), do not use parent subscription ",(0,r.yg)("inlineCode",{parentName:"p"},"SKUs"),"!"),(0,r.yg)("h2",{id:"caveats"},"Caveats"),(0,r.yg)("p",null,"Amazon does not return decimal price & currency. Only localized price as a string (ex. 11.22$), see this ",(0,r.yg)("a",{parentName:"p",href:"https://forums.developer.amazon.com/answers/234257/view.html"},"page"),"."),(0,r.yg)("p",null,"The package will try its best to parse the string into decimal price. If the package cannot parse the price, it will be 0. Currency is detected based on users Amazon marketplace."))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c162bd5e.37564e11.js b/assets/js/c162bd5e.a6004864.js similarity index 94% rename from assets/js/c162bd5e.37564e11.js rename to assets/js/c162bd5e.a6004864.js index 7f457cd30..7f4b37f04 100644 --- a/assets/js/c162bd5e.37564e11.js +++ b/assets/js/c162bd5e.a6004864.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3703],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>u});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function o(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var p=t.createContext({}),d=function(e){var n=t.useContext(p),a=n;return e&&(a="function"==typeof e?e(n):o(o({},n),e)),a},s=function(e){var n=d(e.components);return t.createElement(p.Provider,{value:n},e.children)},m="mdxType",y={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),m=d(a),g=i,u=m["".concat(p,".").concat(g)]||m[g]||y[g]||r;return a?t.createElement(u,o(o({ref:n},s),{},{components:a})):t.createElement(u,o({ref:n},s))}));function u(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,o=new Array(r);o[0]=g;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[m]="string"==typeof e?e:i,o[1]=l;for(var d=2;d{a.r(n),a.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>y,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var t=a(8168),i=(a(6540),a(5680));const r={},o=void 0,l={unversionedId:"api/interfaces/IapAmazon.AmazonModuleProps",id:"api/interfaces/IapAmazon.AmazonModuleProps",title:"IapAmazon.AmazonModuleProps",description:"react-native-iap / Exports / IapAmazon / AmazonModuleProps",source:"@site/docs/api/interfaces/IapAmazon.AmazonModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapAmazon.AmazonModuleProps",permalink:"/docs/api/interfaces/IapAmazon.AmazonModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapAmazon.AmazonModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Discount",permalink:"/docs/api/interfaces/Discount"},next:{title:"IapAndroid.AndroidModuleProps",permalink:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"}},p={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"acknowledgePurchase",id:"acknowledgepurchase",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"buyItemByType",id:"buyitembytype",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"consumeProduct",id:"consumeproduct",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"deepLinkToSubscriptions",id:"deeplinktosubscriptions",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-3",level:4},{value:"flushFailedPurchasesCachedAsPending",id:"flushfailedpurchasescachedaspending",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"getAvailableItems",id:"getavailableitems",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"getItemsByType",id:"getitemsbytype",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getUser",id:"getuser",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"startListening",id:"startlistening",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"verifyLicense",id:"verifylicense",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-9",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-13",level:4}],s={toc:d},m="wrapper";function y(e){let{components:n,...a}=e;return(0,i.yg)(m,(0,t.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon"},"IapAmazon")," / AmazonModuleProps"),(0,i.yg)("h1",{id:"interface-amazonmoduleprops"},"Interface: AmazonModuleProps"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon"},"IapAmazon"),".AmazonModuleProps"),(0,i.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,i.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("p",{parentName:"li"},(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,i.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,i.yg)("p",{parentName:"li"},"\u21b3 ",(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"AmazonModuleProps"))))),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#acknowledgepurchase"},"acknowledgePurchase")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#buyitembytype"},"buyItemByType")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#consumeproduct"},"consumeProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#deeplinktosubscriptions"},"deepLinkToSubscriptions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#getavailableitems"},"getAvailableItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#getitemsbytype"},"getItemsByType")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#getuser"},"getUser")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#startlistening"},"startListening")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#verifylicense"},"verifyLicense"))),(0,i.yg)("h3",{id:"methods"},"Methods"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#addlistener"},"addListener")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#endconnection"},"endConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#initconnection"},"initConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#removelisteners"},"removeListeners"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"acknowledgepurchase"},"acknowledgePurchase"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"acknowledgePurchase"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"AcknowledgePurchase")),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L38"},"modules/amazon.ts:38")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buyitembytype"},"buyItemByType"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyItemByType"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"BuyItemByType")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L37"},"modules/amazon.ts:37")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"consumeproduct"},"consumeProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"consumeProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"ConsumeProduct")),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L39"},"modules/amazon.ts:39")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"deeplinktosubscriptions"},"deepLinkToSubscriptions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"deepLinkToSubscriptions"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"isAmazonDevice"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"isAmazonDevice"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"isAmazonDevice")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L43"},"modules/amazon.ts:43")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"flushFailedPurchasesCachedAsPending"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"FlushFailedPurchasesCachedAsPending")),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L34"},"modules/amazon.ts:34")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getavailableitems"},"getAvailableItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getAvailableItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"GetAvailableItems")),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L36"},"modules/amazon.ts:36")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getitemsbytype"},"getItemsByType"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getItemsByType"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"GetItemsByType")),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L35"},"modules/amazon.ts:35")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getuser"},"getUser"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getUser"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"GetUser")),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L33"},"modules/amazon.ts:33")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"startlistening"},"startListening"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"startListening"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"StartListening")),(0,i.yg)("p",null,(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"Deprecated"))),(0,i.yg)("p",null,"to be renamed to sendUnconsumedPurchases if not removed completely"),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L41"},"modules/amazon.ts:41")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"verifylicense"},"verifyLicense"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"verifyLicense"),": () => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,i.yg)("h4",{id:"type-declaration-1"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,i.yg)("h5",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/amazon.ts#L42"},"modules/amazon.ts:42")),(0,i.yg)("h2",{id:"methods-1"},"Methods"),(0,i.yg)("h3",{id:"addlistener"},"addListener"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"addListener"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"addListener for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"eventType")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"endconnection"},"endConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to end the payment provider connection"),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"initconnection"},"initConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to start a payment provider connection"),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"count")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))))),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L15"},"modules/common.ts:15")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3703],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>u});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function o(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var p=t.createContext({}),d=function(e){var n=t.useContext(p),a=n;return e&&(a="function"==typeof e?e(n):o(o({},n),e)),a},s=function(e){var n=d(e.components);return t.createElement(p.Provider,{value:n},e.children)},m="mdxType",y={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},g=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,p=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),m=d(a),g=i,u=m["".concat(p,".").concat(g)]||m[g]||y[g]||r;return a?t.createElement(u,o(o({ref:n},s),{},{components:a})):t.createElement(u,o({ref:n},s))}));function u(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,o=new Array(r);o[0]=g;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[m]="string"==typeof e?e:i,o[1]=l;for(var d=2;d{a.r(n),a.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>y,frontMatter:()=>r,metadata:()=>l,toc:()=>d});var t=a(8168),i=(a(6540),a(5680));const r={},o=void 0,l={unversionedId:"api/interfaces/IapAmazon.AmazonModuleProps",id:"api/interfaces/IapAmazon.AmazonModuleProps",title:"IapAmazon.AmazonModuleProps",description:"react-native-iap / Exports / IapAmazon / AmazonModuleProps",source:"@site/docs/api/interfaces/IapAmazon.AmazonModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapAmazon.AmazonModuleProps",permalink:"/docs/api/interfaces/IapAmazon.AmazonModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapAmazon.AmazonModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"Discount",permalink:"/docs/api/interfaces/Discount"},next:{title:"IapAndroid.AndroidModuleProps",permalink:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"}},p={},d=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"acknowledgePurchase",id:"acknowledgepurchase",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"buyItemByType",id:"buyitembytype",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"consumeProduct",id:"consumeproduct",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"deepLinkToSubscriptions",id:"deeplinktosubscriptions",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-3",level:4},{value:"flushFailedPurchasesCachedAsPending",id:"flushfailedpurchasescachedaspending",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"getAvailableItems",id:"getavailableitems",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"getItemsByType",id:"getitemsbytype",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getUser",id:"getuser",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"startListening",id:"startlistening",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"verifyLicense",id:"verifylicense",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-9",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-13",level:4}],s={toc:d},m="wrapper";function y(e){let{components:n,...a}=e;return(0,i.yg)(m,(0,t.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon"},"IapAmazon")," / AmazonModuleProps"),(0,i.yg)("h1",{id:"interface-amazonmoduleprops"},"Interface: AmazonModuleProps"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon"},"IapAmazon"),".AmazonModuleProps"),(0,i.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,i.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("p",{parentName:"li"},(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,i.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,i.yg)("p",{parentName:"li"},"\u21b3 ",(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"AmazonModuleProps"))))),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#acknowledgepurchase"},"acknowledgePurchase")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#buyitembytype"},"buyItemByType")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#consumeproduct"},"consumeProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#deeplinktosubscriptions"},"deepLinkToSubscriptions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#getavailableitems"},"getAvailableItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#getitemsbytype"},"getItemsByType")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#getuser"},"getUser")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#startlistening"},"startListening")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#verifylicense"},"verifyLicense"))),(0,i.yg)("h3",{id:"methods"},"Methods"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#addlistener"},"addListener")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#endconnection"},"endConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#initconnection"},"initConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps#removelisteners"},"removeListeners"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"acknowledgepurchase"},"acknowledgePurchase"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"acknowledgePurchase"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"AcknowledgePurchase")),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L38"},"modules/amazon.ts:38")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buyitembytype"},"buyItemByType"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyItemByType"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"BuyItemByType")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L37"},"modules/amazon.ts:37")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"consumeproduct"},"consumeProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"consumeProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"ConsumeProduct")),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L39"},"modules/amazon.ts:39")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"deeplinktosubscriptions"},"deepLinkToSubscriptions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"deepLinkToSubscriptions"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"isAmazonDevice"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"isAmazonDevice"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"isAmazonDevice")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"boolean"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L43"},"modules/amazon.ts:43")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"flushfailedpurchasescachedaspending"},"flushFailedPurchasesCachedAsPending"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"flushFailedPurchasesCachedAsPending"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"FlushFailedPurchasesCachedAsPending")),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L34"},"modules/amazon.ts:34")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getavailableitems"},"getAvailableItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getAvailableItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"GetAvailableItems")),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L36"},"modules/amazon.ts:36")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getitemsbytype"},"getItemsByType"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getItemsByType"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"GetItemsByType")),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L35"},"modules/amazon.ts:35")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getuser"},"getUser"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getUser"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"GetUser")),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L33"},"modules/amazon.ts:33")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"startlistening"},"startListening"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"startListening"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"StartListening")),(0,i.yg)("p",null,(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"Deprecated"))),(0,i.yg)("p",null,"to be renamed to sendUnconsumedPurchases if not removed completely"),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L41"},"modules/amazon.ts:41")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"verifylicense"},"verifyLicense"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"verifyLicense"),": () => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,i.yg)("h4",{id:"type-declaration-1"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,i.yg)("h5",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"AmazonLicensingStatus"),">"),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/amazon.ts#L42"},"modules/amazon.ts:42")),(0,i.yg)("h2",{id:"methods-1"},"Methods"),(0,i.yg)("h3",{id:"addlistener"},"addListener"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"addListener"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"addListener for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"eventType")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"endconnection"},"endConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to end the payment provider connection"),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"initconnection"},"initConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to start a payment provider connection"),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"count")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))))),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L15"},"modules/common.ts:15")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/c200365d.992ec1c4.js b/assets/js/c200365d.333234ba.js similarity index 94% rename from assets/js/c200365d.992ec1c4.js rename to assets/js/c200365d.333234ba.js index c57c53351..c6424cd63 100644 --- a/assets/js/c200365d.992ec1c4.js +++ b/assets/js/c200365d.333234ba.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8543],{5680:(e,r,n)=>{n.d(r,{xA:()=>l,yg:()=>m});var i=n(6540);function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var r=1;r=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var p=i.createContext({}),c=function(e){var r=i.useContext(p),n=r;return e&&(n="function"==typeof e?e(r):o(o({},r),e)),n},l=function(e){var r=c(e.components);return i.createElement(p.Provider,{value:r},e.children)},y="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return i.createElement(i.Fragment,{},r)}},s=i.forwardRef((function(e,r){var n=e.components,t=e.mdxType,a=e.originalType,p=e.parentName,l=d(e,["components","mdxType","originalType","parentName"]),y=c(n),s=t,m=y["".concat(p,".").concat(s)]||y[s]||u[s]||a;return n?i.createElement(m,o(o({ref:r},l),{},{components:n})):i.createElement(m,o({ref:r},l))}));function m(e,r){var n=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var a=n.length,o=new Array(a);o[0]=s;var d={};for(var p in r)hasOwnProperty.call(r,p)&&(d[p]=r[p]);d.originalType=e,d[y]="string"==typeof e?e:t,o[1]=d;for(var c=2;c{n.r(r),n.d(r,{assets:()=>p,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>d,toc:()=>c});var i=n(8168),t=(n(6540),n(5680));const a={},o=void 0,d={unversionedId:"api/interfaces/ProductIOS",id:"api/interfaces/ProductIOS",title:"ProductIOS",description:"react-native-iap / Exports / ProductIOS",source:"@site/docs/api/interfaces/ProductIOS.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductIOS",permalink:"/docs/api/interfaces/ProductIOS",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductIOS.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductCommon",permalink:"/docs/api/interfaces/ProductCommon"},next:{title:"ProductPurchase",permalink:"/docs/api/interfaces/ProductPurchase"}},p={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-9",level:4}],l={toc:c},y="wrapper";function u(e){let{components:r,...n}=e;return(0,t.yg)(y,(0,i.A)({},l,n,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductIOS"),(0,t.yg)("h1",{id:"interface-productios"},"Interface: ProductIOS"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"ProductIOS"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"iap"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"inapp"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L134"},"types/index.ts:134")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8543],{5680:(e,r,n)=>{n.d(r,{xA:()=>l,yg:()=>m});var i=n(6540);function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,i)}return n}function o(e){for(var r=1;r=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var p=i.createContext({}),c=function(e){var r=i.useContext(p),n=r;return e&&(n="function"==typeof e?e(r):o(o({},r),e)),n},l=function(e){var r=c(e.components);return i.createElement(p.Provider,{value:r},e.children)},y="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return i.createElement(i.Fragment,{},r)}},s=i.forwardRef((function(e,r){var n=e.components,t=e.mdxType,a=e.originalType,p=e.parentName,l=d(e,["components","mdxType","originalType","parentName"]),y=c(n),s=t,m=y["".concat(p,".").concat(s)]||y[s]||u[s]||a;return n?i.createElement(m,o(o({ref:r},l),{},{components:n})):i.createElement(m,o({ref:r},l))}));function m(e,r){var n=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var a=n.length,o=new Array(a);o[0]=s;var d={};for(var p in r)hasOwnProperty.call(r,p)&&(d[p]=r[p]);d.originalType=e,d[y]="string"==typeof e?e:t,o[1]=d;for(var c=2;c{n.r(r),n.d(r,{assets:()=>p,contentTitle:()=>o,default:()=>u,frontMatter:()=>a,metadata:()=>d,toc:()=>c});var i=n(8168),t=(n(6540),n(5680));const a={},o=void 0,d={unversionedId:"api/interfaces/ProductIOS",id:"api/interfaces/ProductIOS",title:"ProductIOS",description:"react-native-iap / Exports / ProductIOS",source:"@site/docs/api/interfaces/ProductIOS.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductIOS",permalink:"/docs/api/interfaces/ProductIOS",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductIOS.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductCommon",permalink:"/docs/api/interfaces/ProductCommon"},next:{title:"ProductPurchase",permalink:"/docs/api/interfaces/ProductPurchase"}},p={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-9",level:4}],l={toc:c},y="wrapper";function u(e){let{components:r,...n}=e;return(0,t.yg)(y,(0,i.A)({},l,n,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductIOS"),(0,t.yg)("h1",{id:"interface-productios"},"Interface: ProductIOS"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"ProductIOS"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"iap"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"inapp"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L134"},"types/index.ts:134")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/ceed2f73.4222c425.js b/assets/js/ceed2f73.c2d79cf7.js similarity index 91% rename from assets/js/ceed2f73.4222c425.js rename to assets/js/ceed2f73.c2d79cf7.js index 9e73b7080..6528913a6 100644 --- a/assets/js/ceed2f73.4222c425.js +++ b/assets/js/ceed2f73.c2d79cf7.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7210],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>y});var i=a(6540);function t(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,i)}return a}function d(e){for(var n=1;n=0||(t[a]=e[a]);return t}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}var p=i.createContext({}),l=function(e){var n=i.useContext(p),a=n;return e&&(a="function"==typeof e?e(n):d(d({},n),e)),a},s=function(e){var n=l(e.components);return i.createElement(p.Provider,{value:n},e.children)},c="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},g=i.forwardRef((function(e,n){var a=e.components,t=e.mdxType,r=e.originalType,p=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=l(a),g=t,y=c["".concat(p,".").concat(g)]||c[g]||u[g]||r;return a?i.createElement(y,d(d({ref:n},s),{},{components:a})):i.createElement(y,d({ref:n},s))}));function y(e,n){var a=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var r=a.length,d=new Array(r);d[0]=g;var o={};for(var p in n)hasOwnProperty.call(n,p)&&(o[p]=n[p]);o.originalType=e,o[c]="string"==typeof e?e:t,d[1]=o;for(var l=2;l{a.r(n),a.d(n,{assets:()=>p,contentTitle:()=>d,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>l});var i=a(8168),t=(a(6540),a(5680));const r={},d=void 0,o={unversionedId:"api/interfaces/ProductPurchase",id:"api/interfaces/ProductPurchase",title:"ProductPurchase",description:"react-native-iap / Exports / ProductPurchase",source:"@site/docs/api/interfaces/ProductPurchase.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductPurchase",permalink:"/docs/api/interfaces/ProductPurchase",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductPurchase.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductIOS",permalink:"/docs/api/interfaces/ProductIOS"},next:{title:"PurchaseResult",permalink:"/docs/api/interfaces/PurchaseResult"}},p={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"appAccountToken",id:"appaccounttoken",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"autoRenewingAndroid",id:"autorenewingandroid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"dataAndroid",id:"dataandroid",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"developerPayloadAndroid",id:"developerpayloadandroid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"isAcknowledgedAndroid",id:"isacknowledgedandroid",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"isCanceledAmazon",id:"iscanceledamazon",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"originalTransactionDateIOS",id:"originaltransactiondateios",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"originalTransactionIdentifierIOS",id:"originaltransactionidentifierios",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"packageNameAndroid",id:"packagenameandroid",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"productIds",id:"productids",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"purchaseStateAndroid",id:"purchasestateandroid",level:3},{value:"Defined in",id:"defined-in-13",level:4},{value:"purchaseToken",id:"purchasetoken",level:3},{value:"Defined in",id:"defined-in-14",level:4},{value:"quantityIOS",id:"quantityios",level:3},{value:"Defined in",id:"defined-in-15",level:4},{value:"signatureAndroid",id:"signatureandroid",level:3},{value:"Defined in",id:"defined-in-16",level:4},{value:"transactionDate",id:"transactiondate",level:3},{value:"Defined in",id:"defined-in-17",level:4},{value:"transactionId",id:"transactionid",level:3},{value:"Defined in",id:"defined-in-18",level:4},{value:"transactionReceipt",id:"transactionreceipt",level:3},{value:"Defined in",id:"defined-in-19",level:4},{value:"userIdAmazon",id:"useridamazon",level:3},{value:"Defined in",id:"defined-in-20",level:4},{value:"userJsonAmazon",id:"userjsonamazon",level:3},{value:"Defined in",id:"defined-in-21",level:4},{value:"userMarketplaceAmazon",id:"usermarketplaceamazon",level:3},{value:"Defined in",id:"defined-in-22",level:4},{value:"verificationResultIOS",id:"verificationresultios",level:3},{value:"Defined in",id:"defined-in-23",level:4}],s={toc:l},c="wrapper";function u(e){let{components:n,...a}=e;return(0,t.yg)(c,(0,i.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductPurchase"),(0,t.yg)("h1",{id:"interface-productpurchase"},"Interface: ProductPurchase"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"ProductPurchase"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionPurchase"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionPurchase"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#appaccounttoken"},"appAccountToken")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#autorenewingandroid"},"autoRenewingAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#dataandroid"},"dataAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#developerpayloadandroid"},"developerPayloadAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#isacknowledgedandroid"},"isAcknowledgedAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#iscanceledamazon"},"isCanceledAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#originaltransactiondateios"},"originalTransactionDateIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#originaltransactionidentifierios"},"originalTransactionIdentifierIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#packagenameandroid"},"packageNameAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#purchasestateandroid"},"purchaseStateAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#purchasetoken"},"purchaseToken")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#quantityios"},"quantityIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#signatureandroid"},"signatureAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#transactiondate"},"transactionDate")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#transactionid"},"transactionId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#transactionreceipt"},"transactionReceipt")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#useridamazon"},"userIdAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#userjsonamazon"},"userJsonAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#usermarketplaceamazon"},"userMarketplaceAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#verificationresultios"},"verificationResultIOS"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"appaccounttoken"},"appAccountToken"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"appAccountToken"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L78"},"types/index.ts:78")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"autorenewingandroid"},"autoRenewingAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"autoRenewingAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L83"},"types/index.ts:83")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"dataandroid"},"dataAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"dataAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L81"},"types/index.ts:81")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"developerpayloadandroid"},"developerPayloadAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"developerPayloadAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L87"},"types/index.ts:87")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"isacknowledgedandroid"},"isAcknowledgedAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isAcknowledgedAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L85"},"types/index.ts:85")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"iscanceledamazon"},"isCanceledAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isCanceledAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L94"},"types/index.ts:94")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L88"},"types/index.ts:88")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L89"},"types/index.ts:89")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originaltransactiondateios"},"originalTransactionDateIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalTransactionDateIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L75"},"types/index.ts:75")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originaltransactionidentifierios"},"originalTransactionIdentifierIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalTransactionIdentifierIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L76"},"types/index.ts:76")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"packagenameandroid"},"packageNameAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"packageNameAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L86"},"types/index.ts:86")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L68"},"types/index.ts:68")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L80"},"types/index.ts:80")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"purchasestateandroid"},"purchaseStateAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"purchaseStateAndroid"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/PurchaseStateAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"PurchaseStateAndroid"))),(0,t.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L84"},"types/index.ts:84")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"purchasetoken"},"purchaseToken"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"purchaseToken"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L72"},"types/index.ts:72")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"quantityios"},"quantityIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"quantityIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L74"},"types/index.ts:74")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"signatureandroid"},"signatureAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"signatureAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L82"},"types/index.ts:82")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"transactiondate"},"transactionDate"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"transactionDate"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L70"},"types/index.ts:70")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"transactionid"},"transactionId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"transactionId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L69"},"types/index.ts:69")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"transactionreceipt"},"transactionReceipt"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"transactionReceipt"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-19"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L71"},"types/index.ts:71")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"useridamazon"},"userIdAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"userIdAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-20"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L91"},"types/index.ts:91")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"userjsonamazon"},"userJsonAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"userJsonAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-21"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L93"},"types/index.ts:93")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"usermarketplaceamazon"},"userMarketplaceAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"userMarketplaceAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-22"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L92"},"types/index.ts:92")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"verificationresultios"},"verificationResultIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"verificationResultIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-23"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L77"},"types/index.ts:77")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7210],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>y});var i=a(6540);function t(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,i)}return a}function d(e){for(var n=1;n=0||(t[a]=e[a]);return t}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(t[a]=e[a])}return t}var p=i.createContext({}),l=function(e){var n=i.useContext(p),a=n;return e&&(a="function"==typeof e?e(n):d(d({},n),e)),a},s=function(e){var n=l(e.components);return i.createElement(p.Provider,{value:n},e.children)},c="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return i.createElement(i.Fragment,{},n)}},g=i.forwardRef((function(e,n){var a=e.components,t=e.mdxType,r=e.originalType,p=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=l(a),g=t,y=c["".concat(p,".").concat(g)]||c[g]||u[g]||r;return a?i.createElement(y,d(d({ref:n},s),{},{components:a})):i.createElement(y,d({ref:n},s))}));function y(e,n){var a=arguments,t=n&&n.mdxType;if("string"==typeof e||t){var r=a.length,d=new Array(r);d[0]=g;var o={};for(var p in n)hasOwnProperty.call(n,p)&&(o[p]=n[p]);o.originalType=e,o[c]="string"==typeof e?e:t,d[1]=o;for(var l=2;l{a.r(n),a.d(n,{assets:()=>p,contentTitle:()=>d,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>l});var i=a(8168),t=(a(6540),a(5680));const r={},d=void 0,o={unversionedId:"api/interfaces/ProductPurchase",id:"api/interfaces/ProductPurchase",title:"ProductPurchase",description:"react-native-iap / Exports / ProductPurchase",source:"@site/docs/api/interfaces/ProductPurchase.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductPurchase",permalink:"/docs/api/interfaces/ProductPurchase",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductPurchase.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ProductIOS",permalink:"/docs/api/interfaces/ProductIOS"},next:{title:"PurchaseResult",permalink:"/docs/api/interfaces/PurchaseResult"}},p={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"appAccountToken",id:"appaccounttoken",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"autoRenewingAndroid",id:"autorenewingandroid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"dataAndroid",id:"dataandroid",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"developerPayloadAndroid",id:"developerpayloadandroid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"isAcknowledgedAndroid",id:"isacknowledgedandroid",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"isCanceledAmazon",id:"iscanceledamazon",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"originalTransactionDateIOS",id:"originaltransactiondateios",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"originalTransactionIdentifierIOS",id:"originaltransactionidentifierios",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"packageNameAndroid",id:"packagenameandroid",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"productIds",id:"productids",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"purchaseStateAndroid",id:"purchasestateandroid",level:3},{value:"Defined in",id:"defined-in-13",level:4},{value:"purchaseToken",id:"purchasetoken",level:3},{value:"Defined in",id:"defined-in-14",level:4},{value:"quantityIOS",id:"quantityios",level:3},{value:"Defined in",id:"defined-in-15",level:4},{value:"signatureAndroid",id:"signatureandroid",level:3},{value:"Defined in",id:"defined-in-16",level:4},{value:"transactionDate",id:"transactiondate",level:3},{value:"Defined in",id:"defined-in-17",level:4},{value:"transactionId",id:"transactionid",level:3},{value:"Defined in",id:"defined-in-18",level:4},{value:"transactionReceipt",id:"transactionreceipt",level:3},{value:"Defined in",id:"defined-in-19",level:4},{value:"userIdAmazon",id:"useridamazon",level:3},{value:"Defined in",id:"defined-in-20",level:4},{value:"userJsonAmazon",id:"userjsonamazon",level:3},{value:"Defined in",id:"defined-in-21",level:4},{value:"userMarketplaceAmazon",id:"usermarketplaceamazon",level:3},{value:"Defined in",id:"defined-in-22",level:4},{value:"verificationResultIOS",id:"verificationresultios",level:3},{value:"Defined in",id:"defined-in-23",level:4}],s={toc:l},c="wrapper";function u(e){let{components:n,...a}=e;return(0,t.yg)(c,(0,i.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductPurchase"),(0,t.yg)("h1",{id:"interface-productpurchase"},"Interface: ProductPurchase"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"ProductPurchase"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionPurchase"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionPurchase"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#appaccounttoken"},"appAccountToken")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#autorenewingandroid"},"autoRenewingAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#dataandroid"},"dataAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#developerpayloadandroid"},"developerPayloadAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#isacknowledgedandroid"},"isAcknowledgedAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#iscanceledamazon"},"isCanceledAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#originaltransactiondateios"},"originalTransactionDateIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#originaltransactionidentifierios"},"originalTransactionIdentifierIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#packagenameandroid"},"packageNameAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#purchasestateandroid"},"purchaseStateAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#purchasetoken"},"purchaseToken")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#quantityios"},"quantityIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#signatureandroid"},"signatureAndroid")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#transactiondate"},"transactionDate")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#transactionid"},"transactionId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#transactionreceipt"},"transactionReceipt")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#useridamazon"},"userIdAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#userjsonamazon"},"userJsonAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#usermarketplaceamazon"},"userMarketplaceAmazon")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase#verificationresultios"},"verificationResultIOS"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"appaccounttoken"},"appAccountToken"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"appAccountToken"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L78"},"types/index.ts:78")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"autorenewingandroid"},"autoRenewingAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"autoRenewingAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L83"},"types/index.ts:83")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"dataandroid"},"dataAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"dataAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L81"},"types/index.ts:81")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"developerpayloadandroid"},"developerPayloadAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"developerPayloadAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L87"},"types/index.ts:87")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"isacknowledgedandroid"},"isAcknowledgedAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isAcknowledgedAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L85"},"types/index.ts:85")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"iscanceledamazon"},"isCanceledAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"isCanceledAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"boolean")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L94"},"types/index.ts:94")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L88"},"types/index.ts:88")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L89"},"types/index.ts:89")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originaltransactiondateios"},"originalTransactionDateIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalTransactionDateIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L75"},"types/index.ts:75")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originaltransactionidentifierios"},"originalTransactionIdentifierIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalTransactionIdentifierIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L76"},"types/index.ts:76")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"packagenameandroid"},"packageNameAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"packageNameAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L86"},"types/index.ts:86")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L68"},"types/index.ts:68")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L80"},"types/index.ts:80")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"purchasestateandroid"},"purchaseStateAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"purchaseStateAndroid"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/PurchaseStateAndroid"},(0,t.yg)("inlineCode",{parentName:"a"},"PurchaseStateAndroid"))),(0,t.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L84"},"types/index.ts:84")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"purchasetoken"},"purchaseToken"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"purchaseToken"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L72"},"types/index.ts:72")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"quantityios"},"quantityIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"quantityIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L74"},"types/index.ts:74")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"signatureandroid"},"signatureAndroid"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"signatureAndroid"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L82"},"types/index.ts:82")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"transactiondate"},"transactionDate"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"transactionDate"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"number")),(0,t.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L70"},"types/index.ts:70")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"transactionid"},"transactionId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"transactionId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L69"},"types/index.ts:69")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"transactionreceipt"},"transactionReceipt"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"transactionReceipt"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-19"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L71"},"types/index.ts:71")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"useridamazon"},"userIdAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"userIdAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-20"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L91"},"types/index.ts:91")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"userjsonamazon"},"userJsonAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"userJsonAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-21"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L93"},"types/index.ts:93")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"usermarketplaceamazon"},"userMarketplaceAmazon"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"userMarketplaceAmazon"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-22"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L92"},"types/index.ts:92")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"verificationresultios"},"verificationResultIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"verificationResultIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-23"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L77"},"types/index.ts:77")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/d4bc2d7c.e48e401a.js b/assets/js/d4bc2d7c.c286d244.js similarity index 95% rename from assets/js/d4bc2d7c.e48e401a.js rename to assets/js/d4bc2d7c.c286d244.js index 3f400eb14..546ab3bd9 100644 --- a/assets/js/d4bc2d7c.e48e401a.js +++ b/assets/js/d4bc2d7c.c286d244.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6770],{5680:(e,r,n)=>{n.d(r,{xA:()=>c,yg:()=>g});var i=n(6540);function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var r=1;r=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var p=i.createContext({}),l=function(e){var r=i.useContext(p),n=r;return e&&(n="function"==typeof e?e(r):d(d({},r),e)),n},c=function(e){var r=l(e.components);return i.createElement(p.Provider,{value:r},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return i.createElement(i.Fragment,{},r)}},s=i.forwardRef((function(e,r){var n=e.components,t=e.mdxType,a=e.originalType,p=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),y=l(n),s=t,g=y["".concat(p,".").concat(s)]||y[s]||m[s]||a;return n?i.createElement(g,d(d({ref:r},c),{},{components:n})):i.createElement(g,d({ref:r},c))}));function g(e,r){var n=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var a=n.length,d=new Array(a);d[0]=s;var o={};for(var p in r)hasOwnProperty.call(r,p)&&(o[p]=r[p]);o.originalType=e,o[y]="string"==typeof e?e:t,d[1]=o;for(var l=2;l{n.r(r),n.d(r,{assets:()=>p,contentTitle:()=>d,default:()=>m,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var i=n(8168),t=(n(6540),n(5680));const a={},d=void 0,o={unversionedId:"api/interfaces/ProductAndroid",id:"api/interfaces/ProductAndroid",title:"ProductAndroid",description:"react-native-iap / Exports / ProductAndroid",source:"@site/docs/api/interfaces/ProductAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductAndroid",permalink:"/docs/api/interfaces/ProductAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PricingPhaseAndroid",permalink:"/docs/api/interfaces/PricingPhaseAndroid"},next:{title:"ProductCommon",permalink:"/docs/api/interfaces/ProductCommon"}},p={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"oneTimePurchaseOfferDetails",id:"onetimepurchaseofferdetails",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-10",level:4}],c={toc:l},y="wrapper";function m(e){let{components:r,...n}=e;return(0,t.yg)(y,(0,i.A)({},c,n,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductAndroid"),(0,t.yg)("h1",{id:"interface-productandroid"},"Interface: ProductAndroid"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"ProductAndroid"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#onetimepurchaseofferdetails"},"oneTimePurchaseOfferDetails")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"onetimepurchaseofferdetails"},"oneTimePurchaseOfferDetails"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"oneTimePurchaseOfferDetails"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"Object")),(0,t.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,t.yg)("table",null,(0,t.yg)("thead",{parentName:"table"},(0,t.yg)("tr",{parentName:"thead"},(0,t.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,t.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,t.yg)("tbody",{parentName:"table"},(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"formattedPrice")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"priceAmountMicros")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"priceCurrencyCode")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))))),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L127"},"types/index.ts:127")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"iap"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"inapp"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L126"},"types/index.ts:126")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6770],{5680:(e,r,n)=>{n.d(r,{xA:()=>c,yg:()=>g});var i=n(6540);function t(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function a(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);r&&(i=i.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var r=1;r=0||(t[n]=e[n]);return t}(e,r);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var p=i.createContext({}),l=function(e){var r=i.useContext(p),n=r;return e&&(n="function"==typeof e?e(r):d(d({},r),e)),n},c=function(e){var r=l(e.components);return i.createElement(p.Provider,{value:r},e.children)},y="mdxType",m={inlineCode:"code",wrapper:function(e){var r=e.children;return i.createElement(i.Fragment,{},r)}},s=i.forwardRef((function(e,r){var n=e.components,t=e.mdxType,a=e.originalType,p=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),y=l(n),s=t,g=y["".concat(p,".").concat(s)]||y[s]||m[s]||a;return n?i.createElement(g,d(d({ref:r},c),{},{components:n})):i.createElement(g,d({ref:r},c))}));function g(e,r){var n=arguments,t=r&&r.mdxType;if("string"==typeof e||t){var a=n.length,d=new Array(a);d[0]=s;var o={};for(var p in r)hasOwnProperty.call(r,p)&&(o[p]=r[p]);o.originalType=e,o[y]="string"==typeof e?e:t,d[1]=o;for(var l=2;l{n.r(r),n.d(r,{assets:()=>p,contentTitle:()=>d,default:()=>m,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var i=n(8168),t=(n(6540),n(5680));const a={},d=void 0,o={unversionedId:"api/interfaces/ProductAndroid",id:"api/interfaces/ProductAndroid",title:"ProductAndroid",description:"react-native-iap / Exports / ProductAndroid",source:"@site/docs/api/interfaces/ProductAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/ProductAndroid",permalink:"/docs/api/interfaces/ProductAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/ProductAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"PricingPhaseAndroid",permalink:"/docs/api/interfaces/PricingPhaseAndroid"},next:{title:"ProductCommon",permalink:"/docs/api/interfaces/ProductCommon"}},p={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"oneTimePurchaseOfferDetails",id:"onetimepurchaseofferdetails",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-10",level:4}],c={toc:l},y="wrapper";function m(e){let{components:r,...n}=e;return(0,t.yg)(y,(0,i.A)({},c,n,{components:r,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ProductAndroid"),(0,t.yg)("h1",{id:"interface-productandroid"},"Interface: ProductAndroid"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"ProductAndroid"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#onetimepurchaseofferdetails"},"oneTimePurchaseOfferDetails")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"onetimepurchaseofferdetails"},"oneTimePurchaseOfferDetails"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"oneTimePurchaseOfferDetails"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"Object")),(0,t.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,t.yg)("table",null,(0,t.yg)("thead",{parentName:"table"},(0,t.yg)("tr",{parentName:"thead"},(0,t.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,t.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,t.yg)("tbody",{parentName:"table"},(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"formattedPrice")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"priceAmountMicros")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))),(0,t.yg)("tr",{parentName:"tbody"},(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"priceCurrencyCode")),(0,t.yg)("td",{parentName:"tr",align:"left"},(0,t.yg)("inlineCode",{parentName:"td"},"string"))))),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L127"},"types/index.ts:127")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"iap"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"inapp"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L126"},"types/index.ts:126")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/dc4e484a.6adf1ac0.js b/assets/js/dc4e484a.c03231f0.js similarity index 94% rename from assets/js/dc4e484a.6adf1ac0.js rename to assets/js/dc4e484a.c03231f0.js index 14c3acee2..63b5870ac 100644 --- a/assets/js/dc4e484a.6adf1ac0.js +++ b/assets/js/dc4e484a.c03231f0.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2736],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>y});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function o(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var d=t.createContext({}),p=function(e){var n=t.useContext(d),a=n;return e&&(a="function"==typeof e?e(n):o(o({},n),e)),a},s=function(e){var n=p(e.components);return t.createElement(d.Provider,{value:n},e.children)},u="mdxType",g={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},c=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,d=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(a),c=i,y=u["".concat(d,".").concat(c)]||u[c]||g[c]||r;return a?t.createElement(y,o(o({ref:n},s),{},{components:a})):t.createElement(y,o({ref:n},s))}));function y(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,o=new Array(r);o[0]=c;var l={};for(var d in n)hasOwnProperty.call(n,d)&&(l[d]=n[d]);l.originalType=e,l[u]="string"==typeof e?e:i,o[1]=l;for(var p=2;p{a.r(n),a.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>g,frontMatter:()=>r,metadata:()=>l,toc:()=>p});var t=a(8168),i=(a(6540),a(5680));const r={},o=void 0,l={unversionedId:"api/interfaces/IapIos.IosModuleProps",id:"api/interfaces/IapIos.IosModuleProps",title:"IapIos.IosModuleProps",description:"react-native-iap / Exports / IapIos / IosModuleProps",source:"@site/docs/api/interfaces/IapIos.IosModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapIos.IosModuleProps",permalink:"/docs/api/interfaces/IapIos.IosModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapIos.IosModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAndroid.AndroidModuleProps",permalink:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},next:{title:"IapIosSk2.IosModulePropsSk2",permalink:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"}},d={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"buyProduct",id:"buyproduct",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"buyPromotedProduct",id:"buypromotedproduct",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"clearProducts",id:"clearproducts",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"clearTransaction",id:"cleartransaction",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"disable",id:"disable",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-4",level:4},{value:"finishTransaction",id:"finishtransaction",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"getAvailableItems",id:"getavailableitems",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getItems",id:"getitems",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"getPendingTransactions",id:"getpendingtransactions",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"presentCodeRedemptionSheet",id:"presentcoderedemptionsheet",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"promotedProduct",id:"promotedproduct",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"requestReceipt",id:"requestreceipt",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-15",level:4}],s={toc:p},u="wrapper";function g(e){let{components:n,...a}=e;return(0,i.yg)(u,(0,t.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos"},"IapIos")," / IosModuleProps"),(0,i.yg)("h1",{id:"interface-iosmoduleprops"},"Interface: IosModuleProps"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos"},"IapIos"),".IosModuleProps"),(0,i.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,i.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("p",{parentName:"li"},(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,i.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,i.yg)("p",{parentName:"li"},"\u21b3 ",(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"IosModuleProps"))))),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#buyproduct"},"buyProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#buypromotedproduct"},"buyPromotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#clearproducts"},"clearProducts")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#cleartransaction"},"clearTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#disable"},"disable")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#finishtransaction"},"finishTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#getavailableitems"},"getAvailableItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#getitems"},"getItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#getpendingtransactions"},"getPendingTransactions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#presentcoderedemptionsheet"},"presentCodeRedemptionSheet")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#promotedproduct"},"promotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#requestreceipt"},"requestReceipt"))),(0,i.yg)("h3",{id:"methods"},"Methods"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#addlistener"},"addListener")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#endconnection"},"endConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#initconnection"},"initConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#removelisteners"},"removeListeners"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"buyproduct"},"buyProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyProduct"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#buyproduct"},(0,i.yg)("inlineCode",{parentName:"a"},"BuyProduct"))),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L45"},"modules/ios.ts:45")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buypromotedproduct"},"buyPromotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyPromotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"buyPromotedProduct")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L49"},"modules/ios.ts:49")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"clearproducts"},"clearProducts"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearProducts"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearProducts")),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L47"},"modules/ios.ts:47")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"cleartransaction"},"clearTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearTransaction")),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L46"},"modules/ios.ts:46")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"disable"},"disable"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"disable"),": () => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L54"},"modules/ios.ts:54")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"finishtransaction"},"finishTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"finishTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"finishTransaction")),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L51"},"modules/ios.ts:51")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getavailableitems"},"getAvailableItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getAvailableItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getAvailableItems")),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L44"},"modules/ios.ts:44")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getitems"},"getItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getItems")),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L43"},"modules/ios.ts:43")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpendingtransactions"},"getPendingTransactions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getPendingTransactions"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getPendingTransactions")),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L52"},"modules/ios.ts:52")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"presentcoderedemptionsheet"},"presentCodeRedemptionSheet"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"presentCodeRedemptionSheet"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"presentCodeRedemptionSheet")),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L53"},"modules/ios.ts:53")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"promotedproduct"},"promotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"promotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"promotedProduct")),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L48"},"modules/ios.ts:48")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"requestreceipt"},"requestReceipt"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"requestReceipt"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"requestReceipt")),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/ios.ts#L50"},"modules/ios.ts:50")),(0,i.yg)("h2",{id:"methods-1"},"Methods"),(0,i.yg)("h3",{id:"addlistener"},"addListener"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"addListener"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"addListener for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"eventType")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"endconnection"},"endConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to end the payment provider connection"),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"initconnection"},"initConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to start a payment provider connection"),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,i.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"count")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))))),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,i.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L15"},"modules/common.ts:15")))}g.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2736],{5680:(e,n,a)=>{a.d(n,{xA:()=>s,yg:()=>y});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function o(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var d=t.createContext({}),p=function(e){var n=t.useContext(d),a=n;return e&&(a="function"==typeof e?e(n):o(o({},n),e)),a},s=function(e){var n=p(e.components);return t.createElement(d.Provider,{value:n},e.children)},u="mdxType",g={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},c=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,d=e.parentName,s=l(e,["components","mdxType","originalType","parentName"]),u=p(a),c=i,y=u["".concat(d,".").concat(c)]||u[c]||g[c]||r;return a?t.createElement(y,o(o({ref:n},s),{},{components:a})):t.createElement(y,o({ref:n},s))}));function y(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,o=new Array(r);o[0]=c;var l={};for(var d in n)hasOwnProperty.call(n,d)&&(l[d]=n[d]);l.originalType=e,l[u]="string"==typeof e?e:i,o[1]=l;for(var p=2;p{a.r(n),a.d(n,{assets:()=>d,contentTitle:()=>o,default:()=>g,frontMatter:()=>r,metadata:()=>l,toc:()=>p});var t=a(8168),i=(a(6540),a(5680));const r={},o=void 0,l={unversionedId:"api/interfaces/IapIos.IosModuleProps",id:"api/interfaces/IapIos.IosModuleProps",title:"IapIos.IosModuleProps",description:"react-native-iap / Exports / IapIos / IosModuleProps",source:"@site/docs/api/interfaces/IapIos.IosModuleProps.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapIos.IosModuleProps",permalink:"/docs/api/interfaces/IapIos.IosModuleProps",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapIos.IosModuleProps.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAndroid.AndroidModuleProps",permalink:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},next:{title:"IapIosSk2.IosModulePropsSk2",permalink:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2"}},d={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"buyProduct",id:"buyproduct",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"buyPromotedProduct",id:"buypromotedproduct",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"clearProducts",id:"clearproducts",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"clearTransaction",id:"cleartransaction",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"disable",id:"disable",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in-4",level:4},{value:"finishTransaction",id:"finishtransaction",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"getAvailableItems",id:"getavailableitems",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getItems",id:"getitems",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"getPendingTransactions",id:"getpendingtransactions",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"presentCodeRedemptionSheet",id:"presentcoderedemptionsheet",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"promotedProduct",id:"promotedproduct",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"requestReceipt",id:"requestreceipt",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-15",level:4}],s={toc:p},u="wrapper";function g(e){let{components:n,...a}=e;return(0,i.yg)(u,(0,t.A)({},s,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos"},"IapIos")," / IosModuleProps"),(0,i.yg)("h1",{id:"interface-iosmoduleprops"},"Interface: IosModuleProps"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos"},"IapIos"),".IosModuleProps"),(0,i.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,i.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("p",{parentName:"li"},(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,i.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,i.yg)("p",{parentName:"li"},"\u21b3 ",(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"IosModuleProps"))))),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#buyproduct"},"buyProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#buypromotedproduct"},"buyPromotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#clearproducts"},"clearProducts")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#cleartransaction"},"clearTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#disable"},"disable")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#finishtransaction"},"finishTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#getavailableitems"},"getAvailableItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#getitems"},"getItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#getpendingtransactions"},"getPendingTransactions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#presentcoderedemptionsheet"},"presentCodeRedemptionSheet")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#promotedproduct"},"promotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#requestreceipt"},"requestReceipt"))),(0,i.yg)("h3",{id:"methods"},"Methods"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#addlistener"},"addListener")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#endconnection"},"endConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#initconnection"},"initConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIos.IosModuleProps#removelisteners"},"removeListeners"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"buyproduct"},"buyProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyProduct"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#buyproduct"},(0,i.yg)("inlineCode",{parentName:"a"},"BuyProduct"))),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L45"},"modules/ios.ts:45")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buypromotedproduct"},"buyPromotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyPromotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"buyPromotedProduct")),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L49"},"modules/ios.ts:49")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"clearproducts"},"clearProducts"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearProducts"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearProducts")),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L47"},"modules/ios.ts:47")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"cleartransaction"},"clearTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearTransaction")),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L46"},"modules/ios.ts:46")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"disable"},"disable"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"disable"),": () => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L54"},"modules/ios.ts:54")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"finishtransaction"},"finishTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"finishTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"finishTransaction")),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L51"},"modules/ios.ts:51")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getavailableitems"},"getAvailableItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getAvailableItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getAvailableItems")),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L44"},"modules/ios.ts:44")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getitems"},"getItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getItems")),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L43"},"modules/ios.ts:43")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpendingtransactions"},"getPendingTransactions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getPendingTransactions"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getPendingTransactions")),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L52"},"modules/ios.ts:52")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"presentcoderedemptionsheet"},"presentCodeRedemptionSheet"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"presentCodeRedemptionSheet"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"presentCodeRedemptionSheet")),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L53"},"modules/ios.ts:53")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"promotedproduct"},"promotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"promotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"promotedProduct")),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L48"},"modules/ios.ts:48")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"requestreceipt"},"requestReceipt"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"requestReceipt"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"requestReceipt")),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/ios.ts#L50"},"modules/ios.ts:50")),(0,i.yg)("h2",{id:"methods-1"},"Methods"),(0,i.yg)("h3",{id:"addlistener"},"addListener"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"addListener"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"addListener for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"eventType")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"endconnection"},"endConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to end the payment provider connection"),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"initconnection"},"initConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to start a payment provider connection"),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,i.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"count")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))))),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,i.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L15"},"modules/common.ts:15")))}g.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/dc5644ad.517b47dd.js b/assets/js/dc5644ad.c0b8f93e.js similarity index 94% rename from assets/js/dc5644ad.517b47dd.js rename to assets/js/dc5644ad.c0b8f93e.js index b3398bbb5..0046b95cd 100644 --- a/assets/js/dc5644ad.517b47dd.js +++ b/assets/js/dc5644ad.c0b8f93e.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2474],{5680:(e,a,n)=>{n.d(a,{xA:()=>c,yg:()=>g});var i=n(6540);function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function t(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=i.createContext({}),s=function(e){var a=i.useContext(p),n=a;return e&&(n="function"==typeof e?e(a):d(d({},a),e)),n},c=function(e){var a=s(e.components);return i.createElement(p.Provider,{value:a},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var a=e.children;return i.createElement(i.Fragment,{},a)}},h=i.forwardRef((function(e,a){var n=e.components,r=e.mdxType,t=e.originalType,p=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),l=s(n),h=r,g=l["".concat(p,".").concat(h)]||l[h]||u[h]||t;return n?i.createElement(g,d(d({ref:a},c),{},{components:n})):i.createElement(g,d({ref:a},c))}));function g(e,a){var n=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var t=n.length,d=new Array(t);d[0]=h;var o={};for(var p in a)hasOwnProperty.call(a,p)&&(o[p]=a[p]);o.originalType=e,o[l]="string"==typeof e?e:r,d[1]=o;for(var s=2;s{n.r(a),n.d(a,{assets:()=>p,contentTitle:()=>d,default:()=>u,frontMatter:()=>t,metadata:()=>o,toc:()=>s});var i=n(8168),r=(n(6540),n(5680));const t={},d=void 0,o={unversionedId:"api/interfaces/SubscriptionPurchase",id:"api/interfaces/SubscriptionPurchase",title:"SubscriptionPurchase",description:"react-native-iap / Exports / SubscriptionPurchase",source:"@site/docs/api/interfaces/SubscriptionPurchase.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionPurchase",permalink:"/docs/api/interfaces/SubscriptionPurchase",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionPurchase.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionOfferAndroid",permalink:"/docs/api/interfaces/SubscriptionOfferAndroid"},next:{title:"IapAmazon",permalink:"/docs/api/modules/IapAmazon"}},p={},s=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"appAccountToken",id:"appaccounttoken",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"autoRenewingAndroid",id:"autorenewingandroid",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"dataAndroid",id:"dataandroid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"developerPayloadAndroid",id:"developerpayloadandroid",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"isAcknowledgedAndroid",id:"isacknowledgedandroid",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"isCanceledAmazon",id:"iscanceledamazon",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"originalTransactionDateIOS",id:"originaltransactiondateios",level:3},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"originalTransactionIdentifierIOS",id:"originaltransactionidentifierios",level:3},{value:"Overrides",id:"overrides-2",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"packageNameAndroid",id:"packagenameandroid",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-9",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"purchaseStateAndroid",id:"purchasestateandroid",level:3},{value:"Inherited from",id:"inherited-from-10",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"purchaseToken",id:"purchasetoken",level:3},{value:"Inherited from",id:"inherited-from-11",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"quantityIOS",id:"quantityios",level:3},{value:"Inherited from",id:"inherited-from-12",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"signatureAndroid",id:"signatureandroid",level:3},{value:"Inherited from",id:"inherited-from-13",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"transactionDate",id:"transactiondate",level:3},{value:"Inherited from",id:"inherited-from-14",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"transactionId",id:"transactionid",level:3},{value:"Inherited from",id:"inherited-from-15",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"transactionReasonIOS",id:"transactionreasonios",level:3},{value:"Defined in",id:"defined-in-19",level:4},{value:"transactionReceipt",id:"transactionreceipt",level:3},{value:"Inherited from",id:"inherited-from-16",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"userIdAmazon",id:"useridamazon",level:3},{value:"Inherited from",id:"inherited-from-17",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"userJsonAmazon",id:"userjsonamazon",level:3},{value:"Inherited from",id:"inherited-from-18",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"userMarketplaceAmazon",id:"usermarketplaceamazon",level:3},{value:"Inherited from",id:"inherited-from-19",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"verificationResultIOS",id:"verificationresultios",level:3},{value:"Overrides",id:"overrides-3",level:4},{value:"Defined in",id:"defined-in-24",level:4}],c={toc:s},l="wrapper";function u(e){let{components:a,...n}=e;return(0,r.yg)(l,(0,i.A)({},c,n,{components:a,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionPurchase"),(0,r.yg)("h1",{id:"interface-subscriptionpurchase"},"Interface: SubscriptionPurchase"),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductPurchase"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"SubscriptionPurchase"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#appaccounttoken"},"appAccountToken")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#autorenewingandroid"},"autoRenewingAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#dataandroid"},"dataAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#developerpayloadandroid"},"developerPayloadAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#isacknowledgedandroid"},"isAcknowledgedAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#iscanceledamazon"},"isCanceledAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#originaltransactiondateios"},"originalTransactionDateIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#originaltransactionidentifierios"},"originalTransactionIdentifierIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#packagenameandroid"},"packageNameAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#productid"},"productId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#productids"},"productIds")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#purchasestateandroid"},"purchaseStateAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#purchasetoken"},"purchaseToken")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#quantityios"},"quantityIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#signatureandroid"},"signatureAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactiondate"},"transactionDate")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactionid"},"transactionId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactionreasonios"},"transactionReasonIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactionreceipt"},"transactionReceipt")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#useridamazon"},"userIdAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#userjsonamazon"},"userJsonAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#usermarketplaceamazon"},"userMarketplaceAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#verificationresultios"},"verificationResultIOS"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"appaccounttoken"},"appAccountToken"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"appAccountToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#appaccounttoken"},"appAccountToken")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L78"},"types/index.ts:78")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"autorenewingandroid"},"autoRenewingAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"autoRenewingAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"overrides"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#autorenewingandroid"},"autoRenewingAndroid")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L106"},"types/index.ts:106")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"dataandroid"},"dataAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"dataAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#dataandroid"},"dataAndroid")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L81"},"types/index.ts:81")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"developerpayloadandroid"},"developerPayloadAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"developerPayloadAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#developerpayloadandroid"},"developerPayloadAndroid")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L87"},"types/index.ts:87")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"isacknowledgedandroid"},"isAcknowledgedAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"isAcknowledgedAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#isacknowledgedandroid"},"isAcknowledgedAndroid")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L85"},"types/index.ts:85")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"iscanceledamazon"},"isCanceledAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"isCanceledAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#iscanceledamazon"},"isCanceledAmazon")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L94"},"types/index.ts:94")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L88"},"types/index.ts:88")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,r.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L89"},"types/index.ts:89")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"originaltransactiondateios"},"originalTransactionDateIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"originalTransactionDateIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"overrides-1"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#originaltransactiondateios"},"originalTransactionDateIOS")),(0,r.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L107"},"types/index.ts:107")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"originaltransactionidentifierios"},"originalTransactionIdentifierIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"originalTransactionIdentifierIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"overrides-2"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#originaltransactionidentifierios"},"originalTransactionIdentifierIOS")),(0,r.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L108"},"types/index.ts:108")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"packagenameandroid"},"packageNameAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"packageNameAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#packagenameandroid"},"packageNameAndroid")),(0,r.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L86"},"types/index.ts:86")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productid"},"productId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#productid"},"productId")),(0,r.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L68"},"types/index.ts:68")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productids"},"productIds"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"productIds"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,r.yg)("h4",{id:"inherited-from-9"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#productids"},"productIds")),(0,r.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L80"},"types/index.ts:80")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"purchasestateandroid"},"purchaseStateAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"purchaseStateAndroid"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/PurchaseStateAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"PurchaseStateAndroid"))),(0,r.yg)("h4",{id:"inherited-from-10"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#purchasestateandroid"},"purchaseStateAndroid")),(0,r.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L84"},"types/index.ts:84")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"purchasetoken"},"purchaseToken"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"purchaseToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-11"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#purchasetoken"},"purchaseToken")),(0,r.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L72"},"types/index.ts:72")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"quantityios"},"quantityIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"quantityIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"inherited-from-12"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#quantityios"},"quantityIOS")),(0,r.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L74"},"types/index.ts:74")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"signatureandroid"},"signatureAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"signatureAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-13"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#signatureandroid"},"signatureAndroid")),(0,r.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L82"},"types/index.ts:82")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactiondate"},"transactionDate"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"transactionDate"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"inherited-from-14"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#transactiondate"},"transactionDate")),(0,r.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L70"},"types/index.ts:70")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactionid"},"transactionId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"transactionId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-15"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#transactionid"},"transactionId")),(0,r.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L69"},"types/index.ts:69")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactionreasonios"},"transactionReasonIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"transactionReasonIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-19"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L110"},"types/index.ts:110")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactionreceipt"},"transactionReceipt"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"transactionReceipt"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-16"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#transactionreceipt"},"transactionReceipt")),(0,r.yg)("h4",{id:"defined-in-20"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L71"},"types/index.ts:71")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"useridamazon"},"userIdAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"userIdAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-17"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#useridamazon"},"userIdAmazon")),(0,r.yg)("h4",{id:"defined-in-21"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L91"},"types/index.ts:91")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"userjsonamazon"},"userJsonAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"userJsonAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-18"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#userjsonamazon"},"userJsonAmazon")),(0,r.yg)("h4",{id:"defined-in-22"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L93"},"types/index.ts:93")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"usermarketplaceamazon"},"userMarketplaceAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"userMarketplaceAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-19"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#usermarketplaceamazon"},"userMarketplaceAmazon")),(0,r.yg)("h4",{id:"defined-in-23"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L92"},"types/index.ts:92")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"verificationresultios"},"verificationResultIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"verificationResultIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"overrides-3"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#verificationresultios"},"verificationResultIOS")),(0,r.yg)("h4",{id:"defined-in-24"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L109"},"types/index.ts:109")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2474],{5680:(e,a,n)=>{n.d(a,{xA:()=>c,yg:()=>g});var i=n(6540);function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function t(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);a&&(i=i.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,a);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);for(i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=i.createContext({}),s=function(e){var a=i.useContext(p),n=a;return e&&(n="function"==typeof e?e(a):d(d({},a),e)),n},c=function(e){var a=s(e.components);return i.createElement(p.Provider,{value:a},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var a=e.children;return i.createElement(i.Fragment,{},a)}},h=i.forwardRef((function(e,a){var n=e.components,r=e.mdxType,t=e.originalType,p=e.parentName,c=o(e,["components","mdxType","originalType","parentName"]),l=s(n),h=r,g=l["".concat(p,".").concat(h)]||l[h]||u[h]||t;return n?i.createElement(g,d(d({ref:a},c),{},{components:n})):i.createElement(g,d({ref:a},c))}));function g(e,a){var n=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var t=n.length,d=new Array(t);d[0]=h;var o={};for(var p in a)hasOwnProperty.call(a,p)&&(o[p]=a[p]);o.originalType=e,o[l]="string"==typeof e?e:r,d[1]=o;for(var s=2;s{n.r(a),n.d(a,{assets:()=>p,contentTitle:()=>d,default:()=>u,frontMatter:()=>t,metadata:()=>o,toc:()=>s});var i=n(8168),r=(n(6540),n(5680));const t={},d=void 0,o={unversionedId:"api/interfaces/SubscriptionPurchase",id:"api/interfaces/SubscriptionPurchase",title:"SubscriptionPurchase",description:"react-native-iap / Exports / SubscriptionPurchase",source:"@site/docs/api/interfaces/SubscriptionPurchase.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionPurchase",permalink:"/docs/api/interfaces/SubscriptionPurchase",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionPurchase.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionOfferAndroid",permalink:"/docs/api/interfaces/SubscriptionOfferAndroid"},next:{title:"IapAmazon",permalink:"/docs/api/modules/IapAmazon"}},p={},s=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"appAccountToken",id:"appaccounttoken",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"autoRenewingAndroid",id:"autorenewingandroid",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"dataAndroid",id:"dataandroid",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"developerPayloadAndroid",id:"developerpayloadandroid",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"isAcknowledgedAndroid",id:"isacknowledgedandroid",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"isCanceledAmazon",id:"iscanceledamazon",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-6",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-7",level:4},{value:"originalTransactionDateIOS",id:"originaltransactiondateios",level:3},{value:"Overrides",id:"overrides-1",level:4},{value:"Defined in",id:"defined-in-8",level:4},{value:"originalTransactionIdentifierIOS",id:"originaltransactionidentifierios",level:3},{value:"Overrides",id:"overrides-2",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"packageNameAndroid",id:"packagenameandroid",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-11",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-9",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"purchaseStateAndroid",id:"purchasestateandroid",level:3},{value:"Inherited from",id:"inherited-from-10",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"purchaseToken",id:"purchasetoken",level:3},{value:"Inherited from",id:"inherited-from-11",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"quantityIOS",id:"quantityios",level:3},{value:"Inherited from",id:"inherited-from-12",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"signatureAndroid",id:"signatureandroid",level:3},{value:"Inherited from",id:"inherited-from-13",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"transactionDate",id:"transactiondate",level:3},{value:"Inherited from",id:"inherited-from-14",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"transactionId",id:"transactionid",level:3},{value:"Inherited from",id:"inherited-from-15",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"transactionReasonIOS",id:"transactionreasonios",level:3},{value:"Defined in",id:"defined-in-19",level:4},{value:"transactionReceipt",id:"transactionreceipt",level:3},{value:"Inherited from",id:"inherited-from-16",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"userIdAmazon",id:"useridamazon",level:3},{value:"Inherited from",id:"inherited-from-17",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"userJsonAmazon",id:"userjsonamazon",level:3},{value:"Inherited from",id:"inherited-from-18",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"userMarketplaceAmazon",id:"usermarketplaceamazon",level:3},{value:"Inherited from",id:"inherited-from-19",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"verificationResultIOS",id:"verificationresultios",level:3},{value:"Overrides",id:"overrides-3",level:4},{value:"Defined in",id:"defined-in-24",level:4}],c={toc:s},l="wrapper";function u(e){let{components:a,...n}=e;return(0,r.yg)(l,(0,i.A)({},c,n,{components:a,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionPurchase"),(0,r.yg)("h1",{id:"interface-subscriptionpurchase"},"Interface: SubscriptionPurchase"),(0,r.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("p",{parentName:"li"},(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductPurchase"))),(0,r.yg)("p",{parentName:"li"},"\u21b3 ",(0,r.yg)("strong",{parentName:"p"},(0,r.yg)("inlineCode",{parentName:"strong"},"SubscriptionPurchase"))))),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#appaccounttoken"},"appAccountToken")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#autorenewingandroid"},"autoRenewingAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#dataandroid"},"dataAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#developerpayloadandroid"},"developerPayloadAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#isacknowledgedandroid"},"isAcknowledgedAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#iscanceledamazon"},"isCanceledAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#originaltransactiondateios"},"originalTransactionDateIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#originaltransactionidentifierios"},"originalTransactionIdentifierIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#packagenameandroid"},"packageNameAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#productid"},"productId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#productids"},"productIds")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#purchasestateandroid"},"purchaseStateAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#purchasetoken"},"purchaseToken")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#quantityios"},"quantityIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#signatureandroid"},"signatureAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactiondate"},"transactionDate")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactionid"},"transactionId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactionreasonios"},"transactionReasonIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#transactionreceipt"},"transactionReceipt")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#useridamazon"},"userIdAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#userjsonamazon"},"userJsonAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#usermarketplaceamazon"},"userMarketplaceAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase#verificationresultios"},"verificationResultIOS"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"appaccounttoken"},"appAccountToken"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"appAccountToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#appaccounttoken"},"appAccountToken")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L78"},"types/index.ts:78")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"autorenewingandroid"},"autoRenewingAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"autoRenewingAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"overrides"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#autorenewingandroid"},"autoRenewingAndroid")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L106"},"types/index.ts:106")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"dataandroid"},"dataAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"dataAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#dataandroid"},"dataAndroid")),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L81"},"types/index.ts:81")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"developerpayloadandroid"},"developerPayloadAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"developerPayloadAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#developerpayloadandroid"},"developerPayloadAndroid")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L87"},"types/index.ts:87")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"isacknowledgedandroid"},"isAcknowledgedAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"isAcknowledgedAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#isacknowledgedandroid"},"isAcknowledgedAndroid")),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L85"},"types/index.ts:85")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"iscanceledamazon"},"isCanceledAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"isCanceledAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")),(0,r.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#iscanceledamazon"},"isCanceledAmazon")),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L94"},"types/index.ts:94")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L88"},"types/index.ts:88")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid")),(0,r.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L89"},"types/index.ts:89")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"originaltransactiondateios"},"originalTransactionDateIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"originalTransactionDateIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"overrides-1"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#originaltransactiondateios"},"originalTransactionDateIOS")),(0,r.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L107"},"types/index.ts:107")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"originaltransactionidentifierios"},"originalTransactionIdentifierIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"originalTransactionIdentifierIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"overrides-2"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#originaltransactionidentifierios"},"originalTransactionIdentifierIOS")),(0,r.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L108"},"types/index.ts:108")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"packagenameandroid"},"packageNameAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"packageNameAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#packagenameandroid"},"packageNameAndroid")),(0,r.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L86"},"types/index.ts:86")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productid"},"productId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#productid"},"productId")),(0,r.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L68"},"types/index.ts:68")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productids"},"productIds"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"productIds"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,r.yg)("h4",{id:"inherited-from-9"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#productids"},"productIds")),(0,r.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L80"},"types/index.ts:80")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"purchasestateandroid"},"purchaseStateAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"purchaseStateAndroid"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/PurchaseStateAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"PurchaseStateAndroid"))),(0,r.yg)("h4",{id:"inherited-from-10"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#purchasestateandroid"},"purchaseStateAndroid")),(0,r.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L84"},"types/index.ts:84")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"purchasetoken"},"purchaseToken"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"purchaseToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-11"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#purchasetoken"},"purchaseToken")),(0,r.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L72"},"types/index.ts:72")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"quantityios"},"quantityIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"quantityIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"inherited-from-12"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#quantityios"},"quantityIOS")),(0,r.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L74"},"types/index.ts:74")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"signatureandroid"},"signatureAndroid"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"signatureAndroid"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-13"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#signatureandroid"},"signatureAndroid")),(0,r.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L82"},"types/index.ts:82")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactiondate"},"transactionDate"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"transactionDate"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"number")),(0,r.yg)("h4",{id:"inherited-from-14"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#transactiondate"},"transactionDate")),(0,r.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L70"},"types/index.ts:70")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactionid"},"transactionId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"transactionId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-15"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#transactionid"},"transactionId")),(0,r.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L69"},"types/index.ts:69")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactionreasonios"},"transactionReasonIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"transactionReasonIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-19"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L110"},"types/index.ts:110")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"transactionreceipt"},"transactionReceipt"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"transactionReceipt"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-16"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#transactionreceipt"},"transactionReceipt")),(0,r.yg)("h4",{id:"defined-in-20"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L71"},"types/index.ts:71")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"useridamazon"},"userIdAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"userIdAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-17"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#useridamazon"},"userIdAmazon")),(0,r.yg)("h4",{id:"defined-in-21"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L91"},"types/index.ts:91")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"userjsonamazon"},"userJsonAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"userJsonAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-18"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#userjsonamazon"},"userJsonAmazon")),(0,r.yg)("h4",{id:"defined-in-22"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L93"},"types/index.ts:93")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"usermarketplaceamazon"},"userMarketplaceAmazon"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"userMarketplaceAmazon"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"inherited-from-19"},"Inherited from"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#usermarketplaceamazon"},"userMarketplaceAmazon")),(0,r.yg)("h4",{id:"defined-in-23"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L92"},"types/index.ts:92")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"verificationresultios"},"verificationResultIOS"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,r.yg)("strong",{parentName:"p"},"verificationResultIOS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"overrides-3"},"Overrides"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase"),".",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase#verificationresultios"},"verificationResultIOS")),(0,r.yg)("h4",{id:"defined-in-24"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L109"},"types/index.ts:109")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e4314729.c7cf0a6e.js b/assets/js/e4314729.4cb4292c.js similarity index 87% rename from assets/js/e4314729.c7cf0a6e.js rename to assets/js/e4314729.4cb4292c.js index 58d0713cc..b12c6b8cf 100644 --- a/assets/js/e4314729.c7cf0a6e.js +++ b/assets/js/e4314729.4cb4292c.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4812],{5680:(e,n,t)=>{t.d(n,{xA:()=>u,yg:()=>f});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),s=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},u=function(e){var n=s(e.components);return r.createElement(p.Provider,{value:n},e.children)},c="mdxType",d={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},m=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=s(t),m=a,f=c["".concat(p,".").concat(m)]||c[m]||d[m]||i;return t?r.createElement(f,o(o({ref:n},u),{},{components:t})):r.createElement(f,o({ref:n},u))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=m;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[c]="string"==typeof e?e:a,o[1]=l;for(var s=2;s{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>d,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/enums/SubscriptionPlatform",id:"api/enums/SubscriptionPlatform",title:"SubscriptionPlatform",description:"react-native-iap / Exports / SubscriptionPlatform",source:"@site/docs/api/enums/SubscriptionPlatform.md",sourceDirName:"api/enums",slug:"/api/enums/SubscriptionPlatform",permalink:"/docs/api/enums/SubscriptionPlatform",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/SubscriptionPlatform.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ReplacementModesAndroid",permalink:"/docs/api/enums/ReplacementModesAndroid"},next:{title:"TransactionReason",permalink:"/docs/api/enums/TransactionReason"}},p={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"amazon",id:"amazon",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"android",id:"android",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"ios",id:"ios",level:3},{value:"Defined in",id:"defined-in-2",level:4}],u={toc:s},c="wrapper";function d(e){let{components:n,...t}=e;return(0,a.yg)(c,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionPlatform"),(0,a.yg)("h1",{id:"enumeration-subscriptionplatform"},"Enumeration: SubscriptionPlatform"),(0,a.yg)("p",null,"Can be used to distinguish the different platforms' subscription information"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/SubscriptionPlatform#amazon"},"amazon")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/SubscriptionPlatform#android"},"android")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/SubscriptionPlatform#ios"},"ios"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"amazon"},"amazon"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"amazon")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"amazon"')),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L144"},"types/index.ts:144")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"android"},"android"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"android")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"android"')),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L143"},"types/index.ts:143")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"ios"},"ios"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"ios")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"ios"')),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L145"},"types/index.ts:145")))}d.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[4812],{5680:(e,n,t)=>{t.d(n,{xA:()=>u,yg:()=>f});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var p=r.createContext({}),s=function(e){var n=r.useContext(p),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},u=function(e){var n=s(e.components);return r.createElement(p.Provider,{value:n},e.children)},c="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,p=e.parentName,u=l(e,["components","mdxType","originalType","parentName"]),c=s(t),d=a,f=c["".concat(p,".").concat(d)]||c[d]||m[d]||i;return t?r.createElement(f,o(o({ref:n},u),{},{components:t})):r.createElement(f,o({ref:n},u))}));function f(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=d;var l={};for(var p in n)hasOwnProperty.call(n,p)&&(l[p]=n[p]);l.originalType=e,l[c]="string"==typeof e?e:a,o[1]=l;for(var s=2;s{t.r(n),t.d(n,{assets:()=>p,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>l,toc:()=>s});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,l={unversionedId:"api/enums/SubscriptionPlatform",id:"api/enums/SubscriptionPlatform",title:"SubscriptionPlatform",description:"react-native-iap / Exports / SubscriptionPlatform",source:"@site/docs/api/enums/SubscriptionPlatform.md",sourceDirName:"api/enums",slug:"/api/enums/SubscriptionPlatform",permalink:"/docs/api/enums/SubscriptionPlatform",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/SubscriptionPlatform.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"ReplacementModesAndroid",permalink:"/docs/api/enums/ReplacementModesAndroid"},next:{title:"TransactionReason",permalink:"/docs/api/enums/TransactionReason"}},p={},s=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"amazon",id:"amazon",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"android",id:"android",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"ios",id:"ios",level:3},{value:"Defined in",id:"defined-in-2",level:4}],u={toc:s},c="wrapper";function m(e){let{components:n,...t}=e;return(0,a.yg)(c,(0,r.A)({},u,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionPlatform"),(0,a.yg)("h1",{id:"enumeration-subscriptionplatform"},"Enumeration: SubscriptionPlatform"),(0,a.yg)("p",null,"Can be used to distinguish the different platforms' subscription information"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/SubscriptionPlatform#amazon"},"amazon")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/SubscriptionPlatform#android"},"android")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/SubscriptionPlatform#ios"},"ios"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"amazon"},"amazon"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"amazon")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"amazon"')),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L144"},"types/index.ts:144")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"android"},"android"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"android")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"android"')),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L143"},"types/index.ts:143")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"ios"},"ios"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"ios")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"ios"')),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L145"},"types/index.ts:145")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e5d0aed3.4abdee64.js b/assets/js/e5d0aed3.962da969.js similarity index 97% rename from assets/js/e5d0aed3.4abdee64.js rename to assets/js/e5d0aed3.962da969.js index 0d73eaea3..9f86b0051 100644 --- a/assets/js/e5d0aed3.4abdee64.js +++ b/assets/js/e5d0aed3.962da969.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8548],{5680:(e,n,t)=>{t.d(n,{xA:()=>p,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var c=r.createContext({}),l=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},p=function(e){var n=l(e.components);return r.createElement(c.Provider,{value:n},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,c=e.parentName,p=s(e,["components","mdxType","originalType","parentName"]),u=l(t),d=a,y=u["".concat(c,".").concat(d)]||u[d]||m[d]||i;return t?r.createElement(y,o(o({ref:n},p),{},{components:t})):r.createElement(y,o({ref:n},p))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=d;var s={};for(var c in n)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s[u]="string"==typeof e?e:a,o[1]=s;for(var l=2;l{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>s,toc:()=>l});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,s={unversionedId:"api/enums/TransactionReason",id:"api/enums/TransactionReason",title:"TransactionReason",description:"react-native-iap / Exports / TransactionReason",source:"@site/docs/api/enums/TransactionReason.md",sourceDirName:"api/enums",slug:"/api/enums/TransactionReason",permalink:"/docs/api/enums/TransactionReason",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/TransactionReason.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionPlatform",permalink:"/docs/api/enums/SubscriptionPlatform"},next:{title:"Discount",permalink:"/docs/api/interfaces/Discount"}},c={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"PURCHASE",id:"purchase",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"RENEWAL",id:"renewal",level:3},{value:"Defined in",id:"defined-in-1",level:4}],p={toc:l},u="wrapper";function m(e){let{components:n,...t}=e;return(0,a.yg)(u,(0,r.A)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / TransactionReason"),(0,a.yg)("h1",{id:"enumeration-transactionreason"},"Enumeration: TransactionReason"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/TransactionReason#purchase"},"PURCHASE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/TransactionReason#renewal"},"RENEWAL"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"purchase"},"PURCHASE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"PURCHASE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"PURCHASE"')),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L50"},"types/index.ts:50")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"renewal"},"RENEWAL"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"RENEWAL")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"RENEWAL"')),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L51"},"types/index.ts:51")))}m.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[8548],{5680:(e,n,t)=>{t.d(n,{xA:()=>p,yg:()=>y});var r=t(6540);function a(e,n,t){return n in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function i(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);n&&(r=r.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,r)}return t}function o(e){for(var n=1;n=0||(a[t]=e[t]);return a}(e,n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,t)&&(a[t]=e[t])}return a}var c=r.createContext({}),l=function(e){var n=r.useContext(c),t=n;return e&&(t="function"==typeof e?e(n):o(o({},n),e)),t},p=function(e){var n=l(e.components);return r.createElement(c.Provider,{value:n},e.children)},u="mdxType",m={inlineCode:"code",wrapper:function(e){var n=e.children;return r.createElement(r.Fragment,{},n)}},d=r.forwardRef((function(e,n){var t=e.components,a=e.mdxType,i=e.originalType,c=e.parentName,p=s(e,["components","mdxType","originalType","parentName"]),u=l(t),d=a,y=u["".concat(c,".").concat(d)]||u[d]||m[d]||i;return t?r.createElement(y,o(o({ref:n},p),{},{components:t})):r.createElement(y,o({ref:n},p))}));function y(e,n){var t=arguments,a=n&&n.mdxType;if("string"==typeof e||a){var i=t.length,o=new Array(i);o[0]=d;var s={};for(var c in n)hasOwnProperty.call(n,c)&&(s[c]=n[c]);s.originalType=e,s[u]="string"==typeof e?e:a,o[1]=s;for(var l=2;l{t.r(n),t.d(n,{assets:()=>c,contentTitle:()=>o,default:()=>m,frontMatter:()=>i,metadata:()=>s,toc:()=>l});var r=t(8168),a=(t(6540),t(5680));const i={},o=void 0,s={unversionedId:"api/enums/TransactionReason",id:"api/enums/TransactionReason",title:"TransactionReason",description:"react-native-iap / Exports / TransactionReason",source:"@site/docs/api/enums/TransactionReason.md",sourceDirName:"api/enums",slug:"/api/enums/TransactionReason",permalink:"/docs/api/enums/TransactionReason",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/enums/TransactionReason.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionPlatform",permalink:"/docs/api/enums/SubscriptionPlatform"},next:{title:"Discount",permalink:"/docs/api/interfaces/Discount"}},c={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Enumeration Members",id:"enumeration-members",level:3},{value:"Enumeration Members",id:"enumeration-members-1",level:2},{value:"PURCHASE",id:"purchase",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"RENEWAL",id:"renewal",level:3},{value:"Defined in",id:"defined-in-1",level:4}],p={toc:l},u="wrapper";function m(e){let{components:n,...t}=e;return(0,a.yg)(u,(0,r.A)({},p,t,{components:n,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / TransactionReason"),(0,a.yg)("h1",{id:"enumeration-transactionreason"},"Enumeration: TransactionReason"),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"enumeration-members"},"Enumeration Members"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/TransactionReason#purchase"},"PURCHASE")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/enums/TransactionReason#renewal"},"RENEWAL"))),(0,a.yg)("h2",{id:"enumeration-members-1"},"Enumeration Members"),(0,a.yg)("h3",{id:"purchase"},"PURCHASE"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"PURCHASE")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"PURCHASE"')),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L50"},"types/index.ts:50")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"renewal"},"RENEWAL"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("strong",{parentName:"p"},"RENEWAL")," = ",(0,a.yg)("inlineCode",{parentName:"p"},'"RENEWAL"')),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L51"},"types/index.ts:51")))}m.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/e9de1277.48904b02.js b/assets/js/e9de1277.9298e6be.js similarity index 97% rename from assets/js/e9de1277.48904b02.js rename to assets/js/e9de1277.9298e6be.js index ec415e59c..48c82665d 100644 --- a/assets/js/e9de1277.48904b02.js +++ b/assets/js/e9de1277.9298e6be.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6875],{5680:(e,r,n)=>{n.d(r,{xA:()=>p,yg:()=>y});var t=n(6540);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function o(e){for(var r=1;r=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=t.createContext({}),c=function(e){var r=t.useContext(s),n=r;return e&&(n="function"==typeof e?e(r):o(o({},r),e)),n},p=function(e){var r=c(e.components);return t.createElement(s.Provider,{value:r},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},f=t.forwardRef((function(e,r){var n=e.components,a=e.mdxType,i=e.originalType,s=e.parentName,p=d(e,["components","mdxType","originalType","parentName"]),l=c(n),f=a,y=l["".concat(s,".").concat(f)]||l[f]||u[f]||i;return n?t.createElement(y,o(o({ref:r},p),{},{components:n})):t.createElement(y,o({ref:r},p))}));function y(e,r){var n=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var i=n.length,o=new Array(i);o[0]=f;var d={};for(var s in r)hasOwnProperty.call(r,s)&&(d[s]=r[s]);d.originalType=e,d[l]="string"==typeof e?e:a,o[1]=d;for(var c=2;c{n.r(r),n.d(r,{assets:()=>s,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>d,toc:()=>c});var t=n(8168),a=(n(6540),n(5680));const i={},o=void 0,d={unversionedId:"api/interfaces/RequestPurchaseBaseAndroid",id:"api/interfaces/RequestPurchaseBaseAndroid",title:"RequestPurchaseBaseAndroid",description:"react-native-iap / Exports / RequestPurchaseBaseAndroid",source:"@site/docs/api/interfaces/RequestPurchaseBaseAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestPurchaseBaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseBaseAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestPurchaseBaseAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestPurchaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseAndroid"},next:{title:"RequestPurchaseIOS",permalink:"/docs/api/interfaces/RequestPurchaseIOS"}},s={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"isOfferPersonalized",id:"isofferpersonalized",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Defined in",id:"defined-in-2",level:4}],p={toc:c},l="wrapper";function u(e){let{components:r,...n}=e;return(0,a.yg)(l,(0,t.A)({},p,n,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestPurchaseBaseAndroid"),(0,a.yg)("h1",{id:"interface-requestpurchasebaseandroid"},"Interface: RequestPurchaseBaseAndroid"),(0,a.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"},(0,a.yg)("inlineCode",{parentName:"strong"},"RequestPurchaseBaseAndroid"))),(0,a.yg)("p",{parentName:"li"},"\u21b3 ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseAndroid"},(0,a.yg)("inlineCode",{parentName:"a"},"RequestPurchaseAndroid"))),(0,a.yg)("p",{parentName:"li"},"\u21b3 ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestSubscriptionAndroid"},(0,a.yg)("inlineCode",{parentName:"a"},"RequestSubscriptionAndroid"))))),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"properties"},"Properties"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"))),(0,a.yg)("h2",{id:"properties-1"},"Properties"),(0,a.yg)("h3",{id:"isofferpersonalized"},"isOfferPersonalized"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"isOfferPersonalized"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"boolean")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L220"},"types/index.ts:220")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L218"},"types/index.ts:218")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L219"},"types/index.ts:219")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6875],{5680:(e,r,n)=>{n.d(r,{xA:()=>p,yg:()=>y});var t=n(6540);function a(e,r,n){return r in e?Object.defineProperty(e,r,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[r]=n,e}function i(e,r){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);r&&(t=t.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),n.push.apply(n,t)}return n}function o(e){for(var r=1;r=0||(a[n]=e[n]);return a}(e,r);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}var s=t.createContext({}),c=function(e){var r=t.useContext(s),n=r;return e&&(n="function"==typeof e?e(r):o(o({},r),e)),n},p=function(e){var r=c(e.components);return t.createElement(s.Provider,{value:r},e.children)},l="mdxType",u={inlineCode:"code",wrapper:function(e){var r=e.children;return t.createElement(t.Fragment,{},r)}},f=t.forwardRef((function(e,r){var n=e.components,a=e.mdxType,i=e.originalType,s=e.parentName,p=d(e,["components","mdxType","originalType","parentName"]),l=c(n),f=a,y=l["".concat(s,".").concat(f)]||l[f]||u[f]||i;return n?t.createElement(y,o(o({ref:r},p),{},{components:n})):t.createElement(y,o({ref:r},p))}));function y(e,r){var n=arguments,a=r&&r.mdxType;if("string"==typeof e||a){var i=n.length,o=new Array(i);o[0]=f;var d={};for(var s in r)hasOwnProperty.call(r,s)&&(d[s]=r[s]);d.originalType=e,d[l]="string"==typeof e?e:a,o[1]=d;for(var c=2;c{n.r(r),n.d(r,{assets:()=>s,contentTitle:()=>o,default:()=>u,frontMatter:()=>i,metadata:()=>d,toc:()=>c});var t=n(8168),a=(n(6540),n(5680));const i={},o=void 0,d={unversionedId:"api/interfaces/RequestPurchaseBaseAndroid",id:"api/interfaces/RequestPurchaseBaseAndroid",title:"RequestPurchaseBaseAndroid",description:"react-native-iap / Exports / RequestPurchaseBaseAndroid",source:"@site/docs/api/interfaces/RequestPurchaseBaseAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/RequestPurchaseBaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseBaseAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/RequestPurchaseBaseAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"RequestPurchaseAndroid",permalink:"/docs/api/interfaces/RequestPurchaseAndroid"},next:{title:"RequestPurchaseIOS",permalink:"/docs/api/interfaces/RequestPurchaseIOS"}},s={},c=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"isOfferPersonalized",id:"isofferpersonalized",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"obfuscatedAccountIdAndroid",id:"obfuscatedaccountidandroid",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"obfuscatedProfileIdAndroid",id:"obfuscatedprofileidandroid",level:3},{value:"Defined in",id:"defined-in-2",level:4}],p={toc:c},l="wrapper";function u(e){let{components:r,...n}=e;return(0,a.yg)(l,(0,t.A)({},p,n,{components:r,mdxType:"MDXLayout"}),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / RequestPurchaseBaseAndroid"),(0,a.yg)("h1",{id:"interface-requestpurchasebaseandroid"},"Interface: RequestPurchaseBaseAndroid"),(0,a.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("p",{parentName:"li"},(0,a.yg)("strong",{parentName:"p"},(0,a.yg)("inlineCode",{parentName:"strong"},"RequestPurchaseBaseAndroid"))),(0,a.yg)("p",{parentName:"li"},"\u21b3 ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseAndroid"},(0,a.yg)("inlineCode",{parentName:"a"},"RequestPurchaseAndroid"))),(0,a.yg)("p",{parentName:"li"},"\u21b3 ",(0,a.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestSubscriptionAndroid"},(0,a.yg)("inlineCode",{parentName:"a"},"RequestSubscriptionAndroid"))))),(0,a.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,a.yg)("h3",{id:"properties"},"Properties"),(0,a.yg)("ul",null,(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#isofferpersonalized"},"isOfferPersonalized")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid")),(0,a.yg)("li",{parentName:"ul"},(0,a.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid#obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"))),(0,a.yg)("h2",{id:"properties-1"},"Properties"),(0,a.yg)("h3",{id:"isofferpersonalized"},"isOfferPersonalized"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"isOfferPersonalized"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"boolean")),(0,a.yg)("h4",{id:"defined-in"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L220"},"types/index.ts:220")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"obfuscatedaccountidandroid"},"obfuscatedAccountIdAndroid"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"obfuscatedAccountIdAndroid"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L218"},"types/index.ts:218")),(0,a.yg)("hr",null),(0,a.yg)("h3",{id:"obfuscatedprofileidandroid"},"obfuscatedProfileIdAndroid"),(0,a.yg)("p",null,"\u2022 ",(0,a.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,a.yg)("strong",{parentName:"p"},"obfuscatedProfileIdAndroid"),": ",(0,a.yg)("inlineCode",{parentName:"p"},"string")),(0,a.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,a.yg)("p",null,(0,a.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L219"},"types/index.ts:219")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/f1279d07.d1aca8a7.js b/assets/js/f1279d07.57e6b9db.js similarity index 94% rename from assets/js/f1279d07.d1aca8a7.js rename to assets/js/f1279d07.57e6b9db.js index f23c5c00d..c2d1b8f29 100644 --- a/assets/js/f1279d07.d1aca8a7.js +++ b/assets/js/f1279d07.57e6b9db.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6077],{5680:(e,n,i)=>{i.d(n,{xA:()=>s,yg:()=>y});var t=i(6540);function r(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function p(e){for(var n=1;n=0||(r[i]=e[i]);return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var d=t.createContext({}),l=function(e){var n=t.useContext(d),i=n;return e&&(i="function"==typeof e?e(n):p(p({},n),e)),i},s=function(e){var n=l(e.components);return t.createElement(d.Provider,{value:n},e.children)},c="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},f=t.forwardRef((function(e,n){var i=e.components,r=e.mdxType,a=e.originalType,d=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=l(i),f=r,y=c["".concat(d,".").concat(f)]||c[f]||u[f]||a;return i?t.createElement(y,p(p({ref:n},s),{},{components:i})):t.createElement(y,p({ref:n},s))}));function y(e,n){var i=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=i.length,p=new Array(a);p[0]=f;var o={};for(var d in n)hasOwnProperty.call(n,d)&&(o[d]=n[d]);o.originalType=e,o[c]="string"==typeof e?e:r,p[1]=o;for(var l=2;l{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>p,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=i(8168),r=(i(6540),i(5680));const a={},p=void 0,o={unversionedId:"api/interfaces/SubscriptionAndroid",id:"api/interfaces/SubscriptionAndroid",title:"SubscriptionAndroid",description:"react-native-iap / Exports / SubscriptionAndroid",source:"@site/docs/api/interfaces/SubscriptionAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionAndroid",permalink:"/docs/api/interfaces/SubscriptionAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionAmazon",permalink:"/docs/api/interfaces/SubscriptionAmazon"},next:{title:"SubscriptionIOS",permalink:"/docs/api/interfaces/SubscriptionIOS"}},d={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"description",id:"description",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"platform",id:"platform",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"productType",id:"producttype",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"subscriptionOfferDetails",id:"subscriptionofferdetails",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"title",id:"title",level:3},{value:"Defined in",id:"defined-in-6",level:4}],s={toc:l},c="wrapper";function u(e){let{components:n,...i}=e;return(0,r.yg)(c,(0,t.A)({},s,i,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionAndroid"),(0,r.yg)("h1",{id:"interface-subscriptionandroid"},"Interface: SubscriptionAndroid"),(0,r.yg)("p",null,"Android Billing v5 type"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#description"},"description")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#name"},"name")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#platform"},"platform")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#productid"},"productId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#producttype"},"productType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#subscriptionofferdetails"},"subscriptionOfferDetails")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#title"},"title"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"description"},"description"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"description"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L154"},"types/index.ts:154")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"name"},"name"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"name"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L152"},"types/index.ts:152")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"platform"},"platform"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"platform"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/SubscriptionPlatform#android"},(0,r.yg)("inlineCode",{parentName:"a"},"android"))),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L150"},"types/index.ts:150")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productid"},"productId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L155"},"types/index.ts:155")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"producttype"},"productType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L151"},"types/index.ts:151")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"subscriptionofferdetails"},"subscriptionOfferDetails"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"subscriptionOfferDetails"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionOfferAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionOfferAndroid")),"[]"),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L156"},"types/index.ts:156")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"title"},"title"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"title"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L153"},"types/index.ts:153")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[6077],{5680:(e,n,i)=>{i.d(n,{xA:()=>s,yg:()=>y});var t=i(6540);function r(e,n,i){return n in e?Object.defineProperty(e,n,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[n]=i,e}function a(e,n){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),i.push.apply(i,t)}return i}function p(e){for(var n=1;n=0||(r[i]=e[i]);return r}(e,n);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(r[i]=e[i])}return r}var d=t.createContext({}),l=function(e){var n=t.useContext(d),i=n;return e&&(i="function"==typeof e?e(n):p(p({},n),e)),i},s=function(e){var n=l(e.components);return t.createElement(d.Provider,{value:n},e.children)},c="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},f=t.forwardRef((function(e,n){var i=e.components,r=e.mdxType,a=e.originalType,d=e.parentName,s=o(e,["components","mdxType","originalType","parentName"]),c=l(i),f=r,y=c["".concat(d,".").concat(f)]||c[f]||u[f]||a;return i?t.createElement(y,p(p({ref:n},s),{},{components:i})):t.createElement(y,p({ref:n},s))}));function y(e,n){var i=arguments,r=n&&n.mdxType;if("string"==typeof e||r){var a=i.length,p=new Array(a);p[0]=f;var o={};for(var d in n)hasOwnProperty.call(n,d)&&(o[d]=n[d]);o.originalType=e,o[c]="string"==typeof e?e:r,p[1]=o;for(var l=2;l{i.r(n),i.d(n,{assets:()=>d,contentTitle:()=>p,default:()=>u,frontMatter:()=>a,metadata:()=>o,toc:()=>l});var t=i(8168),r=(i(6540),i(5680));const a={},p=void 0,o={unversionedId:"api/interfaces/SubscriptionAndroid",id:"api/interfaces/SubscriptionAndroid",title:"SubscriptionAndroid",description:"react-native-iap / Exports / SubscriptionAndroid",source:"@site/docs/api/interfaces/SubscriptionAndroid.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionAndroid",permalink:"/docs/api/interfaces/SubscriptionAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionAmazon",permalink:"/docs/api/interfaces/SubscriptionAmazon"},next:{title:"SubscriptionIOS",permalink:"/docs/api/interfaces/SubscriptionIOS"}},d={},l=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"description",id:"description",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"name",id:"name",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"platform",id:"platform",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"productId",id:"productid",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"productType",id:"producttype",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"subscriptionOfferDetails",id:"subscriptionofferdetails",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"title",id:"title",level:3},{value:"Defined in",id:"defined-in-6",level:4}],s={toc:l},c="wrapper";function u(e){let{components:n,...i}=e;return(0,r.yg)(c,(0,t.A)({},s,i,{components:n,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionAndroid"),(0,r.yg)("h1",{id:"interface-subscriptionandroid"},"Interface: SubscriptionAndroid"),(0,r.yg)("p",null,"Android Billing v5 type"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"properties"},"Properties"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#description"},"description")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#name"},"name")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#platform"},"platform")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#productid"},"productId")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#producttype"},"productType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#subscriptionofferdetails"},"subscriptionOfferDetails")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid#title"},"title"))),(0,r.yg)("h2",{id:"properties-1"},"Properties"),(0,r.yg)("h3",{id:"description"},"description"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"description"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L154"},"types/index.ts:154")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"name"},"name"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"name"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L152"},"types/index.ts:152")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"platform"},"platform"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"platform"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/SubscriptionPlatform#android"},(0,r.yg)("inlineCode",{parentName:"a"},"android"))),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L150"},"types/index.ts:150")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"productid"},"productId"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L155"},"types/index.ts:155")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"producttype"},"productType"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"productType"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L151"},"types/index.ts:151")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"subscriptionofferdetails"},"subscriptionOfferDetails"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"subscriptionOfferDetails"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionOfferAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionOfferAndroid")),"[]"),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L156"},"types/index.ts:156")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"title"},"title"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("strong",{parentName:"p"},"title"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L153"},"types/index.ts:153")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/f1333dc9.29b6ad52.js b/assets/js/f1333dc9.39cb3246.js similarity index 94% rename from assets/js/f1333dc9.29b6ad52.js rename to assets/js/f1333dc9.39cb3246.js index 0afc8790a..c719d021f 100644 --- a/assets/js/f1333dc9.29b6ad52.js +++ b/assets/js/f1333dc9.39cb3246.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2615],{5680:(e,n,a)=>{a.d(n,{xA:()=>d,yg:()=>m});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function l(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var s=t.createContext({}),p=function(e){var n=t.useContext(s),a=n;return e&&(a="function"==typeof e?e(n):l(l({},n),e)),a},d=function(e){var n=p(e.components);return t.createElement(s.Provider,{value:n},e.children)},g="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},y=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,s=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),g=p(a),y=i,m=g["".concat(s,".").concat(y)]||g[y]||u[y]||r;return a?t.createElement(m,l(l({ref:n},d),{},{components:a})):t.createElement(m,l({ref:n},d))}));function m(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,l=new Array(r);l[0]=y;var o={};for(var s in n)hasOwnProperty.call(n,s)&&(o[s]=n[s]);o.originalType=e,o[g]="string"==typeof e?e:i,l[1]=o;for(var p=2;p{a.r(n),a.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>p});var t=a(8168),i=(a(6540),a(5680));const r={},l=void 0,o={unversionedId:"api/interfaces/IapIosSk2.IosModulePropsSk2",id:"api/interfaces/IapIosSk2.IosModulePropsSk2",title:"IapIosSk2.IosModulePropsSk2",description:"react-native-iap / Exports / IapIosSk2 / IosModulePropsSk2",source:"@site/docs/api/interfaces/IapIosSk2.IosModulePropsSk2.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapIosSk2.IosModulePropsSk2",permalink:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapIosSk2.IosModulePropsSk2.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapIos.IosModuleProps",permalink:"/docs/api/interfaces/IapIos.IosModuleProps"},next:{title:"NativeModuleProps",permalink:"/docs/api/interfaces/NativeModuleProps"}},s={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"beginRefundRequest",id:"beginrefundrequest",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"buyProduct",id:"buyproduct",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"buyPromotedProduct",id:"buypromotedproduct",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"clearProducts",id:"clearproducts",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"clearTransaction",id:"cleartransaction",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"disable",id:"disable",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-5",level:4},{value:"finishTransaction",id:"finishtransaction",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getAvailableItems",id:"getavailableitems",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"getItems",id:"getitems",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"getPendingTransactions",id:"getpendingtransactions",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"presentCodeRedemptionSheet",id:"presentcoderedemptionsheet",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"promotedProduct",id:"promotedproduct",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"showManageSubscriptions",id:"showmanagesubscriptions",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"currentEntitlement",id:"currententitlement",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-5",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"isAvailable",id:"isavailable",level:3},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"isEligibleForIntroOffer",id:"iseligibleforintrooffer",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"latestTransaction",id:"latesttransaction",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"subscriptionStatus",id:"subscriptionstatus",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"sync",id:"sync",level:3},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-22",level:4}],d={toc:p},g="wrapper";function u(e){let{components:n,...a}=e;return(0,i.yg)(g,(0,t.A)({},d,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIosSk2"},"IapIosSk2")," / IosModulePropsSk2"),(0,i.yg)("h1",{id:"interface-iosmodulepropssk2"},"Interface: IosModulePropsSk2"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIosSk2"},"IapIosSk2"),".IosModulePropsSk2"),(0,i.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,i.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("p",{parentName:"li"},(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,i.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,i.yg)("p",{parentName:"li"},"\u21b3 ",(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"IosModulePropsSk2"))))),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#beginrefundrequest"},"beginRefundRequest")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#buyproduct"},"buyProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#buypromotedproduct"},"buyPromotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#clearproducts"},"clearProducts")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#cleartransaction"},"clearTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#disable"},"disable")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#finishtransaction"},"finishTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#getavailableitems"},"getAvailableItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#getitems"},"getItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#getpendingtransactions"},"getPendingTransactions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#presentcoderedemptionsheet"},"presentCodeRedemptionSheet")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#promotedproduct"},"promotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#showmanagesubscriptions"},"showManageSubscriptions"))),(0,i.yg)("h3",{id:"methods"},"Methods"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#addlistener"},"addListener")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#currententitlement"},"currentEntitlement")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#endconnection"},"endConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#initconnection"},"initConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#isavailable"},"isAvailable")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#iseligibleforintrooffer"},"isEligibleForIntroOffer")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#latesttransaction"},"latestTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#removelisteners"},"removeListeners")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#subscriptionstatus"},"subscriptionStatus")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#sync"},"sync"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"beginrefundrequest"},"beginRefundRequest"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"beginRefundRequest"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L60"},"modules/iosSk2.ts:60")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buyproduct"},"buyProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyProduct"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIosSk2#buyproduct"},(0,i.yg)("inlineCode",{parentName:"a"},"BuyProduct"))),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L50"},"modules/iosSk2.ts:50")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buypromotedproduct"},"buyPromotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyPromotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"buyPromotedProduct")),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L54"},"modules/iosSk2.ts:54")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"clearproducts"},"clearProducts"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearProducts"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearProducts")),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L52"},"modules/iosSk2.ts:52")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"cleartransaction"},"clearTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearTransaction")),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L51"},"modules/iosSk2.ts:51")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"disable"},"disable"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"disable"),": () => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"type-declaration-1"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h5",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L59"},"modules/iosSk2.ts:59")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"finishtransaction"},"finishTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"finishTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"finishTransaction")),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L55"},"modules/iosSk2.ts:55")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getavailableitems"},"getAvailableItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getAvailableItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getAvailableItems")),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L49"},"modules/iosSk2.ts:49")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getitems"},"getItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getItems")),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L48"},"modules/iosSk2.ts:48")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpendingtransactions"},"getPendingTransactions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getPendingTransactions"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getPendingTransactions")),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L56"},"modules/iosSk2.ts:56")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"presentcoderedemptionsheet"},"presentCodeRedemptionSheet"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"presentCodeRedemptionSheet"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"presentCodeRedemptionSheet")),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L57"},"modules/iosSk2.ts:57")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"promotedproduct"},"promotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"promotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"promotedProduct")),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L53"},"modules/iosSk2.ts:53")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"showmanagesubscriptions"},"showManageSubscriptions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"showManageSubscriptions"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"showManageSubscriptions")),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L58"},"modules/iosSk2.ts:58")),(0,i.yg)("h2",{id:"methods-1"},"Methods"),(0,i.yg)("h3",{id:"addlistener"},"addListener"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"addListener"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"addListener for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"eventType")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"currententitlement"},"currentEntitlement"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"currentEntitlement"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L44"},"modules/iosSk2.ts:44")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"endconnection"},"endConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to end the payment provider connection"),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,i.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"initconnection"},"initConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to start a payment provider connection"),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,i.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"isavailable"},"isAvailable"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"isAvailable"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"number")),(0,i.yg)("h4",{id:"returns-6"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"number")),(0,i.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L42"},"modules/iosSk2.ts:42")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"iseligibleforintrooffer"},"isEligibleForIntroOffer"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"isEligibleForIntroOffer"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"groupID"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"parameters-3"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"groupID")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-7"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L46"},"modules/iosSk2.ts:46")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"latesttransaction"},"latestTransaction"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"latestTransaction"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-4"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-8"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-19"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L43"},"modules/iosSk2.ts:43")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-5"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"count")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))))),(0,i.yg)("h4",{id:"returns-9"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,i.yg)("h4",{id:"defined-in-20"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/common.ts#L15"},"modules/common.ts:15")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"subscriptionstatus"},"subscriptionStatus"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"subscriptionStatus"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"parameters-6"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-10"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"defined-in-21"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L45"},"modules/iosSk2.ts:45")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"sync"},"sync"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"sync"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"returns-11"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-22"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/iosSk2.ts#L47"},"modules/iosSk2.ts:47")))}u.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2615],{5680:(e,n,a)=>{a.d(n,{xA:()=>d,yg:()=>m});var t=a(6540);function i(e,n,a){return n in e?Object.defineProperty(e,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[n]=a,e}function r(e,n){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);n&&(t=t.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),a.push.apply(a,t)}return a}function l(e){for(var n=1;n=0||(i[a]=e[a]);return i}(e,n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,a)&&(i[a]=e[a])}return i}var s=t.createContext({}),p=function(e){var n=t.useContext(s),a=n;return e&&(a="function"==typeof e?e(n):l(l({},n),e)),a},d=function(e){var n=p(e.components);return t.createElement(s.Provider,{value:n},e.children)},g="mdxType",u={inlineCode:"code",wrapper:function(e){var n=e.children;return t.createElement(t.Fragment,{},n)}},y=t.forwardRef((function(e,n){var a=e.components,i=e.mdxType,r=e.originalType,s=e.parentName,d=o(e,["components","mdxType","originalType","parentName"]),g=p(a),y=i,m=g["".concat(s,".").concat(y)]||g[y]||u[y]||r;return a?t.createElement(m,l(l({ref:n},d),{},{components:a})):t.createElement(m,l({ref:n},d))}));function m(e,n){var a=arguments,i=n&&n.mdxType;if("string"==typeof e||i){var r=a.length,l=new Array(r);l[0]=y;var o={};for(var s in n)hasOwnProperty.call(n,s)&&(o[s]=n[s]);o.originalType=e,o[g]="string"==typeof e?e:i,l[1]=o;for(var p=2;p{a.r(n),a.d(n,{assets:()=>s,contentTitle:()=>l,default:()=>u,frontMatter:()=>r,metadata:()=>o,toc:()=>p});var t=a(8168),i=(a(6540),a(5680));const r={},l=void 0,o={unversionedId:"api/interfaces/IapIosSk2.IosModulePropsSk2",id:"api/interfaces/IapIosSk2.IosModulePropsSk2",title:"IapIosSk2.IosModulePropsSk2",description:"react-native-iap / Exports / IapIosSk2 / IosModulePropsSk2",source:"@site/docs/api/interfaces/IapIosSk2.IosModulePropsSk2.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/IapIosSk2.IosModulePropsSk2",permalink:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/IapIosSk2.IosModulePropsSk2.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapIos.IosModuleProps",permalink:"/docs/api/interfaces/IapIos.IosModuleProps"},next:{title:"NativeModuleProps",permalink:"/docs/api/interfaces/NativeModuleProps"}},s={},p=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Methods",id:"methods",level:3},{value:"Properties",id:"properties-1",level:2},{value:"beginRefundRequest",id:"beginrefundrequest",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"buyProduct",id:"buyproduct",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"buyPromotedProduct",id:"buypromotedproduct",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"clearProducts",id:"clearproducts",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"clearTransaction",id:"cleartransaction",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"disable",id:"disable",level:3},{value:"Type declaration",id:"type-declaration-1",level:4},{value:"Returns",id:"returns-1",level:5},{value:"Defined in",id:"defined-in-5",level:4},{value:"finishTransaction",id:"finishtransaction",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"getAvailableItems",id:"getavailableitems",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"getItems",id:"getitems",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"getPendingTransactions",id:"getpendingtransactions",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"presentCodeRedemptionSheet",id:"presentcoderedemptionsheet",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"promotedProduct",id:"promotedproduct",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"showManageSubscriptions",id:"showmanagesubscriptions",level:3},{value:"Defined in",id:"defined-in-12",level:4},{value:"Methods",id:"methods-1",level:2},{value:"addListener",id:"addlistener",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"currentEntitlement",id:"currententitlement",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-4",level:4},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Returns",id:"returns-5",level:4},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"isAvailable",id:"isavailable",level:3},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"isEligibleForIntroOffer",id:"iseligibleforintrooffer",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"latestTransaction",id:"latesttransaction",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"removeListeners",id:"removelisteners",level:3},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-9",level:4},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"subscriptionStatus",id:"subscriptionstatus",level:3},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"sync",id:"sync",level:3},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-22",level:4}],d={toc:p},g="wrapper";function u(e){let{components:n,...a}=e;return(0,i.yg)(g,(0,t.A)({},d,a,{components:n,mdxType:"MDXLayout"}),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIosSk2"},"IapIosSk2")," / IosModulePropsSk2"),(0,i.yg)("h1",{id:"interface-iosmodulepropssk2"},"Interface: IosModulePropsSk2"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIosSk2"},"IapIosSk2"),".IosModulePropsSk2"),(0,i.yg)("p",null,"Common interface for all native modules (iOS \u2014 AppStore, Android \u2014 PlayStore and Amazon)."),(0,i.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("p",{parentName:"li"},(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},(0,i.yg)("inlineCode",{parentName:"a"},"NativeModuleProps"))),(0,i.yg)("p",{parentName:"li"},"\u21b3 ",(0,i.yg)("strong",{parentName:"p"},(0,i.yg)("inlineCode",{parentName:"strong"},"IosModulePropsSk2"))))),(0,i.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,i.yg)("h3",{id:"properties"},"Properties"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#beginrefundrequest"},"beginRefundRequest")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#buyproduct"},"buyProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#buypromotedproduct"},"buyPromotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#clearproducts"},"clearProducts")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#cleartransaction"},"clearTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#disable"},"disable")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#finishtransaction"},"finishTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#getavailableitems"},"getAvailableItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#getitems"},"getItems")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#getpendingtransactions"},"getPendingTransactions")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#presentcoderedemptionsheet"},"presentCodeRedemptionSheet")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#promotedproduct"},"promotedProduct")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#showmanagesubscriptions"},"showManageSubscriptions"))),(0,i.yg)("h3",{id:"methods"},"Methods"),(0,i.yg)("ul",null,(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#addlistener"},"addListener")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#currententitlement"},"currentEntitlement")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#endconnection"},"endConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#initconnection"},"initConnection")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#isavailable"},"isAvailable")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#iseligibleforintrooffer"},"isEligibleForIntroOffer")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#latesttransaction"},"latestTransaction")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#removelisteners"},"removeListeners")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#subscriptionstatus"},"subscriptionStatus")),(0,i.yg)("li",{parentName:"ul"},(0,i.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapIosSk2.IosModulePropsSk2#sync"},"sync"))),(0,i.yg)("h2",{id:"properties-1"},"Properties"),(0,i.yg)("h3",{id:"beginrefundrequest"},"beginRefundRequest"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"beginRefundRequest"),": (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"string"),") => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h5",{id:"parameters"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h5",{id:"returns"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"RefundRequestStatus"),">"),(0,i.yg)("h4",{id:"defined-in"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L60"},"modules/iosSk2.ts:60")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buyproduct"},"buyProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyProduct"),": ",(0,i.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIosSk2#buyproduct"},(0,i.yg)("inlineCode",{parentName:"a"},"BuyProduct"))),(0,i.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L50"},"modules/iosSk2.ts:50")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"buypromotedproduct"},"buyPromotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"buyPromotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"buyPromotedProduct")),(0,i.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L54"},"modules/iosSk2.ts:54")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"clearproducts"},"clearProducts"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearProducts"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearProducts")),(0,i.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L52"},"modules/iosSk2.ts:52")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"cleartransaction"},"clearTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"clearTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"clearTransaction")),(0,i.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L51"},"modules/iosSk2.ts:51")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"disable"},"disable"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"disable"),": () => ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"type-declaration-1"},"Type declaration"),(0,i.yg)("p",null,"\u25b8 (): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h5",{id:"returns-1"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L59"},"modules/iosSk2.ts:59")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"finishtransaction"},"finishTransaction"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"finishTransaction"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"finishTransaction")),(0,i.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L55"},"modules/iosSk2.ts:55")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getavailableitems"},"getAvailableItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getAvailableItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getAvailableItems")),(0,i.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L49"},"modules/iosSk2.ts:49")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getitems"},"getItems"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getItems"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getItems")),(0,i.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L48"},"modules/iosSk2.ts:48")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"getpendingtransactions"},"getPendingTransactions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"getPendingTransactions"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"getPendingTransactions")),(0,i.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L56"},"modules/iosSk2.ts:56")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"presentcoderedemptionsheet"},"presentCodeRedemptionSheet"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"presentCodeRedemptionSheet"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"presentCodeRedemptionSheet")),(0,i.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L57"},"modules/iosSk2.ts:57")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"promotedproduct"},"promotedProduct"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"promotedProduct"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"promotedProduct")),(0,i.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L53"},"modules/iosSk2.ts:53")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"showmanagesubscriptions"},"showManageSubscriptions"),(0,i.yg)("p",null,"\u2022 ",(0,i.yg)("strong",{parentName:"p"},"showManageSubscriptions"),": ",(0,i.yg)("inlineCode",{parentName:"p"},"showManageSubscriptions")),(0,i.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L58"},"modules/iosSk2.ts:58")),(0,i.yg)("h2",{id:"methods-1"},"Methods"),(0,i.yg)("h3",{id:"addlistener"},"addListener"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"addListener"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"eventType"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"addListener for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-1"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"eventType")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-2"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#addlistener"},"addListener")),(0,i.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L12"},"modules/common.ts:12")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"currententitlement"},"currentEntitlement"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"currentEntitlement"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-2"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-3"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L44"},"modules/iosSk2.ts:44")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"endconnection"},"endConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to end the payment provider connection"),(0,i.yg)("h4",{id:"returns-4"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#endconnection"},"endConnection")),(0,i.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L9"},"modules/common.ts:9")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"initconnection"},"initConnection"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"initConnection"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("p",null,"Required method to start a payment provider connection"),(0,i.yg)("h4",{id:"returns-5"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,i.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#initconnection"},"initConnection")),(0,i.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L6"},"modules/common.ts:6")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"isavailable"},"isAvailable"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"isAvailable"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"number")),(0,i.yg)("h4",{id:"returns-6"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"number")),(0,i.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L42"},"modules/iosSk2.ts:42")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"iseligibleforintrooffer"},"isEligibleForIntroOffer"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"isEligibleForIntroOffer"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"groupID"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"parameters-3"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"groupID")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-7"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"Boolean"),">"),(0,i.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L46"},"modules/iosSk2.ts:46")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"latesttransaction"},"latestTransaction"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"latestTransaction"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"parameters-4"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-8"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"TransactionSk2"),">"),(0,i.yg)("h4",{id:"defined-in-19"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L43"},"modules/iosSk2.ts:43")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"removelisteners"},"removeListeners"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"removeListeners"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"count"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("p",null,"removeListeners for NativeEventEmitter"),(0,i.yg)("h4",{id:"parameters-5"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"count")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"number"))))),(0,i.yg)("h4",{id:"returns-9"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"void")),(0,i.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps"),".",(0,i.yg)("a",{parentName:"p",href:"/docs/api/interfaces/NativeModuleProps#removelisteners"},"removeListeners")),(0,i.yg)("h4",{id:"defined-in-20"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/common.ts#L15"},"modules/common.ts:15")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"subscriptionstatus"},"subscriptionStatus"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"subscriptionStatus"),"(",(0,i.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"parameters-6"},"Parameters"),(0,i.yg)("table",null,(0,i.yg)("thead",{parentName:"table"},(0,i.yg)("tr",{parentName:"thead"},(0,i.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,i.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,i.yg)("tbody",{parentName:"table"},(0,i.yg)("tr",{parentName:"tbody"},(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"sku")),(0,i.yg)("td",{parentName:"tr",align:"left"},(0,i.yg)("inlineCode",{parentName:"td"},"string"))))),(0,i.yg)("h4",{id:"returns-10"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"ProductStatus"),"[]",">"),(0,i.yg)("h4",{id:"defined-in-21"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L45"},"modules/iosSk2.ts:45")),(0,i.yg)("hr",null),(0,i.yg)("h3",{id:"sync"},"sync"),(0,i.yg)("p",null,"\u25b8 ",(0,i.yg)("strong",{parentName:"p"},"sync"),"(): ",(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"returns-11"},"Returns"),(0,i.yg)("p",null,(0,i.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,i.yg)("inlineCode",{parentName:"p"},"null"),">"),(0,i.yg)("h4",{id:"defined-in-22"},"Defined in"),(0,i.yg)("p",null,(0,i.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/iosSk2.ts#L47"},"modules/iosSk2.ts:47")))}u.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/f1e3a0a5.8badb10f.js b/assets/js/f1e3a0a5.3ba5e52b.js similarity index 97% rename from assets/js/f1e3a0a5.8badb10f.js rename to assets/js/f1e3a0a5.3ba5e52b.js index c38b7e86d..45330e3da 100644 --- a/assets/js/f1e3a0a5.8badb10f.js +++ b/assets/js/f1e3a0a5.3ba5e52b.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3409],{5680:(e,a,n)=>{n.d(a,{xA:()=>g,yg:()=>u});var t=n(6540);function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function i(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function d(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=t.createContext({}),o=function(e){var a=t.useContext(p),n=a;return e&&(n="function"==typeof e?e(a):d(d({},a),e)),n},g=function(e){var a=o(e.components);return t.createElement(p.Provider,{value:a},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var a=e.children;return t.createElement(t.Fragment,{},a)}},m=t.forwardRef((function(e,a){var n=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,g=l(e,["components","mdxType","originalType","parentName"]),y=o(n),m=r,u=y["".concat(p,".").concat(m)]||y[m]||s[m]||i;return n?t.createElement(u,d(d({ref:a},g),{},{components:n})):t.createElement(u,d({ref:a},g))}));function u(e,a){var n=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var i=n.length,d=new Array(i);d[0]=m;var l={};for(var p in a)hasOwnProperty.call(a,p)&&(l[p]=a[p]);l.originalType=e,l[y]="string"==typeof e?e:r,d[1]=l;for(var o=2;o{n.r(a),n.d(a,{assets:()=>p,contentTitle:()=>d,default:()=>s,frontMatter:()=>i,metadata:()=>l,toc:()=>o});var t=n(8168),r=(n(6540),n(5680));const i={},d=void 0,l={unversionedId:"api/modules/IapAndroid",id:"api/modules/IapAndroid",title:"IapAndroid",description:"react-native-iap / Exports / IapAndroid",source:"@site/docs/api/modules/IapAndroid.md",sourceDirName:"api/modules",slug:"/api/modules/IapAndroid",permalink:"/docs/api/modules/IapAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAmazon",permalink:"/docs/api/modules/IapAmazon"},next:{title:"IapIos",permalink:"/docs/api/modules/IapIos"}},p={},o=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Type Aliases",id:"type-aliases",level:3},{value:"Variables",id:"variables",level:3},{value:"Functions",id:"functions",level:3},{value:"Type Aliases",id:"type-aliases-1",level:2},{value:"BuyItemByType",id:"buyitembytype",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"Variables",id:"variables-1",level:2},{value:"AndroidModule",id:"androidmodule",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"Functions",id:"functions-1",level:2},{value:"acknowledgePurchaseAndroid",id:"acknowledgepurchaseandroid",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"deepLinkToSubscriptionsAndroid",id:"deeplinktosubscriptionsandroid",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"getInstallSourceAndroid",id:"getinstallsourceandroid",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"isFeatureSupported",id:"isfeaturesupported",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"validateReceiptAndroid",id:"validatereceiptandroid",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-6",level:4}],g={toc:o},y="wrapper";function s(e){let{components:a,...n}=e;return(0,r.yg)(y,(0,t.A)({},g,n,{components:a,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapAndroid"),(0,r.yg)("h1",{id:"namespace-iapandroid"},"Namespace: IapAndroid"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"interfaces"},"Interfaces"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},"AndroidModuleProps"))),(0,r.yg)("h3",{id:"type-aliases"},"Type Aliases"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#buyitembytype"},"BuyItemByType"))),(0,r.yg)("h3",{id:"variables"},"Variables"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#androidmodule"},"AndroidModule"))),(0,r.yg)("h3",{id:"functions"},"Functions"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#acknowledgepurchaseandroid"},"acknowledgePurchaseAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#deeplinktosubscriptionsandroid"},"deepLinkToSubscriptionsAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#getinstallsourceandroid"},"getInstallSourceAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#isfeaturesupported"},"isFeatureSupported")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#validatereceiptandroid"},"validateReceiptAndroid"))),(0,r.yg)("h2",{id:"type-aliases-1"},"Type Aliases"),(0,r.yg)("h3",{id:"buyitembytype"},"BuyItemByType"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"BuyItemByType"),": (",(0,r.yg)("inlineCode",{parentName:"p"},"type"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"skus"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#sku"},(0,r.yg)("inlineCode",{parentName:"a"},"Sku")),"[], ",(0,r.yg)("inlineCode",{parentName:"p"},"purchaseToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"replacementModeAndroid"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/ReplacementModesAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"ReplacementModesAndroid"))," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"-1"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedAccountId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedProfileId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"subscriptionOffers"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),"[], ",(0,r.yg)("inlineCode",{parentName:"p"},"isOfferPersonalized"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),") => ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,r.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,r.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,r.yg)("p",null,"\u25b8 (",(0,r.yg)("inlineCode",{parentName:"p"},"type"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"skus"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"purchaseToken"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"replacementModeAndroid"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedAccountId"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedProfileId"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"subscriptionOffers"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"isOfferPersonalized"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,r.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,r.yg)("h5",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"type")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"skus")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("a",{parentName:"td",href:"/docs/api/modules#sku"},(0,r.yg)("inlineCode",{parentName:"a"},"Sku")),"[]")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"purchaseToken")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"replacementModeAndroid")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("a",{parentName:"td",href:"/docs/api/enums/ReplacementModesAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"ReplacementModesAndroid"))," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"-1"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"obfuscatedAccountId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"obfuscatedProfileId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"subscriptionOffers")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"),"[]")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"isOfferPersonalized")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean"))))),(0,r.yg)("h5",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,r.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L38"},"modules/android.ts:38")),(0,r.yg)("h2",{id:"variables-1"},"Variables"),(0,r.yg)("h3",{id:"androidmodule"},"AndroidModule"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Const")," ",(0,r.yg)("strong",{parentName:"p"},"AndroidModule"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AndroidModuleProps"))),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L76"},"modules/android.ts:76")),(0,r.yg)("h2",{id:"functions-1"},"Functions"),(0,r.yg)("h3",{id:"acknowledgepurchaseandroid"},"acknowledgePurchaseAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"acknowledgePurchaseAndroid"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"token"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"void")," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/PurchaseResult"},(0,r.yg)("inlineCode",{parentName:"a"},"PurchaseResult")),">"),(0,r.yg)("p",null,"Acknowledge a product (on Android.) No-op on iOS."),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"token")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object")),(0,r.yg)("td",{parentName:"tr",align:"left"},"The product's token (on Android)")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"token.developerPayload?")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"token.token")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"void")," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/PurchaseResult"},(0,r.yg)("inlineCode",{parentName:"a"},"PurchaseResult")),">"),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L153"},"modules/android.ts:153")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"deeplinktosubscriptionsandroid"},"deepLinkToSubscriptionsAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"deepLinkToSubscriptionsAndroid"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("p",null,"Deep link to subscriptions screen on Android."),(0,r.yg)("h4",{id:"parameters-2"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object")),(0,r.yg)("td",{parentName:"tr",align:"left"},"The product's SKU (on Android)")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku.sku")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L89"},"modules/android.ts:89")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getinstallsourceandroid"},"getInstallSourceAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"getInstallSourceAndroid"),"(): ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/InstallSourceAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"InstallSourceAndroid"))),(0,r.yg)("h4",{id:"returns-3"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/InstallSourceAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"InstallSourceAndroid"))),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L78"},"modules/android.ts:78")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"isfeaturesupported"},"isFeatureSupported"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"isFeatureSupported"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"feature"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Acknowledge a product (on Android.) No-op on iOS."),(0,r.yg)("h4",{id:"parameters-3"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"feature")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"FeatureType")),(0,r.yg)("td",{parentName:"tr",align:"left"},"to be checked")))),(0,r.yg)("h4",{id:"returns-4"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L168"},"modules/android.ts:168")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"validatereceiptandroid"},"validateReceiptAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"validateReceiptAndroid"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("p",null,"Validate receipt for Android. NOTE: This method is here for debugging purposes only. Including\nyour access token in the binary you ship to users is potentially dangerous.\nUse server side validation instead for your production builds"),(0,r.yg)("h4",{id:"parameters-4"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"\xabdestructured\xbb")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"accessToken")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"isSub?")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"packageName")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"productId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"productToken")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns-5"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/modules/android.ts#L112"},"modules/android.ts:112")))}s.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[3409],{5680:(e,a,n)=>{n.d(a,{xA:()=>g,yg:()=>u});var t=n(6540);function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function i(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function d(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var p=t.createContext({}),o=function(e){var a=t.useContext(p),n=a;return e&&(n="function"==typeof e?e(a):d(d({},a),e)),n},g=function(e){var a=o(e.components);return t.createElement(p.Provider,{value:a},e.children)},y="mdxType",s={inlineCode:"code",wrapper:function(e){var a=e.children;return t.createElement(t.Fragment,{},a)}},m=t.forwardRef((function(e,a){var n=e.components,r=e.mdxType,i=e.originalType,p=e.parentName,g=l(e,["components","mdxType","originalType","parentName"]),y=o(n),m=r,u=y["".concat(p,".").concat(m)]||y[m]||s[m]||i;return n?t.createElement(u,d(d({ref:a},g),{},{components:n})):t.createElement(u,d({ref:a},g))}));function u(e,a){var n=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var i=n.length,d=new Array(i);d[0]=m;var l={};for(var p in a)hasOwnProperty.call(a,p)&&(l[p]=a[p]);l.originalType=e,l[y]="string"==typeof e?e:r,d[1]=l;for(var o=2;o{n.r(a),n.d(a,{assets:()=>p,contentTitle:()=>d,default:()=>s,frontMatter:()=>i,metadata:()=>l,toc:()=>o});var t=n(8168),r=(n(6540),n(5680));const i={},d=void 0,l={unversionedId:"api/modules/IapAndroid",id:"api/modules/IapAndroid",title:"IapAndroid",description:"react-native-iap / Exports / IapAndroid",source:"@site/docs/api/modules/IapAndroid.md",sourceDirName:"api/modules",slug:"/api/modules/IapAndroid",permalink:"/docs/api/modules/IapAndroid",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules/IapAndroid.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapAmazon",permalink:"/docs/api/modules/IapAmazon"},next:{title:"IapIos",permalink:"/docs/api/modules/IapIos"}},p={},o=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"Interfaces",id:"interfaces",level:3},{value:"Type Aliases",id:"type-aliases",level:3},{value:"Variables",id:"variables",level:3},{value:"Functions",id:"functions",level:3},{value:"Type Aliases",id:"type-aliases-1",level:2},{value:"BuyItemByType",id:"buyitembytype",level:3},{value:"Type declaration",id:"type-declaration",level:4},{value:"Parameters",id:"parameters",level:5},{value:"Returns",id:"returns",level:5},{value:"Defined in",id:"defined-in",level:4},{value:"Variables",id:"variables-1",level:2},{value:"AndroidModule",id:"androidmodule",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"Functions",id:"functions-1",level:2},{value:"acknowledgePurchaseAndroid",id:"acknowledgepurchaseandroid",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"deepLinkToSubscriptionsAndroid",id:"deeplinktosubscriptionsandroid",level:3},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-3",level:4},{value:"getInstallSourceAndroid",id:"getinstallsourceandroid",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-4",level:4},{value:"isFeatureSupported",id:"isfeaturesupported",level:3},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-5",level:4},{value:"validateReceiptAndroid",id:"validatereceiptandroid",level:3},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-6",level:4}],g={toc:o},y="wrapper";function s(e){let{components:a,...n}=e;return(0,r.yg)(y,(0,t.A)({},g,n,{components:a,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / IapAndroid"),(0,r.yg)("h1",{id:"namespace-iapandroid"},"Namespace: IapAndroid"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"interfaces"},"Interfaces"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},"AndroidModuleProps"))),(0,r.yg)("h3",{id:"type-aliases"},"Type Aliases"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#buyitembytype"},"BuyItemByType"))),(0,r.yg)("h3",{id:"variables"},"Variables"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#androidmodule"},"AndroidModule"))),(0,r.yg)("h3",{id:"functions"},"Functions"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#acknowledgepurchaseandroid"},"acknowledgePurchaseAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#deeplinktosubscriptionsandroid"},"deepLinkToSubscriptionsAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#getinstallsourceandroid"},"getInstallSourceAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#isfeaturesupported"},"isFeatureSupported")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid#validatereceiptandroid"},"validateReceiptAndroid"))),(0,r.yg)("h2",{id:"type-aliases-1"},"Type Aliases"),(0,r.yg)("h3",{id:"buyitembytype"},"BuyItemByType"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"BuyItemByType"),": (",(0,r.yg)("inlineCode",{parentName:"p"},"type"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"skus"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#sku"},(0,r.yg)("inlineCode",{parentName:"a"},"Sku")),"[], ",(0,r.yg)("inlineCode",{parentName:"p"},"purchaseToken"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"replacementModeAndroid"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/ReplacementModesAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"ReplacementModesAndroid"))," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"-1"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedAccountId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedProfileId"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"undefined"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"subscriptionOffers"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string"),"[], ",(0,r.yg)("inlineCode",{parentName:"p"},"isOfferPersonalized"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),") => ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,r.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,r.yg)("h4",{id:"type-declaration"},"Type declaration"),(0,r.yg)("p",null,"\u25b8 (",(0,r.yg)("inlineCode",{parentName:"p"},"type"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"skus"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"purchaseToken"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"replacementModeAndroid"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedAccountId"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"obfuscatedProfileId"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"subscriptionOffers"),", ",(0,r.yg)("inlineCode",{parentName:"p"},"isOfferPersonalized"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,r.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,r.yg)("h5",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"type")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"skus")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("a",{parentName:"td",href:"/docs/api/modules#sku"},(0,r.yg)("inlineCode",{parentName:"a"},"Sku")),"[]")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"purchaseToken")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"replacementModeAndroid")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("a",{parentName:"td",href:"/docs/api/enums/ReplacementModesAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"ReplacementModesAndroid"))," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"-1"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"obfuscatedAccountId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"obfuscatedProfileId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"td"},"undefined"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"subscriptionOffers")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"),"[]")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"isOfferPersonalized")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean"))))),(0,r.yg)("h5",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#purchase"},(0,r.yg)("inlineCode",{parentName:"a"},"Purchase")),">"),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L38"},"modules/android.ts:38")),(0,r.yg)("h2",{id:"variables-1"},"Variables"),(0,r.yg)("h3",{id:"androidmodule"},"AndroidModule"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Const")," ",(0,r.yg)("strong",{parentName:"p"},"AndroidModule"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},(0,r.yg)("inlineCode",{parentName:"a"},"AndroidModuleProps"))),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L76"},"modules/android.ts:76")),(0,r.yg)("h2",{id:"functions-1"},"Functions"),(0,r.yg)("h3",{id:"acknowledgepurchaseandroid"},"acknowledgePurchaseAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"acknowledgePurchaseAndroid"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"token"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"void")," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/PurchaseResult"},(0,r.yg)("inlineCode",{parentName:"a"},"PurchaseResult")),">"),(0,r.yg)("p",null,"Acknowledge a product (on Android.) No-op on iOS."),(0,r.yg)("h4",{id:"parameters-1"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"token")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object")),(0,r.yg)("td",{parentName:"tr",align:"left"},"The product's token (on Android)")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"token.developerPayload?")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"token.token")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},"void")," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/PurchaseResult"},(0,r.yg)("inlineCode",{parentName:"a"},"PurchaseResult")),">"),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L153"},"modules/android.ts:153")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"deeplinktosubscriptionsandroid"},"deepLinkToSubscriptionsAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"deepLinkToSubscriptionsAndroid"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"sku"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("p",null,"Deep link to subscriptions screen on Android."),(0,r.yg)("h4",{id:"parameters-2"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object")),(0,r.yg)("td",{parentName:"tr",align:"left"},"The product's SKU (on Android)")),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"sku.sku")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string")),(0,r.yg)("td",{parentName:"tr",align:"left"},"-")))),(0,r.yg)("h4",{id:"returns-2"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L89"},"modules/android.ts:89")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getinstallsourceandroid"},"getInstallSourceAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"getInstallSourceAndroid"),"(): ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/InstallSourceAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"InstallSourceAndroid"))),(0,r.yg)("h4",{id:"returns-3"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"/docs/api/enums/InstallSourceAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"InstallSourceAndroid"))),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L78"},"modules/android.ts:78")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"isfeaturesupported"},"isFeatureSupported"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"isFeatureSupported"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"feature"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Acknowledge a product (on Android.) No-op on iOS."),(0,r.yg)("h4",{id:"parameters-3"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Description"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"feature")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"FeatureType")),(0,r.yg)("td",{parentName:"tr",align:"left"},"to be checked")))),(0,r.yg)("h4",{id:"returns-4"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L168"},"modules/android.ts:168")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"validatereceiptandroid"},"validateReceiptAndroid"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"validateReceiptAndroid"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("p",null,"Validate receipt for Android. NOTE: This method is here for debugging purposes only. Including\nyour access token in the binary you ship to users is potentially dangerous.\nUse server side validation instead for your production builds"),(0,r.yg)("h4",{id:"parameters-4"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"\xabdestructured\xbb")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"accessToken")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"isSub?")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"packageName")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"productId")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"productToken")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns-5"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"ReceiptType"),">"),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/modules/android.ts#L112"},"modules/android.ts:112")))}s.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/f290e843.2033d9e4.js b/assets/js/f290e843.11e56ae8.js similarity index 93% rename from assets/js/f290e843.2033d9e4.js rename to assets/js/f290e843.11e56ae8.js index 84893236c..0a8810ffa 100644 --- a/assets/js/f290e843.2033d9e4.js +++ b/assets/js/f290e843.11e56ae8.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7640],{5680:(e,i,n)=>{n.d(i,{xA:()=>c,yg:()=>g});var r=n(6540);function t(e,i,n){return i in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n,e}function a(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var i=1;i=0||(t[n]=e[n]);return t}(e,i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var d=r.createContext({}),l=function(e){var i=r.useContext(d),n=i;return e&&(n="function"==typeof e?e(i):o(o({},i),e)),n},c=function(e){var i=l(e.components);return r.createElement(d.Provider,{value:i},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var i=e.children;return r.createElement(r.Fragment,{},i)}},u=r.forwardRef((function(e,i){var n=e.components,t=e.mdxType,a=e.originalType,d=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=l(n),u=t,g=s["".concat(d,".").concat(u)]||s[u]||y[u]||a;return n?r.createElement(g,o(o({ref:i},c),{},{components:n})):r.createElement(g,o({ref:i},c))}));function g(e,i){var n=arguments,t=i&&i.mdxType;if("string"==typeof e||t){var a=n.length,o=new Array(a);o[0]=u;var p={};for(var d in i)hasOwnProperty.call(i,d)&&(p[d]=i[d]);p.originalType=e,p[s]="string"==typeof e?e:t,o[1]=p;for(var l=2;l{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>o,default:()=>y,frontMatter:()=>a,metadata:()=>p,toc:()=>l});var r=n(8168),t=(n(6540),n(5680));const a={},o=void 0,p={unversionedId:"api/interfaces/SubscriptionIOS",id:"api/interfaces/SubscriptionIOS",title:"SubscriptionIOS",description:"react-native-iap / Exports / SubscriptionIOS",source:"@site/docs/api/interfaces/SubscriptionIOS.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionIOS",permalink:"/docs/api/interfaces/SubscriptionIOS",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionIOS.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionAndroid",permalink:"/docs/api/interfaces/SubscriptionAndroid"},next:{title:"SubscriptionOffer",permalink:"/docs/api/interfaces/SubscriptionOffer"}},d={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"discounts",id:"discounts",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"introductoryPrice",id:"introductoryprice",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"introductoryPriceAsAmountIOS",id:"introductorypriceasamountios",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"introductoryPriceNumberOfPeriodsIOS",id:"introductorypricenumberofperiodsios",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"introductoryPricePaymentModeIOS",id:"introductorypricepaymentmodeios",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"introductoryPriceSubscriptionPeriodIOS",id:"introductorypricesubscriptionperiodios",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"platform",id:"platform",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"subscriptionPeriodNumberIOS",id:"subscriptionperiodnumberios",level:3},{value:"Defined in",id:"defined-in-15",level:4},{value:"subscriptionPeriodUnitIOS",id:"subscriptionperiodunitios",level:3},{value:"Defined in",id:"defined-in-16",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-18",level:4}],c={toc:l},s="wrapper";function y(e){let{components:i,...n}=e;return(0,t.yg)(s,(0,r.A)({},c,n,{components:i,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionIOS"),(0,t.yg)("h1",{id:"interface-subscriptionios"},"Interface: SubscriptionIOS"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"SubscriptionIOS"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#discounts"},"discounts")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductoryprice"},"introductoryPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypriceasamountios"},"introductoryPriceAsAmountIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypricenumberofperiodsios"},"introductoryPriceNumberOfPeriodsIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypricepaymentmodeios"},"introductoryPricePaymentModeIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypricesubscriptionperiodios"},"introductoryPriceSubscriptionPeriodIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#platform"},"platform")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#subscriptionperiodnumberios"},"subscriptionPeriodNumberIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#subscriptionperiodunitios"},"subscriptionPeriodUnitIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"discounts"},"discounts"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"discounts"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/Discount"},(0,t.yg)("inlineCode",{parentName:"a"},"Discount")),"[]"),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L197"},"types/index.ts:197")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductoryprice"},"introductoryPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L198"},"types/index.ts:198")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypriceasamountios"},"introductoryPriceAsAmountIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPriceAsAmountIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L199"},"types/index.ts:199")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypricenumberofperiodsios"},"introductoryPriceNumberOfPeriodsIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPriceNumberOfPeriodsIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L205"},"types/index.ts:205")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypricepaymentmodeios"},"introductoryPricePaymentModeIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPricePaymentModeIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'""')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"FREETRIAL"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"PAYASYOUGO"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"PAYUPFRONT"')),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L200"},"types/index.ts:200")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypricesubscriptionperiodios"},"introductoryPriceSubscriptionPeriodIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPriceSubscriptionPeriodIOS"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules#subscriptioniosperiod"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionIosPeriod"))),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L206"},"types/index.ts:206")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"platform"},"platform"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"platform"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/SubscriptionPlatform#ios"},(0,t.yg)("inlineCode",{parentName:"a"},"ios"))),(0,t.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L195"},"types/index.ts:195")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"subscriptionperiodnumberios"},"subscriptionPeriodNumberIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"subscriptionPeriodNumberIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L208"},"types/index.ts:208")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"subscriptionperiodunitios"},"subscriptionPeriodUnitIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"subscriptionPeriodUnitIOS"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules#subscriptioniosperiod"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionIosPeriod"))),(0,t.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L209"},"types/index.ts:209")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L196"},"types/index.ts:196")))}y.isMDXComponent=!0}}]); \ No newline at end of file +"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[7640],{5680:(e,i,n)=>{n.d(i,{xA:()=>c,yg:()=>g});var r=n(6540);function t(e,i,n){return i in e?Object.defineProperty(e,i,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[i]=n,e}function a(e,i){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);i&&(r=r.filter((function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var i=1;i=0||(t[n]=e[n]);return t}(e,i);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(t[n]=e[n])}return t}var d=r.createContext({}),l=function(e){var i=r.useContext(d),n=i;return e&&(n="function"==typeof e?e(i):o(o({},i),e)),n},c=function(e){var i=l(e.components);return r.createElement(d.Provider,{value:i},e.children)},s="mdxType",y={inlineCode:"code",wrapper:function(e){var i=e.children;return r.createElement(r.Fragment,{},i)}},u=r.forwardRef((function(e,i){var n=e.components,t=e.mdxType,a=e.originalType,d=e.parentName,c=p(e,["components","mdxType","originalType","parentName"]),s=l(n),u=t,g=s["".concat(d,".").concat(u)]||s[u]||y[u]||a;return n?r.createElement(g,o(o({ref:i},c),{},{components:n})):r.createElement(g,o({ref:i},c))}));function g(e,i){var n=arguments,t=i&&i.mdxType;if("string"==typeof e||t){var a=n.length,o=new Array(a);o[0]=u;var p={};for(var d in i)hasOwnProperty.call(i,d)&&(p[d]=i[d]);p.originalType=e,p[s]="string"==typeof e?e:t,o[1]=p;for(var l=2;l{n.r(i),n.d(i,{assets:()=>d,contentTitle:()=>o,default:()=>y,frontMatter:()=>a,metadata:()=>p,toc:()=>l});var r=n(8168),t=(n(6540),n(5680));const a={},o=void 0,p={unversionedId:"api/interfaces/SubscriptionIOS",id:"api/interfaces/SubscriptionIOS",title:"SubscriptionIOS",description:"react-native-iap / Exports / SubscriptionIOS",source:"@site/docs/api/interfaces/SubscriptionIOS.md",sourceDirName:"api/interfaces",slug:"/api/interfaces/SubscriptionIOS",permalink:"/docs/api/interfaces/SubscriptionIOS",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/interfaces/SubscriptionIOS.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"SubscriptionAndroid",permalink:"/docs/api/interfaces/SubscriptionAndroid"},next:{title:"SubscriptionOffer",permalink:"/docs/api/interfaces/SubscriptionOffer"}},d={},l=[{value:"Hierarchy",id:"hierarchy",level:2},{value:"Table of contents",id:"table-of-contents",level:2},{value:"Properties",id:"properties",level:3},{value:"Properties",id:"properties-1",level:2},{value:"countryCode",id:"countrycode",level:3},{value:"Inherited from",id:"inherited-from",level:4},{value:"Defined in",id:"defined-in",level:4},{value:"currency",id:"currency",level:3},{value:"Inherited from",id:"inherited-from-1",level:4},{value:"Defined in",id:"defined-in-1",level:4},{value:"description",id:"description",level:3},{value:"Inherited from",id:"inherited-from-2",level:4},{value:"Defined in",id:"defined-in-2",level:4},{value:"discounts",id:"discounts",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"introductoryPrice",id:"introductoryprice",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"introductoryPriceAsAmountIOS",id:"introductorypriceasamountios",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"introductoryPriceNumberOfPeriodsIOS",id:"introductorypricenumberofperiodsios",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"introductoryPricePaymentModeIOS",id:"introductorypricepaymentmodeios",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"introductoryPriceSubscriptionPeriodIOS",id:"introductorypricesubscriptionperiodios",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"localizedPrice",id:"localizedprice",level:3},{value:"Inherited from",id:"inherited-from-3",level:4},{value:"Defined in",id:"defined-in-9",level:4},{value:"originalPrice",id:"originalprice",level:3},{value:"Inherited from",id:"inherited-from-4",level:4},{value:"Defined in",id:"defined-in-10",level:4},{value:"platform",id:"platform",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"price",id:"price",level:3},{value:"Inherited from",id:"inherited-from-5",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"productId",id:"productid",level:3},{value:"Inherited from",id:"inherited-from-6",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"productIds",id:"productids",level:3},{value:"Inherited from",id:"inherited-from-7",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"subscriptionPeriodNumberIOS",id:"subscriptionperiodnumberios",level:3},{value:"Defined in",id:"defined-in-15",level:4},{value:"subscriptionPeriodUnitIOS",id:"subscriptionperiodunitios",level:3},{value:"Defined in",id:"defined-in-16",level:4},{value:"title",id:"title",level:3},{value:"Inherited from",id:"inherited-from-8",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"type",id:"type",level:3},{value:"Overrides",id:"overrides",level:4},{value:"Defined in",id:"defined-in-18",level:4}],c={toc:l},s="wrapper";function y(e){let{components:i,...n}=e;return(0,t.yg)(s,(0,r.A)({},c,n,{components:i,mdxType:"MDXLayout"}),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"../.."},"react-native-iap")," / ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules"},"Exports")," / SubscriptionIOS"),(0,t.yg)("h1",{id:"interface-subscriptionios"},"Interface: SubscriptionIOS"),(0,t.yg)("h2",{id:"hierarchy"},"Hierarchy"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("p",{parentName:"li"},(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},(0,t.yg)("inlineCode",{parentName:"a"},"ProductCommon"))),(0,t.yg)("p",{parentName:"li"},"\u21b3 ",(0,t.yg)("strong",{parentName:"p"},(0,t.yg)("inlineCode",{parentName:"strong"},"SubscriptionIOS"))))),(0,t.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,t.yg)("h3",{id:"properties"},"Properties"),(0,t.yg)("ul",null,(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#countrycode"},"countryCode")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#currency"},"currency")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#description"},"description")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#discounts"},"discounts")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductoryprice"},"introductoryPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypriceasamountios"},"introductoryPriceAsAmountIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypricenumberofperiodsios"},"introductoryPriceNumberOfPeriodsIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypricepaymentmodeios"},"introductoryPricePaymentModeIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#introductorypricesubscriptionperiodios"},"introductoryPriceSubscriptionPeriodIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#localizedprice"},"localizedPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#originalprice"},"originalPrice")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#platform"},"platform")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#price"},"price")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#productid"},"productId")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#productids"},"productIds")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#subscriptionperiodnumberios"},"subscriptionPeriodNumberIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#subscriptionperiodunitios"},"subscriptionPeriodUnitIOS")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#title"},"title")),(0,t.yg)("li",{parentName:"ul"},(0,t.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS#type"},"type"))),(0,t.yg)("h2",{id:"properties-1"},"Properties"),(0,t.yg)("h3",{id:"countrycode"},"countryCode"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"countryCode"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#countrycode"},"countryCode")),(0,t.yg)("h4",{id:"defined-in"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L64"},"types/index.ts:64")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"currency"},"currency"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"currency"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-1"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#currency"},"currency")),(0,t.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L61"},"types/index.ts:61")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"description"},"description"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"description"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-2"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#description"},"description")),(0,t.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L59"},"types/index.ts:59")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"discounts"},"discounts"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"discounts"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/Discount"},(0,t.yg)("inlineCode",{parentName:"a"},"Discount")),"[]"),(0,t.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L197"},"types/index.ts:197")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductoryprice"},"introductoryPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L198"},"types/index.ts:198")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypriceasamountios"},"introductoryPriceAsAmountIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPriceAsAmountIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L199"},"types/index.ts:199")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypricenumberofperiodsios"},"introductoryPriceNumberOfPeriodsIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPriceNumberOfPeriodsIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L205"},"types/index.ts:205")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypricepaymentmodeios"},"introductoryPricePaymentModeIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPricePaymentModeIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'""')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"FREETRIAL"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"PAYASYOUGO"')," ","|"," ",(0,t.yg)("inlineCode",{parentName:"p"},'"PAYUPFRONT"')),(0,t.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L200"},"types/index.ts:200")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"introductorypricesubscriptionperiodios"},"introductoryPriceSubscriptionPeriodIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"introductoryPriceSubscriptionPeriodIOS"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules#subscriptioniosperiod"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionIosPeriod"))),(0,t.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L206"},"types/index.ts:206")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"localizedprice"},"localizedPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"localizedPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-3"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#localizedprice"},"localizedPrice")),(0,t.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L62"},"types/index.ts:62")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"originalprice"},"originalPrice"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"originalPrice"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-4"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#originalprice"},"originalPrice")),(0,t.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L63"},"types/index.ts:63")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"platform"},"platform"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"platform"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/enums/SubscriptionPlatform#ios"},(0,t.yg)("inlineCode",{parentName:"a"},"ios"))),(0,t.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L195"},"types/index.ts:195")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"price"},"price"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"price"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-5"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#price"},"price")),(0,t.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L60"},"types/index.ts:60")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productid"},"productId"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"productId"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-6"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productid"},"productId")),(0,t.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L56"},"types/index.ts:56")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"productids"},"productIds"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"productIds"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string"),"[]"),(0,t.yg)("h4",{id:"inherited-from-7"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#productids"},"productIds")),(0,t.yg)("h4",{id:"defined-in-14"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L57"},"types/index.ts:57")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"subscriptionperiodnumberios"},"subscriptionPeriodNumberIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"subscriptionPeriodNumberIOS"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"defined-in-15"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L208"},"types/index.ts:208")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"subscriptionperiodunitios"},"subscriptionPeriodUnitIOS"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("inlineCode",{parentName:"p"},"Optional")," ",(0,t.yg)("strong",{parentName:"p"},"subscriptionPeriodUnitIOS"),": ",(0,t.yg)("a",{parentName:"p",href:"/docs/api/modules#subscriptioniosperiod"},(0,t.yg)("inlineCode",{parentName:"a"},"SubscriptionIosPeriod"))),(0,t.yg)("h4",{id:"defined-in-16"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L209"},"types/index.ts:209")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"title"},"title"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"title"),": ",(0,t.yg)("inlineCode",{parentName:"p"},"string")),(0,t.yg)("h4",{id:"inherited-from-8"},"Inherited from"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#title"},"title")),(0,t.yg)("h4",{id:"defined-in-17"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L58"},"types/index.ts:58")),(0,t.yg)("hr",null),(0,t.yg)("h3",{id:"type"},"type"),(0,t.yg)("p",null,"\u2022 ",(0,t.yg)("strong",{parentName:"p"},"type"),": ",(0,t.yg)("inlineCode",{parentName:"p"},'"subs"')),(0,t.yg)("h4",{id:"overrides"},"Overrides"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon"),".",(0,t.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductCommon#type"},"type")),(0,t.yg)("h4",{id:"defined-in-18"},"Defined in"),(0,t.yg)("p",null,(0,t.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/b7aa8fa/src/types/index.ts#L196"},"types/index.ts:196")))}y.isMDXComponent=!0}}]); \ No newline at end of file diff --git a/assets/js/f6aebfbf.e2020fe5.js b/assets/js/f6aebfbf.1d3bc218.js similarity index 97% rename from assets/js/f6aebfbf.e2020fe5.js rename to assets/js/f6aebfbf.1d3bc218.js index cb32cf2b4..735f1f60e 100644 --- a/assets/js/f6aebfbf.e2020fe5.js +++ b/assets/js/f6aebfbf.1d3bc218.js @@ -1 +1 @@ -"use strict";(self.webpackChunkdocs=self.webpackChunkdocs||[]).push([[2649],{5680:(e,a,n)=>{n.d(a,{xA:()=>d,yg:()=>y});var t=n(6540);function r(e,a,n){return a in e?Object.defineProperty(e,a,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[a]=n,e}function i(e,a){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(e);a&&(t=t.filter((function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable}))),n.push.apply(n,t)}return n}function l(e){for(var a=1;a=0||(r[n]=e[n]);return r}(e,a);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(t=0;t=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}var o=t.createContext({}),p=function(e){var a=t.useContext(o),n=a;return e&&(n="function"==typeof e?e(a):l(l({},a),e)),n},d=function(e){var a=p(e.components);return t.createElement(o.Provider,{value:a},e.children)},u="mdxType",g={inlineCode:"code",wrapper:function(e){var a=e.children;return t.createElement(t.Fragment,{},a)}},c=t.forwardRef((function(e,a){var n=e.components,r=e.mdxType,i=e.originalType,o=e.parentName,d=s(e,["components","mdxType","originalType","parentName"]),u=p(n),c=r,y=u["".concat(o,".").concat(c)]||u[c]||g[c]||i;return n?t.createElement(y,l(l({ref:a},d),{},{components:n})):t.createElement(y,l({ref:a},d))}));function y(e,a){var n=arguments,r=a&&a.mdxType;if("string"==typeof e||r){var i=n.length,l=new Array(i);l[0]=c;var s={};for(var o in a)hasOwnProperty.call(a,o)&&(s[o]=a[o]);s.originalType=e,s[u]="string"==typeof e?e:r,l[1]=s;for(var p=2;p{n.r(a),n.d(a,{assets:()=>o,contentTitle:()=>l,default:()=>g,frontMatter:()=>i,metadata:()=>s,toc:()=>p});var t=n(8168),r=(n(6540),n(5680));const i={},l=void 0,s={unversionedId:"api/modules",id:"api/modules",title:"modules",description:"react-native-iap / Exports",source:"@site/docs/api/modules.md",sourceDirName:"api",slug:"/api/modules",permalink:"/docs/api/modules",draft:!1,editUrl:"https://github.com/hyochan/react-native-iap/edit/main/docs/docs/api/modules.md",tags:[],version:"current",frontMatter:{},sidebar:"tutorialSidebar",previous:{title:"IapIosSk2",permalink:"/docs/api/modules/IapIosSk2"},next:{title:"FAQ",permalink:"/docs/faq"}},o={},p=[{value:"Table of contents",id:"table-of-contents",level:2},{value:"References",id:"references",level:3},{value:"Namespaces",id:"namespaces",level:3},{value:"Enumerations",id:"enumerations",level:3},{value:"Classes",id:"classes",level:3},{value:"Interfaces",id:"interfaces",level:3},{value:"Type Aliases",id:"type-aliases",level:3},{value:"Variables",id:"variables",level:3},{value:"Functions",id:"functions",level:3},{value:"References",id:"references-1",level:2},{value:"AmazonModule",id:"amazonmodule",level:3},{value:"AmazonModuleProps",id:"amazonmoduleprops",level:3},{value:"AndroidModule",id:"androidmodule",level:3},{value:"AndroidModuleProps",id:"androidmoduleprops",level:3},{value:"BuyItemByType",id:"buyitembytype",level:3},{value:"BuyProduct",id:"buyproduct",level:3},{value:"IosModuleProps",id:"iosmoduleprops",level:3},{value:"acknowledgePurchaseAndroid",id:"acknowledgepurchaseandroid",level:3},{value:"buyPromotedProductIOS",id:"buypromotedproductios",level:3},{value:"clearProductsIOS",id:"clearproductsios",level:3},{value:"clearTransactionIOS",id:"cleartransactionios",level:3},{value:"deepLinkToSubscriptionsAmazon",id:"deeplinktosubscriptionsamazon",level:3},{value:"deepLinkToSubscriptionsAndroid",id:"deeplinktosubscriptionsandroid",level:3},{value:"deepLinkToSubscriptionsIos",id:"deeplinktosubscriptionsios",level:3},{value:"getInstallSourceAndroid",id:"getinstallsourceandroid",level:3},{value:"getPendingPurchasesIOS",id:"getpendingpurchasesios",level:3},{value:"getPromotedProductIOS",id:"getpromotedproductios",level:3},{value:"getReceiptIOS",id:"getreceiptios",level:3},{value:"isFeatureSupported",id:"isfeaturesupported",level:3},{value:"presentCodeRedemptionSheetIOS",id:"presentcoderedemptionsheetios",level:3},{value:"validateReceiptAmazon",id:"validatereceiptamazon",level:3},{value:"validateReceiptAndroid",id:"validatereceiptandroid",level:3},{value:"validateReceiptIos",id:"validatereceiptios",level:3},{value:"verifyLicense",id:"verifylicense",level:3},{value:"Type Aliases",id:"type-aliases-1",level:2},{value:"Product",id:"product",level:3},{value:"Defined in",id:"defined-in",level:4},{value:"Purchase",id:"purchase",level:3},{value:"Defined in",id:"defined-in-1",level:4},{value:"RequestPurchase",id:"requestpurchase",level:3},{value:"Defined in",id:"defined-in-2",level:4},{value:"RequestPurchaseAmazon",id:"requestpurchaseamazon",level:3},{value:"Defined in",id:"defined-in-3",level:4},{value:"RequestSubscription",id:"requestsubscription",level:3},{value:"Defined in",id:"defined-in-4",level:4},{value:"RequestSubscriptionAmazon",id:"requestsubscriptionamazon",level:3},{value:"Defined in",id:"defined-in-5",level:4},{value:"RequestSubscriptionIOS",id:"requestsubscriptionios",level:3},{value:"Defined in",id:"defined-in-6",level:4},{value:"STOREKIT_OPTIONS",id:"storekit_options",level:3},{value:"Defined in",id:"defined-in-7",level:4},{value:"Sku",id:"sku",level:3},{value:"Defined in",id:"defined-in-8",level:4},{value:"Subscription",id:"subscription",level:3},{value:"Defined in",id:"defined-in-9",level:4},{value:"SubscriptionIosPeriod",id:"subscriptioniosperiod",level:3},{value:"Defined in",id:"defined-in-10",level:4},{value:"Variables",id:"variables-1",level:2},{value:"PROMOTED_PRODUCT",id:"promoted_product",level:3},{value:"Defined in",id:"defined-in-11",level:4},{value:"Functions",id:"functions-1",level:2},{value:"deepLinkToSubscriptions",id:"deeplinktosubscriptions",level:3},{value:"Parameters",id:"parameters",level:4},{value:"Returns",id:"returns",level:4},{value:"Defined in",id:"defined-in-12",level:4},{value:"endConnection",id:"endconnection",level:3},{value:"Returns",id:"returns-1",level:4},{value:"Defined in",id:"defined-in-13",level:4},{value:"finishTransaction",id:"finishtransaction",level:3},{value:"Parameters",id:"parameters-1",level:4},{value:"Returns",id:"returns-2",level:4},{value:"Defined in",id:"defined-in-14",level:4},{value:"flushFailedPurchasesCachedAsPendingAndroid",id:"flushfailedpurchasescachedaspendingandroid",level:3},{value:"Returns",id:"returns-3",level:4},{value:"Defined in",id:"defined-in-15",level:4},{value:"getAvailablePurchases",id:"getavailablepurchases",level:3},{value:"Usage",id:"usage",level:2},{value:"Restoring purchases",id:"restoring-purchases",level:2},{value:"Parameters",id:"parameters-2",level:4},{value:"Returns",id:"returns-4",level:4},{value:"Defined in",id:"defined-in-16",level:4},{value:"getProducts",id:"getproducts",level:3},{value:"Usage",id:"usage-1",level:2},{value:"Parameters",id:"parameters-3",level:4},{value:"Returns",id:"returns-5",level:4},{value:"Defined in",id:"defined-in-17",level:4},{value:"getPurchaseHistory",id:"getpurchasehistory",level:3},{value:"Usage",id:"usage-2",level:2},{value:"Parameters",id:"parameters-4",level:4},{value:"Returns",id:"returns-6",level:4},{value:"Defined in",id:"defined-in-18",level:4},{value:"getSubscriptions",id:"getsubscriptions",level:3},{value:"Usage",id:"usage-3",level:2},{value:"Parameters",id:"parameters-5",level:4},{value:"Returns",id:"returns-7",level:4},{value:"Defined in",id:"defined-in-19",level:4},{value:"initConnection",id:"initconnection",level:3},{value:"Usage",id:"usage-4",level:2},{value:"Returns",id:"returns-8",level:4},{value:"Defined in",id:"defined-in-20",level:4},{value:"isIosStorekit2",id:"isiosstorekit2",level:3},{value:"Returns",id:"returns-9",level:4},{value:"Defined in",id:"defined-in-21",level:4},{value:"promotedProductListener",id:"promotedproductlistener",level:3},{value:"Signature",id:"signature",level:2},{value:"Usage",id:"usage-5",level:2},{value:"Parameters",id:"parameters-6",level:4},{value:"Returns",id:"returns-10",level:4},{value:"Defined in",id:"defined-in-22",level:4},{value:"purchaseErrorListener",id:"purchaseerrorlistener",level:3},{value:"Signature",id:"signature-1",level:2},{value:"Usage",id:"usage-6",level:2},{value:"Parameters",id:"parameters-7",level:4},{value:"Returns",id:"returns-11",level:4},{value:"Defined in",id:"defined-in-23",level:4},{value:"purchaseUpdatedListener",id:"purchaseupdatedlistener",level:3},{value:"Signature",id:"signature-2",level:2},{value:"Usage",id:"usage-7",level:2},{value:"Parameters",id:"parameters-8",level:4},{value:"Returns",id:"returns-12",level:4},{value:"Defined in",id:"defined-in-24",level:4},{value:"requestPurchase",id:"requestpurchase-1",level:3},{value:"Signature",id:"signature-3",level:2},{value:"Usage",id:"usage-8",level:2},{value:"Parameters",id:"parameters-9",level:4},{value:"Returns",id:"returns-13",level:4},{value:"Defined in",id:"defined-in-25",level:4},{value:"requestSubscription",id:"requestsubscription-1",level:3},{value:"Signature",id:"signature-4",level:2},{value:"Usage",id:"usage-9",level:2},{value:"Parameters",id:"parameters-10",level:4},{value:"Returns",id:"returns-14",level:4},{value:"Defined in",id:"defined-in-26",level:4},{value:"setup",id:"setup",level:3},{value:"Parameters",id:"parameters-11",level:4},{value:"Returns",id:"returns-15",level:4},{value:"Defined in",id:"defined-in-27",level:4},{value:"transactionListener",id:"transactionlistener",level:3},{value:"Signature",id:"signature-5",level:2},{value:"Usage",id:"usage-10",level:2},{value:"Parameters",id:"parameters-12",level:4},{value:"Returns",id:"returns-16",level:4},{value:"Defined in",id:"defined-in-28",level:4},{value:"useIAP",id:"useiap",level:3},{value:"Returns",id:"returns-17",level:4},{value:"Defined in",id:"defined-in-29",level:4},{value:"useIAPContext",id:"useiapcontext",level:3},{value:"Returns",id:"returns-18",level:4},{value:"Defined in",id:"defined-in-30",level:4},{value:"withIAPContext",id:"withiapcontext",level:3},{value:"Type parameters",id:"type-parameters",level:4},{value:"Parameters",id:"parameters-13",level:4},{value:"Returns",id:"returns-19",level:4},{value:"Parameters",id:"parameters-14",level:5},{value:"Returns",id:"returns-20",level:5},{value:"Defined in",id:"defined-in-31",level:4}],d={toc:p},u="wrapper";function g(e){let{components:a,...n}=e;return(0,r.yg)(u,(0,t.A)({},d,n,{components:a,mdxType:"MDXLayout"}),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:".."},"react-native-iap")," / Exports"),(0,r.yg)("h1",{id:"react-native-iap"},"react-native-iap"),(0,r.yg)("h2",{id:"table-of-contents"},"Table of contents"),(0,r.yg)("h3",{id:"references"},"References"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#amazonmodule"},"AmazonModule")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#amazonmoduleprops"},"AmazonModuleProps")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#androidmodule"},"AndroidModule")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#androidmoduleprops"},"AndroidModuleProps")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#buyitembytype"},"BuyItemByType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#buyproduct"},"BuyProduct")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#iosmoduleprops"},"IosModuleProps")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#acknowledgepurchaseandroid"},"acknowledgePurchaseAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#buypromotedproductios"},"buyPromotedProductIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#clearproductsios"},"clearProductsIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#cleartransactionios"},"clearTransactionIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#deeplinktosubscriptionsamazon"},"deepLinkToSubscriptionsAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#deeplinktosubscriptionsandroid"},"deepLinkToSubscriptionsAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#deeplinktosubscriptionsios"},"deepLinkToSubscriptionsIos")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getinstallsourceandroid"},"getInstallSourceAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getpendingpurchasesios"},"getPendingPurchasesIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getpromotedproductios"},"getPromotedProductIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getreceiptios"},"getReceiptIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#isfeaturesupported"},"isFeatureSupported")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#presentcoderedemptionsheetios"},"presentCodeRedemptionSheetIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#validatereceiptamazon"},"validateReceiptAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#validatereceiptandroid"},"validateReceiptAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#validatereceiptios"},"validateReceiptIos")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#verifylicense"},"verifyLicense"))),(0,r.yg)("h3",{id:"namespaces"},"Namespaces"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAmazon"},"IapAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapAndroid"},"IapAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIos"},"IapIos")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules/IapIosSk2"},"IapIosSk2"))),(0,r.yg)("h3",{id:"enumerations"},"Enumerations"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/enums/ErrorCode"},"ErrorCode")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/enums/InstallSourceAndroid"},"InstallSourceAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/enums/ProductType"},"ProductType")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/enums/PurchaseStateAndroid"},"PurchaseStateAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/enums/ReplacementModesAndroid"},"ReplacementModesAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/enums/SubscriptionPlatform"},"SubscriptionPlatform")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/enums/TransactionReason"},"TransactionReason"))),(0,r.yg)("h3",{id:"classes"},"Classes"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/classes/PurchaseError"},"PurchaseError"))),(0,r.yg)("h3",{id:"interfaces"},"Interfaces"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/Discount"},"Discount")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/NativeModuleProps"},"NativeModuleProps")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PricingPhaseAndroid"},"PricingPhaseAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductAndroid"},"ProductAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductCommon"},"ProductCommon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductIOS"},"ProductIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/ProductPurchase"},"ProductPurchase")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/PurchaseResult"},"PurchaseResult")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseAndroid"},"RequestPurchaseAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseBaseAndroid"},"RequestPurchaseBaseAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestPurchaseIOS"},"RequestPurchaseIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/RequestSubscriptionAndroid"},"RequestSubscriptionAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAmazon"},"SubscriptionAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionAndroid"},"SubscriptionAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionIOS"},"SubscriptionIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOffer"},"SubscriptionOffer")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionOfferAndroid"},"SubscriptionOfferAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/interfaces/SubscriptionPurchase"},"SubscriptionPurchase"))),(0,r.yg)("h3",{id:"type-aliases"},"Type Aliases"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#product"},"Product")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#purchase"},"Purchase")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#requestpurchase"},"RequestPurchase")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#requestpurchaseamazon"},"RequestPurchaseAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#requestsubscription"},"RequestSubscription")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#requestsubscriptionamazon"},"RequestSubscriptionAmazon")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#requestsubscriptionios"},"RequestSubscriptionIOS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#storekit_options"},"STOREKIT","_","OPTIONS")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#sku"},"Sku")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#subscription"},"Subscription")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#subscriptioniosperiod"},"SubscriptionIosPeriod"))),(0,r.yg)("h3",{id:"variables"},"Variables"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#promoted_product"},"PROMOTED","_","PRODUCT"))),(0,r.yg)("h3",{id:"functions"},"Functions"),(0,r.yg)("ul",null,(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#deeplinktosubscriptions"},"deepLinkToSubscriptions")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#endconnection"},"endConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#finishtransaction"},"finishTransaction")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#flushfailedpurchasescachedaspendingandroid"},"flushFailedPurchasesCachedAsPendingAndroid")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getavailablepurchases"},"getAvailablePurchases")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getproducts"},"getProducts")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getpurchasehistory"},"getPurchaseHistory")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#getsubscriptions"},"getSubscriptions")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#initconnection"},"initConnection")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#isiosstorekit2"},"isIosStorekit2")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#promotedproductlistener"},"promotedProductListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#purchaseerrorlistener"},"purchaseErrorListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#purchaseupdatedlistener"},"purchaseUpdatedListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#requestpurchase-1"},"requestPurchase")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#requestsubscription-1"},"requestSubscription")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#setup"},"setup")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#transactionlistener"},"transactionListener")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#useiap"},"useIAP")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#useiapcontext"},"useIAPContext")),(0,r.yg)("li",{parentName:"ul"},(0,r.yg)("a",{parentName:"li",href:"/docs/api/modules#withiapcontext"},"withIAPContext"))),(0,r.yg)("h2",{id:"references-1"},"References"),(0,r.yg)("h3",{id:"amazonmodule"},"AmazonModule"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon#amazonmodule"},"AmazonModule")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"amazonmoduleprops"},"AmazonModuleProps"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAmazon.AmazonModuleProps"},"AmazonModuleProps")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"androidmodule"},"AndroidModule"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#androidmodule"},"AndroidModule")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"androidmoduleprops"},"AndroidModuleProps"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapAndroid.AndroidModuleProps"},"AndroidModuleProps")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"buyitembytype"},"BuyItemByType"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#buyitembytype"},"BuyItemByType")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"buyproduct"},"BuyProduct"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#buyproduct"},"BuyProduct")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"iosmoduleprops"},"IosModuleProps"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/IapIos.IosModuleProps"},"IosModuleProps")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"acknowledgepurchaseandroid"},"acknowledgePurchaseAndroid"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#acknowledgepurchaseandroid"},"acknowledgePurchaseAndroid")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"buypromotedproductios"},"buyPromotedProductIOS"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#buypromotedproductios"},"buyPromotedProductIOS")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"clearproductsios"},"clearProductsIOS"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#clearproductsios"},"clearProductsIOS")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"cleartransactionios"},"clearTransactionIOS"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#cleartransactionios"},"clearTransactionIOS")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"deeplinktosubscriptionsamazon"},"deepLinkToSubscriptionsAmazon"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon#deeplinktosubscriptionsamazon"},"deepLinkToSubscriptionsAmazon")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"deeplinktosubscriptionsandroid"},"deepLinkToSubscriptionsAndroid"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#deeplinktosubscriptionsandroid"},"deepLinkToSubscriptionsAndroid")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"deeplinktosubscriptionsios"},"deepLinkToSubscriptionsIos"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#deeplinktosubscriptionsios"},"deepLinkToSubscriptionsIos")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getinstallsourceandroid"},"getInstallSourceAndroid"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#getinstallsourceandroid"},"getInstallSourceAndroid")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getpendingpurchasesios"},"getPendingPurchasesIOS"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#getpendingpurchasesios"},"getPendingPurchasesIOS")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getpromotedproductios"},"getPromotedProductIOS"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#getpromotedproductios"},"getPromotedProductIOS")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"getreceiptios"},"getReceiptIOS"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#getreceiptios"},"getReceiptIOS")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"isfeaturesupported"},"isFeatureSupported"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#isfeaturesupported"},"isFeatureSupported")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"presentcoderedemptionsheetios"},"presentCodeRedemptionSheetIOS"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#presentcoderedemptionsheetios"},"presentCodeRedemptionSheetIOS")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"validatereceiptamazon"},"validateReceiptAmazon"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon#validatereceiptamazon"},"validateReceiptAmazon")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"validatereceiptandroid"},"validateReceiptAndroid"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAndroid#validatereceiptandroid"},"validateReceiptAndroid")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"validatereceiptios"},"validateReceiptIos"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapIos#validatereceiptios"},"validateReceiptIos")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"verifylicense"},"verifyLicense"),(0,r.yg)("p",null,"Re-exports ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules/IapAmazon#verifylicense"},"verifyLicense")),(0,r.yg)("h2",{id:"type-aliases-1"},"Type Aliases"),(0,r.yg)("h3",{id:"product"},"Product"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"Product"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductAndroid"))," & ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductIOS"))),(0,r.yg)("h4",{id:"defined-in"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L137"},"types/index.ts:137")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"purchase"},"Purchase"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"Purchase"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/ProductPurchase"},(0,r.yg)("inlineCode",{parentName:"a"},"ProductPurchase"))," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionPurchase"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionPurchase"))),(0,r.yg)("h4",{id:"defined-in-1"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L113"},"types/index.ts:113")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"requestpurchase"},"RequestPurchase"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"RequestPurchase"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestPurchaseAndroid"))," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#requestpurchaseamazon"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestPurchaseAmazon"))," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestPurchaseIOS"))),(0,r.yg)("h4",{id:"defined-in-2"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L241"},"types/index.ts:241")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"requestpurchaseamazon"},"RequestPurchaseAmazon"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"RequestPurchaseAmazon"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestPurchaseIOS"))),(0,r.yg)("p",null,"As of 2022-10-12, we only use the ",(0,r.yg)("inlineCode",{parentName:"p"},"sku")," field for Amazon purchases"),(0,r.yg)("h4",{id:"defined-in-3"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L239"},"types/index.ts:239")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"requestsubscription"},"RequestSubscription"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"RequestSubscription"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestSubscriptionAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestSubscriptionAndroid"))," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#requestsubscriptionamazon"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestSubscriptionAmazon"))," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#requestsubscriptionios"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestSubscriptionIOS"))),(0,r.yg)("h4",{id:"defined-in-4"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L266"},"types/index.ts:266")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"requestsubscriptionamazon"},"RequestSubscriptionAmazon"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"RequestSubscriptionAmazon"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/modules#requestsubscriptionios"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestSubscriptionIOS"))),(0,r.yg)("p",null,"As of 2022-10-12, we only use the ",(0,r.yg)("inlineCode",{parentName:"p"},"sku")," field for Amazon subscriptions"),(0,r.yg)("h4",{id:"defined-in-5"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L264"},"types/index.ts:264")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"requestsubscriptionios"},"RequestSubscriptionIOS"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"RequestSubscriptionIOS"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/RequestPurchaseIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"RequestPurchaseIOS"))),(0,r.yg)("h4",{id:"defined-in-6"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L261"},"types/index.ts:261")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"storekit_options"},"STOREKIT","_","OPTIONS"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"STOREKIT","_","OPTIONS"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'"STOREKIT1_MODE"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"STOREKIT_HYBRID_MODE"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"STOREKIT2_MODE"')),(0,r.yg)("p",null,"STOREKIT1_MODE: Will not enable Storekit 2 even if the device supports it. Thigs will work as before,\nminimum changes required in the migration guide (default)\nHYBRID_MODE: Will enable Storekit 2 for iOS devices > 15.0 but will fallback to Sk1 on older devices\nThere are some edge cases that you need to handle in this case (described in migration guide). This mode\nis for developers that are migrating to Storekit 2 but want to keep supporting older versions.\nSTOREKIT2_MODE: Will ",(0,r.yg)("em",{parentName:"p"},"only")," enable Storekit 2. This disables Storekit 1. This is for apps that\nhave already targeted a min version of 15 for their app."),(0,r.yg)("h4",{id:"defined-in-7"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/iap.ts#L60"},"iap.ts:60")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"sku"},"Sku"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"Sku"),": ",(0,r.yg)("inlineCode",{parentName:"p"},"string")),(0,r.yg)("h4",{id:"defined-in-8"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L10"},"types/index.ts:10")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"subscription"},"Subscription"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"Subscription"),": ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionAndroid"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionAndroid"))," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionAmazon"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionAmazon"))," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/SubscriptionIOS"},(0,r.yg)("inlineCode",{parentName:"a"},"SubscriptionIOS"))),(0,r.yg)("h4",{id:"defined-in-9"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L212"},"types/index.ts:212")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"subscriptioniosperiod"},"SubscriptionIosPeriod"),(0,r.yg)("p",null,"\u01ac ",(0,r.yg)("strong",{parentName:"p"},"SubscriptionIosPeriod"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'"DAY"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"WEEK"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"MONTH"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'"YEAR"')," ","|"," ",(0,r.yg)("inlineCode",{parentName:"p"},'""')),(0,r.yg)("h4",{id:"defined-in-10"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L193"},"types/index.ts:193")),(0,r.yg)("h2",{id:"variables-1"},"Variables"),(0,r.yg)("h3",{id:"promoted_product"},"PROMOTED","_","PRODUCT"),(0,r.yg)("p",null,"\u2022 ",(0,r.yg)("inlineCode",{parentName:"p"},"Const")," ",(0,r.yg)("strong",{parentName:"p"},"PROMOTED","_","PRODUCT"),": ",(0,r.yg)("inlineCode",{parentName:"p"},'"iap-promoted-product"')),(0,r.yg)("h4",{id:"defined-in-11"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/types/index.ts#L27"},"types/index.ts:27")),(0,r.yg)("h2",{id:"functions-1"},"Functions"),(0,r.yg)("h3",{id:"deeplinktosubscriptions"},"deepLinkToSubscriptions"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"deepLinkToSubscriptions"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("p",null,"Deeplinks to native interface that allows users to manage their subscriptions"),(0,r.yg)("h4",{id:"parameters"},"Parameters"),(0,r.yg)("table",null,(0,r.yg)("thead",{parentName:"table"},(0,r.yg)("tr",{parentName:"thead"},(0,r.yg)("th",{parentName:"tr",align:"left"},"Name"),(0,r.yg)("th",{parentName:"tr",align:"left"},"Type"))),(0,r.yg)("tbody",{parentName:"table"},(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"\xabdestructured\xbb")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"Object"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"isAmazonDevice?")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"boolean"))),(0,r.yg)("tr",{parentName:"tbody"},(0,r.yg)("td",{parentName:"tr",align:"left"},"\u203a\xa0",(0,r.yg)("inlineCode",{parentName:"td"},"sku?")),(0,r.yg)("td",{parentName:"tr",align:"left"},(0,r.yg)("inlineCode",{parentName:"td"},"string"))))),(0,r.yg)("h4",{id:"returns"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"void"),">"),(0,r.yg)("h4",{id:"defined-in-12"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/iap.ts#L908"},"iap.ts:908")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"endconnection"},"endConnection"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"endConnection"),"(): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("p",null,"Disconnects from native SDK\nUsage"),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-tsx"},"import React, {useEffect} from 'react';\nimport {View} from 'react-native';\nimport {endConnection} from 'react-native-iap';\n\nconst App = () => {\n useEffect(() => {\n return () => {\n void endConnection();\n };\n }, []);\n\n return ;\n};\n")),(0,r.yg)("h4",{id:"returns-1"},"Returns"),(0,r.yg)("p",null,(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean"),">"),(0,r.yg)("h4",{id:"defined-in-13"},"Defined in"),(0,r.yg)("p",null,(0,r.yg)("a",{parentName:"p",href:"https://github.com/hyochan/react-native-iap/blob/8fa3da1/src/iap.ts#L126"},"iap.ts:126")),(0,r.yg)("hr",null),(0,r.yg)("h3",{id:"finishtransaction"},"finishTransaction"),(0,r.yg)("p",null,"\u25b8 ",(0,r.yg)("strong",{parentName:"p"},"finishTransaction"),"(",(0,r.yg)("inlineCode",{parentName:"p"},"\xabdestructured\xbb"),"): ",(0,r.yg)("inlineCode",{parentName:"p"},"Promise"),"\\<",(0,r.yg)("inlineCode",{parentName:"p"},"boolean")," ","|"," ",(0,r.yg)("a",{parentName:"p",href:"/docs/api/interfaces/PurchaseResult"},(0,r.yg)("inlineCode",{parentName:"a"},"PurchaseResult")),">"),(0,r.yg)("p",null,"Finish Transaction (both platforms)\nAbstracts Finish Transaction\niOS: Tells StoreKit that you have delivered the purchase to the user and StoreKit can now let go of the transaction.\nCall this after you have persisted the purchased state to your server or local data in your app.\n",(0,r.yg)("inlineCode",{parentName:"p"},"react-native-iap")," will continue to deliver the purchase updated events with the successful purchase until you finish the transaction. ",(0,r.yg)("strong",{parentName:"p"},"Even after the app has relaunched."),"\nAndroid: it will consume purchase for consumables and acknowledge purchase for non-consumables."),(0,r.yg)("pre",null,(0,r.yg)("code",{parentName:"pre",className:"language-tsx"},"import React from 'react';\nimport {Button} from 'react-native';\nimport {finishTransaction} from 'react-native-iap';\n\nconst App = () => {\n const handlePurchase = async () => {\n // ... handle the purchase request\n\n const result = finishTransaction({purchase});\n };\n\n return React Native IAP

Hooks

Installation

You first have to wrap your app with the withIAPContext HOC.

import React from 'react';
import {withIAPContext} from 'react-native-iap';

const App = () => <View />;

export default withIAPContext(App);

Usage

The useIAP() hook is an easy way to access react-native-iap methods simplified for you. It already does some work through the context to help you get your products, purchases, subscriptions, callback and error handlers faster.

Below are all the methods available through the hook. All the rest of the methods e.g. requestPurchase are available through the usual import import {requestPurchase} from 'react-native-iap';

import React from 'react';
import {View, Text} from 'react-native';
import {requestPurchase, useIAP} from 'react-native-iap';

const App = () => {
const {
connected,
products,
promotedProductsIOS,
subscriptions,
purchaseHistory,
availablePurchases,
currentPurchase,
currentPurchaseError,
initConnectionError,
finishTransaction,
getProducts,
getSubscriptions,
getAvailablePurchases,
getPurchaseHistory,
} = useIAP();

const handlePurchase = async (sku: string) => {
await requestPurchase({sku});
};

useEffect(() => {
// ... listen to currentPurchaseError, to check if any error happened
}, [currentPurchaseError]);

useEffect(() => {
// ... listen to currentPurchase, to check if the purchase went through
}, [currentPurchase]);

return (
<>
<Button
title="Get the products"
onPress={getProducts({skus: ['product.id']})}
/>

{products.map((product) => (
<View key={product.productId}>
<Text>{product.productId}</Text>

<Button
title="Buy"
onPress={() => handlePurchase(product.productId)}
/>
</View>
))}
</>
);
};
- + \ No newline at end of file diff --git a/docs/api-reference/methods/amazon/validate-receipt-amazon/index.html b/docs/api-reference/methods/amazon/validate-receipt-amazon/index.html index dac4faa59..f976905fb 100644 --- a/docs/api-reference/methods/amazon/validate-receipt-amazon/index.html +++ b/docs/api-reference/methods/amazon/validate-receipt-amazon/index.html @@ -4,7 +4,7 @@ Validate Receipt Amazon | React Native IAP - + @@ -12,7 +12,7 @@

Validate Receipt Amazon

validateReceiptAmazon

Validate receipt.

note

This method is here for debugging purposes only. Including your developer secret in the binary you ship to users is potentially dangerous. Use server-side validation instead for your production builds.

Signature

validateReceiptAmazon(
/** From the Amazon developer console */
developerSecret: string,

/** Who purchased the item. */
userId: string,

/** Long obfuscated string returned when purchasing the item */
receiptId: string,

/** Defaults to true, use sandbox environment or production. */
useSandbox: boolean = true,
): Promise<AmazonReceiptType>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {validateReceiptAmazon} from 'react-native-iap';

const App = () => {
const handlePurchase = async () => {
const response = await validateReceiptAmazon(
'your-developer-secret',
'user-id',
'receipt-id',
);
};

return <Button title="Purchase" onPress={handlePurchase} />;
};
- + \ No newline at end of file diff --git a/docs/api-reference/methods/android/acknowledge-purchase-android/index.html b/docs/api-reference/methods/android/acknowledge-purchase-android/index.html index c11d77825..214df811c 100644 --- a/docs/api-reference/methods/android/acknowledge-purchase-android/index.html +++ b/docs/api-reference/methods/android/acknowledge-purchase-android/index.html @@ -4,13 +4,13 @@ Acknowledge Purchase Android | React Native IAP - +

Acknowledge Purchase Android

acknowledgePurchaseAndroid

Acknowledge a product.

Signature

acknowledgePurchaseAndroid(
/** The product's token */
token: string,

/** Android developerPayload */
developerPayload?: string,
): Promise<PurchaseResult | void>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {acknowledgePurchaseAndroid} from 'react-native-iap';

const App = () => {
const handlePurchase = async () => {
await acknowledgePurchaseAndroid({
token: 'token',
developerPayload: 'developer-payload',
});
};

return <Button title="Acknowledge purchase" onPress={handlePurchase} />;
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/android/deep-link-to-subscriptions-android/index.html b/docs/api-reference/methods/android/deep-link-to-subscriptions-android/index.html index 0267e33c9..87b26223d 100644 --- a/docs/api-reference/methods/android/deep-link-to-subscriptions-android/index.html +++ b/docs/api-reference/methods/android/deep-link-to-subscriptions-android/index.html @@ -4,13 +4,13 @@ Deep link to subscriptions | React Native IAP - +

Deep link to subscriptions

deepLinkToSubscriptionsAndroid

Deep link to subscriptions screen.

Signature

deepLinkToSubscriptionsAndroid(
/** The product's SKU */
sku: Sku,
): Promise<void>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {deepLinkToSubscriptionsAndroid} from 'react-native-iap';

const App = () => {
const handleSubscriptions = async () => {
await deepLinkToSubscriptionsAndroid({sku: 'sku-id'});
};

return <Button title="Manage subscriptions" onPress={handleSubscriptions} />;
};
- + \ No newline at end of file diff --git a/docs/api-reference/methods/android/flush-failed-purchases-cached-as-pending-android/index.html b/docs/api-reference/methods/android/flush-failed-purchases-cached-as-pending-android/index.html index 31c263f5a..eac0da5c4 100644 --- a/docs/api-reference/methods/android/flush-failed-purchases-cached-as-pending-android/index.html +++ b/docs/api-reference/methods/android/flush-failed-purchases-cached-as-pending-android/index.html @@ -4,13 +4,13 @@ Flush failed purchases cached as pending (Android) | React Native IAP - +

Flush failed purchases cached as pending (Android)

flushFailedPurchasesCachedAsPendingAndroid

Consume all 'ghost' purchases.

That is, pending payment that already failed but is still marked as pending in Play Store cache.

Signature

flushFailedPurchasesCachedAsPendingAndroid(): Promise<void>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {flushFailedPurchasesCachedAsPendingAndroid} from 'react-native-iap';

const App = () => {
const handleFlush = async () => {
await flushFailedPurchasesCachedAsPendingAndroid();
};

return (
<Button title="Flush purchases cache" onPress={handleFlush} />
);
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/android/validate-receipt-android/index.html b/docs/api-reference/methods/android/validate-receipt-android/index.html index 21b6ac78c..1cf72c6ef 100644 --- a/docs/api-reference/methods/android/validate-receipt-android/index.html +++ b/docs/api-reference/methods/android/validate-receipt-android/index.html @@ -4,7 +4,7 @@ Validate Receipt Android | React Native IAP - + @@ -12,7 +12,7 @@

Validate Receipt Android

validateReceiptAndroid

Validate receipt.

note

This method is here for debugging purposes only. Including your access token in the binary you ship to users is potentially dangerous. Use server side validation instead for your production builds.

Signature

validateReceiptAndroid(
/** package name of your app. */
packageName: string,

/** product id for your in app product. */
productId: string,

/** token for your purchase. */
productToken: string,

/** accessToken from googleApis. */
accessToken: string,

/** whether this is a subscription or in-app product. `true` for subscription. */
isSub?: boolean,
): Promise<ProductPurchase | SubscriptionPurchase>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {validateReceiptAndroid} from 'react-native-iap';

const App = () => {
const handlePurchase = async () => {
const response = await validateReceiptAndroid({
packageName: purchase.packageNameAndroid,
productId: purchase.productId,
productToken: purchase.purchaseToken,
accessToken: 'your-access-token',
isSub: true
});
};

return <Button title="Purchase" onPress={handlePurchase} />;
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/buy-promoted-product/index.html b/docs/api-reference/methods/ios/buy-promoted-product/index.html index c2d251162..75277be1b 100644 --- a/docs/api-reference/methods/ios/buy-promoted-product/index.html +++ b/docs/api-reference/methods/ios/buy-promoted-product/index.html @@ -4,13 +4,13 @@ Buy Promoted Product | React Native IAP - +

Buy Promoted Product

buyPromotedProductIOS

Buy the currently selected promoted product.

Initiates the payment process for a promoted product.

note

Should only be called in response to the iap-promoted-product event.

Signature

buyPromotedProductIOS(): Promise<void>

Usage

import React from 'react';
import {Button} from 'react-native';
import {buyPromotedProductIOS} from 'react-native-iap';

const App = () => {
const handleBuy = async () => await buyPromotedProductIOS();

return (
<Button title="Buy" onPress={handleBuy} />
);
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/clear-products-ios/index.html b/docs/api-reference/methods/ios/clear-products-ios/index.html index 5ee3dcd31..c8bc96113 100644 --- a/docs/api-reference/methods/ios/clear-products-ios/index.html +++ b/docs/api-reference/methods/ios/clear-products-ios/index.html @@ -4,13 +4,13 @@ Clear Products IOS | React Native IAP - +

Clear Products IOS

clearProductsIOS

Clear valid products.

Remove all products which are validated by Apple server.

Signature

clearProductsIOS(): Promise<void>

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {clearProductsIOS} from 'react-native-iap';

const App = () => {
useEffect(() => {
void clearProductsIOS();
}, []);

return <View />;
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/clear-transaction-ios/index.html b/docs/api-reference/methods/ios/clear-transaction-ios/index.html index a5b82cde8..ec256a901 100644 --- a/docs/api-reference/methods/ios/clear-transaction-ios/index.html +++ b/docs/api-reference/methods/ios/clear-transaction-ios/index.html @@ -4,14 +4,14 @@ Clear Transaction IOS | React Native IAP - +

Clear Transaction IOS

clearTransactionIOS

Clear the remaining transactions.

See https://github.com/hyochan/react-native-iap/issues/257 See https://github.com/hyochan/react-native-iap/issues/801

Signature

clearTransactionIOS(): Promise<void>

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {clearTransactionIOS} from 'react-native-iap';

const App = () => {
useEffect(() => {
void clearTransactionIOS();
}, [])

return <View />;
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/get-pending-purchases-ios/index.html b/docs/api-reference/methods/ios/get-pending-purchases-ios/index.html index 1504b25d4..edcece922 100644 --- a/docs/api-reference/methods/ios/get-pending-purchases-ios/index.html +++ b/docs/api-reference/methods/ios/get-pending-purchases-ios/index.html @@ -4,13 +4,13 @@ Get Pending Purchases IOS | React Native IAP - +

Get Pending Purchases IOS

getPendingPurchasesIOS

Gets all the transactions which are pending to be finished.

Signature

getPendingPurchasesIOS(): Promise<Purchase[]>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {getPendingPurchasesIOS} from 'react-native-iap';

const App = () => {
const handlePendingPurchases = async () => await getPendingPurchasesIOS();

return (
<Button title="Pending purchases" onPress={handlePendingPurchases} />
)
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/get-promoted-product-ios/index.html b/docs/api-reference/methods/ios/get-promoted-product-ios/index.html index a4db6bb7e..2da0700f9 100644 --- a/docs/api-reference/methods/ios/get-promoted-product-ios/index.html +++ b/docs/api-reference/methods/ios/get-promoted-product-ios/index.html @@ -4,13 +4,13 @@ Get Promoted Product IOS | React Native IAP - +

Get Promoted Product IOS

getPromotedProductIOS

Should get products promoted on the App Store.

Indicates the the App Store purchase should continue from the app instead of the App Store.

Signature

getPromotedProductIOS(): Promise<ProductProduct | null>;

Usage

import React, {useCallback} from 'react';
import {View} from 'react-native';
import {getPromotedProductIOS} from 'react-native-iap';

const App = () => {
const promotedProduct = useCallback(async () => await getPromotedProductIOS());

return <View />;
}

TODO: works with listener to get the products

- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/present-code-redemption-sheet-ios/index.html b/docs/api-reference/methods/ios/present-code-redemption-sheet-ios/index.html index 30eed5cf0..dc506c6fd 100644 --- a/docs/api-reference/methods/ios/present-code-redemption-sheet-ios/index.html +++ b/docs/api-reference/methods/ios/present-code-redemption-sheet-ios/index.html @@ -4,13 +4,13 @@ Present Code Redemption Sheet IOS | React Native IAP - +

Present Code Redemption Sheet IOS

presentCodeRedemptionSheetIOS

Displays a sheet that enables users to redeem subscription offer codes that you generated in App Store Connect.

Availability: iOS 14.0+

Signature

presentCodeRedemptionSheetIOS(): Promise<null>;

Usage

import React from 'react';
import {Button} from 'react-native';
import {presentCodeRedemptionSheetIOS} from 'react-native-iap';

const App = () => {
const handleRedemption = async () => {
await presentCodeRedemptionSheetIOS();
}

return (
<Button title="Redeem" onPress={handleRedemption} />
)
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/request-purchase-with-offer/index.html b/docs/api-reference/methods/ios/request-purchase-with-offer/index.html index 35753d9a4..b21a1b8dd 100644 --- a/docs/api-reference/methods/ios/request-purchase-with-offer/index.html +++ b/docs/api-reference/methods/ios/request-purchase-with-offer/index.html @@ -4,13 +4,13 @@ Request Purchase With Offer IOS | React Native IAP - +

Request Purchase With Offer IOS

requestPurchaseWithOfferIOS

Buy products or subscriptions with offers.

Runs the payment process with some info you must fetch from your server.

Signature

requestPurchaseWithOfferIOS(
/** The product identifier */
sku: Sku,

/** An user identifier on you system */
forUser: string,

/** The offer information */
withOffer: PaymentDiscount,
): Promise<void>

Usage

import React from 'react';
import {Button} from 'react-native';
import {requestPurchaseWithOfferIOS} from 'react-native-iap';

const App = () => {
const handlePurchase = async () => {
await requestPurchaseWithOfferIOS({sku: 'productId', forUser: 'user-id', withOffer: {
identifier: 'string',
keyIdentifier: 'string',
nonce: 'string',
signature: 'string',
timestamp: Date.now(),
}});
}

return (
<Button title="Buy" onPress={handlePurchase} />
);
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/request-purchase-with-quantity-ios/index.html b/docs/api-reference/methods/ios/request-purchase-with-quantity-ios/index.html index abd7848f1..52283f4b7 100644 --- a/docs/api-reference/methods/ios/request-purchase-with-quantity-ios/index.html +++ b/docs/api-reference/methods/ios/request-purchase-with-quantity-ios/index.html @@ -4,13 +4,13 @@ Request Purchase With Quantity IOS | React Native IAP - +

Request Purchase With Quantity IOS

requestPurchaseWithQuantityIOS

Request a purchase with a quantity for a product.

The response will be received through the PurchaseUpdatedListener.

Signature

requestPurchaseWithQuantityIOS(
/** The product's sku/ID */
sku: Sku,

/** The quantity to request to buy */
quantity: number,
): Promise<ProductPurchase>

Usage

import React from 'react';
import {Button} from 'react-native';
import {requestPurchaseWithQuantityIOS} from 'react-native-iap';

const App = () => {
const handlePurchase = async () => {
await requestPurchaseWithQuantityIOS('productId', 2);
}

return (
<Button title="Purchase" onPress={handlePurchase} />
);
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/ios/validate-receipt-ios/index.html b/docs/api-reference/methods/ios/validate-receipt-ios/index.html index 731a75dc1..f6929085f 100644 --- a/docs/api-reference/methods/ios/validate-receipt-ios/index.html +++ b/docs/api-reference/methods/ios/validate-receipt-ios/index.html @@ -4,13 +4,13 @@ Validate Receipt IOS | React Native IAP - +

Validate Receipt IOS

validateReceiptIOS

Validate receipt.

Signature

validateReceiptIOS(
/** The receipt body to send to apple server. */
receiptBody: Record<string, unknown>,

/** Whether this is in test environment which is sandbox. */
isTest?: boolean,
): Promise<ResponseBody>

Usage

import React from 'react';
import {Button} from 'react-native';
import {validateReceiptIOS} from 'react-native-iap';

const App = () => {
const handleValidate = async () => {
await validateReceiptIOS({
'receipt-data': '...',
});
}

return (
<Button title="Validate" onPress={handleValidate} />
);
}
- + \ No newline at end of file diff --git a/docs/api-reference/methods/listeners/promoted-product-listener/index.html b/docs/api-reference/methods/listeners/promoted-product-listener/index.html index 16c4baafa..95250a868 100644 --- a/docs/api-reference/methods/listeners/promoted-product-listener/index.html +++ b/docs/api-reference/methods/listeners/promoted-product-listener/index.html @@ -4,13 +4,13 @@ Promoted Product Listener | React Native IAP - +

Promoted Product Listener

promotedProductListener

Add IAP promoted subscription event.

Signature

promotedProductListener((productId?: string) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {promotedProductListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = promotedProductListener((productId) => {
console.log(productId);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};
- + \ No newline at end of file diff --git a/docs/api-reference/methods/listeners/purchase-error-listener/index.html b/docs/api-reference/methods/listeners/purchase-error-listener/index.html index 800aad3af..7f59e16fa 100644 --- a/docs/api-reference/methods/listeners/purchase-error-listener/index.html +++ b/docs/api-reference/methods/listeners/purchase-error-listener/index.html @@ -4,13 +4,13 @@ Purchase Error Listener | React Native IAP - +

Purchase Error Listener

purchaseErrorListener

Register a callback that gets called when there has been an error with a purchase. Returns a React Native EmitterSubscription on which you can call .remove() to stop receiving updates.

Signature

purchaseErrorListener((error: PurchaseError) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseErrorListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseErrorListener((error: PurchaseError) => {
console.log(error);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};
- + \ No newline at end of file diff --git a/docs/api-reference/methods/listeners/purchase-updated-listener/index.html b/docs/api-reference/methods/listeners/purchase-updated-listener/index.html index 19069e0c0..d23abed02 100644 --- a/docs/api-reference/methods/listeners/purchase-updated-listener/index.html +++ b/docs/api-reference/methods/listeners/purchase-updated-listener/index.html @@ -4,13 +4,13 @@ Purchase Updated Listener | React Native IAP - +

Purchase Updated Listener

purchaseUpdatedListener

Register a callback that gets called when the store has any updates to purchases that have not yet been finished, consumed or acknowledged. Returns a React Native EmitterSubscription on which you can call .remove() to stop receiving updates. Register you listener as soon as possible and react to updates at all times.

Signature

purchaseUpdatedListener((purchase: Purchase) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseUpdatedListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseUpdatedListener((purchase: Purchase) => {
console.log(purchase);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};
- + \ No newline at end of file diff --git a/docs/api/classes/PurchaseError/index.html b/docs/api/classes/PurchaseError/index.html index aaf75f641..70c5515de 100644 --- a/docs/api/classes/PurchaseError/index.html +++ b/docs/api/classes/PurchaseError/index.html @@ -4,13 +4,13 @@ PurchaseError | React Native IAP - +
-

PurchaseError

react-native-iap / Exports / PurchaseError

Class: PurchaseError

Implements

  • Error

Table of contents

Constructors

Properties

Constructors

constructor

new PurchaseError(name, message, responseCode?, debugMessage?, code?, productId?)

Parameters

NameType
namestring
messagestring
responseCode?number
debugMessage?string
code?ErrorCode
productId?string

Defined in

purchaseError.ts:22

Properties

code

Optional code: ErrorCode

Defined in

purchaseError.ts:27


debugMessage

Optional debugMessage: string

Defined in

purchaseError.ts:26


message

message: string

Implementation of

Error.message

Defined in

purchaseError.ts:24


name

name: string

Implementation of

Error.name

Defined in

purchaseError.ts:23


productId

Optional productId: string

Defined in

purchaseError.ts:28


responseCode

Optional responseCode: number

Defined in

purchaseError.ts:25

- +

PurchaseError

react-native-iap / Exports / PurchaseError

Class: PurchaseError

Implements

  • Error

Table of contents

Constructors

Properties

Constructors

constructor

new PurchaseError(name, message, responseCode?, debugMessage?, code?, productId?)

Parameters

NameType
namestring
messagestring
responseCode?number
debugMessage?string
code?ErrorCode
productId?string

Defined in

purchaseError.ts:22

Properties

code

Optional code: ErrorCode

Defined in

purchaseError.ts:27


debugMessage

Optional debugMessage: string

Defined in

purchaseError.ts:26


message

message: string

Implementation of

Error.message

Defined in

purchaseError.ts:24


name

name: string

Implementation of

Error.name

Defined in

purchaseError.ts:23


productId

Optional productId: string

Defined in

purchaseError.ts:28


responseCode

Optional responseCode: number

Defined in

purchaseError.ts:25

+ \ No newline at end of file diff --git a/docs/api/enums/ErrorCode/index.html b/docs/api/enums/ErrorCode/index.html index 071b0de81..47946866c 100644 --- a/docs/api/enums/ErrorCode/index.html +++ b/docs/api/enums/ErrorCode/index.html @@ -4,13 +4,13 @@ ErrorCode | React Native IAP - +
-

ErrorCode

react-native-iap / Exports / ErrorCode

Enumeration: ErrorCode

Table of contents

Enumeration Members

Enumeration Members

E_ALREADY_OWNED

E_ALREADY_OWNED = "E_ALREADY_OWNED"

Defined in

purchaseError.ts:13


E_BILLING_RESPONSE_JSON_PARSE_ERROR

E_BILLING_RESPONSE_JSON_PARSE_ERROR = "E_BILLING_RESPONSE_JSON_PARSE_ERROR"

Defined in

purchaseError.ts:15


E_DEFERRED_PAYMENT

E_DEFERRED_PAYMENT = "E_DEFERRED_PAYMENT"

Defined in

purchaseError.ts:16


E_DEVELOPER_ERROR

E_DEVELOPER_ERROR = "E_DEVELOPER_ERROR"

Defined in

purchaseError.ts:14


E_IAP_NOT_AVAILABLE

E_IAP_NOT_AVAILABLE = "E_IAP_NOT_AVAILABLE"

Defined in

purchaseError.ts:18


E_INTERRUPTED

E_INTERRUPTED = "E_INTERRUPTED"

Defined in

purchaseError.ts:17


E_ITEM_UNAVAILABLE

E_ITEM_UNAVAILABLE = "E_ITEM_UNAVAILABLE"

Defined in

purchaseError.ts:5


E_NETWORK_ERROR

E_NETWORK_ERROR = "E_NETWORK_ERROR"

Defined in

purchaseError.ts:7


E_NOT_ENDED

E_NOT_ENDED = "E_NOT_ENDED"

Defined in

purchaseError.ts:12


E_NOT_PREPARED

E_NOT_PREPARED = "E_NOT_PREPARED"

Defined in

purchaseError.ts:11


E_RECEIPT_FAILED

E_RECEIPT_FAILED = "E_RECEIPT_FAILED"

Defined in

purchaseError.ts:9


E_RECEIPT_FINISHED_FAILED

E_RECEIPT_FINISHED_FAILED = "E_RECEIPT_FINISHED_FAILED"

Defined in

purchaseError.ts:10


E_REMOTE_ERROR

E_REMOTE_ERROR = "E_REMOTE_ERROR"

Defined in

purchaseError.ts:6


E_SERVICE_ERROR

E_SERVICE_ERROR = "E_SERVICE_ERROR"

Defined in

purchaseError.ts:8


E_UNKNOWN

E_UNKNOWN = "E_UNKNOWN"

Defined in

purchaseError.ts:2


E_USER_CANCELLED

E_USER_CANCELLED = "E_USER_CANCELLED"

Defined in

purchaseError.ts:3


E_USER_ERROR

E_USER_ERROR = "E_USER_ERROR"

Defined in

purchaseError.ts:4

- +

ErrorCode

react-native-iap / Exports / ErrorCode

Enumeration: ErrorCode

Table of contents

Enumeration Members

Enumeration Members

E_ALREADY_OWNED

E_ALREADY_OWNED = "E_ALREADY_OWNED"

Defined in

purchaseError.ts:13


E_BILLING_RESPONSE_JSON_PARSE_ERROR

E_BILLING_RESPONSE_JSON_PARSE_ERROR = "E_BILLING_RESPONSE_JSON_PARSE_ERROR"

Defined in

purchaseError.ts:15


E_DEFERRED_PAYMENT

E_DEFERRED_PAYMENT = "E_DEFERRED_PAYMENT"

Defined in

purchaseError.ts:16


E_DEVELOPER_ERROR

E_DEVELOPER_ERROR = "E_DEVELOPER_ERROR"

Defined in

purchaseError.ts:14


E_IAP_NOT_AVAILABLE

E_IAP_NOT_AVAILABLE = "E_IAP_NOT_AVAILABLE"

Defined in

purchaseError.ts:18


E_INTERRUPTED

E_INTERRUPTED = "E_INTERRUPTED"

Defined in

purchaseError.ts:17


E_ITEM_UNAVAILABLE

E_ITEM_UNAVAILABLE = "E_ITEM_UNAVAILABLE"

Defined in

purchaseError.ts:5


E_NETWORK_ERROR

E_NETWORK_ERROR = "E_NETWORK_ERROR"

Defined in

purchaseError.ts:7


E_NOT_ENDED

E_NOT_ENDED = "E_NOT_ENDED"

Defined in

purchaseError.ts:12


E_NOT_PREPARED

E_NOT_PREPARED = "E_NOT_PREPARED"

Defined in

purchaseError.ts:11


E_RECEIPT_FAILED

E_RECEIPT_FAILED = "E_RECEIPT_FAILED"

Defined in

purchaseError.ts:9


E_RECEIPT_FINISHED_FAILED

E_RECEIPT_FINISHED_FAILED = "E_RECEIPT_FINISHED_FAILED"

Defined in

purchaseError.ts:10


E_REMOTE_ERROR

E_REMOTE_ERROR = "E_REMOTE_ERROR"

Defined in

purchaseError.ts:6


E_SERVICE_ERROR

E_SERVICE_ERROR = "E_SERVICE_ERROR"

Defined in

purchaseError.ts:8


E_UNKNOWN

E_UNKNOWN = "E_UNKNOWN"

Defined in

purchaseError.ts:2


E_USER_CANCELLED

E_USER_CANCELLED = "E_USER_CANCELLED"

Defined in

purchaseError.ts:3


E_USER_ERROR

E_USER_ERROR = "E_USER_ERROR"

Defined in

purchaseError.ts:4

+ \ No newline at end of file diff --git a/docs/api/enums/InstallSourceAndroid/index.html b/docs/api/enums/InstallSourceAndroid/index.html index 4580a866d..aa6e1672c 100644 --- a/docs/api/enums/InstallSourceAndroid/index.html +++ b/docs/api/enums/InstallSourceAndroid/index.html @@ -4,13 +4,13 @@ InstallSourceAndroid | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/enums/ProductType/index.html b/docs/api/enums/ProductType/index.html index 12b3cef43..078a479ea 100644 --- a/docs/api/enums/ProductType/index.html +++ b/docs/api/enums/ProductType/index.html @@ -4,13 +4,13 @@ ProductType | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/enums/PurchaseStateAndroid/index.html b/docs/api/enums/PurchaseStateAndroid/index.html index d15fff89c..da5b9de20 100644 --- a/docs/api/enums/PurchaseStateAndroid/index.html +++ b/docs/api/enums/PurchaseStateAndroid/index.html @@ -4,13 +4,13 @@ PurchaseStateAndroid | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/enums/ReplacementModesAndroid/index.html b/docs/api/enums/ReplacementModesAndroid/index.html index 3d62b8a63..f3f89e29a 100644 --- a/docs/api/enums/ReplacementModesAndroid/index.html +++ b/docs/api/enums/ReplacementModesAndroid/index.html @@ -4,13 +4,13 @@ ReplacementModesAndroid | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/enums/SubscriptionPlatform/index.html b/docs/api/enums/SubscriptionPlatform/index.html index 0c55e7e60..0183d503a 100644 --- a/docs/api/enums/SubscriptionPlatform/index.html +++ b/docs/api/enums/SubscriptionPlatform/index.html @@ -4,13 +4,13 @@ SubscriptionPlatform | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/enums/TransactionReason/index.html b/docs/api/enums/TransactionReason/index.html index 4548d7b55..b795f2ea7 100644 --- a/docs/api/enums/TransactionReason/index.html +++ b/docs/api/enums/TransactionReason/index.html @@ -4,13 +4,13 @@ TransactionReason | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/interfaces/Discount/index.html b/docs/api/interfaces/Discount/index.html index c531c7923..e43db09ea 100644 --- a/docs/api/interfaces/Discount/index.html +++ b/docs/api/interfaces/Discount/index.html @@ -4,13 +4,13 @@ Discount | React Native IAP - +
-
- + + \ No newline at end of file diff --git a/docs/api/interfaces/IapAmazon.AmazonModuleProps/index.html b/docs/api/interfaces/IapAmazon.AmazonModuleProps/index.html index 078b9bf81..f3b03a6da 100644 --- a/docs/api/interfaces/IapAmazon.AmazonModuleProps/index.html +++ b/docs/api/interfaces/IapAmazon.AmazonModuleProps/index.html @@ -4,13 +4,13 @@ IapAmazon.AmazonModuleProps | React Native IAP - +
-

IapAmazon.AmazonModuleProps

react-native-iap / Exports / IapAmazon / AmazonModuleProps

Interface: AmazonModuleProps

IapAmazon.AmazonModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

acknowledgePurchase

acknowledgePurchase: AcknowledgePurchase

Defined in

modules/amazon.ts:38


buyItemByType

buyItemByType: BuyItemByType

Defined in

modules/amazon.ts:37


consumeProduct

consumeProduct: ConsumeProduct

Defined in

modules/amazon.ts:39


deepLinkToSubscriptions

deepLinkToSubscriptions: (isAmazonDevice: boolean) => Promise\<void>

Type declaration

▸ (isAmazonDevice): Promise\<void>

Parameters
NameType
isAmazonDeviceboolean
Returns

Promise\<void>

Defined in

modules/amazon.ts:43


flushFailedPurchasesCachedAsPending

flushFailedPurchasesCachedAsPending: FlushFailedPurchasesCachedAsPending

Defined in

modules/amazon.ts:34


getAvailableItems

getAvailableItems: GetAvailableItems

Defined in

modules/amazon.ts:36


getItemsByType

getItemsByType: GetItemsByType

Defined in

modules/amazon.ts:35


getUser

getUser: GetUser

Defined in

modules/amazon.ts:33


startListening

startListening: StartListening

Deprecated

to be renamed to sendUnconsumedPurchases if not removed completely

Defined in

modules/amazon.ts:41


verifyLicense

verifyLicense: () => Promise\<AmazonLicensingStatus>

Type declaration

▸ (): Promise\<AmazonLicensingStatus>

Returns

Promise\<AmazonLicensingStatus>

Defined in

modules/amazon.ts:42

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15

- +

IapAmazon.AmazonModuleProps

react-native-iap / Exports / IapAmazon / AmazonModuleProps

Interface: AmazonModuleProps

IapAmazon.AmazonModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

acknowledgePurchase

acknowledgePurchase: AcknowledgePurchase

Defined in

modules/amazon.ts:38


buyItemByType

buyItemByType: BuyItemByType

Defined in

modules/amazon.ts:37


consumeProduct

consumeProduct: ConsumeProduct

Defined in

modules/amazon.ts:39


deepLinkToSubscriptions

deepLinkToSubscriptions: (isAmazonDevice: boolean) => Promise\<void>

Type declaration

▸ (isAmazonDevice): Promise\<void>

Parameters
NameType
isAmazonDeviceboolean
Returns

Promise\<void>

Defined in

modules/amazon.ts:43


flushFailedPurchasesCachedAsPending

flushFailedPurchasesCachedAsPending: FlushFailedPurchasesCachedAsPending

Defined in

modules/amazon.ts:34


getAvailableItems

getAvailableItems: GetAvailableItems

Defined in

modules/amazon.ts:36


getItemsByType

getItemsByType: GetItemsByType

Defined in

modules/amazon.ts:35


getUser

getUser: GetUser

Defined in

modules/amazon.ts:33


startListening

startListening: StartListening

Deprecated

to be renamed to sendUnconsumedPurchases if not removed completely

Defined in

modules/amazon.ts:41


verifyLicense

verifyLicense: () => Promise\<AmazonLicensingStatus>

Type declaration

▸ (): Promise\<AmazonLicensingStatus>

Returns

Promise\<AmazonLicensingStatus>

Defined in

modules/amazon.ts:42

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15

+ \ No newline at end of file diff --git a/docs/api/interfaces/IapAndroid.AndroidModuleProps/index.html b/docs/api/interfaces/IapAndroid.AndroidModuleProps/index.html index a03f0552b..25efa49e2 100644 --- a/docs/api/interfaces/IapAndroid.AndroidModuleProps/index.html +++ b/docs/api/interfaces/IapAndroid.AndroidModuleProps/index.html @@ -4,13 +4,13 @@ IapAndroid.AndroidModuleProps | React Native IAP - +
-

IapAndroid.AndroidModuleProps

react-native-iap / Exports / IapAndroid / AndroidModuleProps

Interface: AndroidModuleProps

IapAndroid.AndroidModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

acknowledgePurchase

acknowledgePurchase: AcknowledgePurchase

Defined in

modules/android.ts:68


buyItemByType

buyItemByType: BuyItemByType

Defined in

modules/android.ts:67


consumeProduct

consumeProduct: ConsumeProduct

Defined in

modules/android.ts:69


flushFailedPurchasesCachedAsPending

flushFailedPurchasesCachedAsPending: FlushFailedPurchasesCachedAsPending

Defined in

modules/android.ts:63


getAvailableItemsByType

getAvailableItemsByType: GetAvailableItemsByType

Defined in

modules/android.ts:65


getItemsByType

getItemsByType: GetItemsByType

Defined in

modules/android.ts:64


getPackageName

getPackageName: GetPackageName

Defined in

modules/android.ts:72


getPurchaseHistoryByType

getPurchaseHistoryByType: GetPurchaseHistoryByType

Defined in

modules/android.ts:66


isFeatureSupported

isFeatureSupported: (feature: FeatureType) => Promise\<boolean>

Type declaration

▸ (feature): Promise\<boolean>

Parameters
NameType
featureFeatureType
Returns

Promise\<boolean>

Defined in

modules/android.ts:73


startListening

startListening: StartListening

Deprecated

to be renamed to sendUnconsumedPurchases if not removed completely

Defined in

modules/android.ts:71

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15

- +

IapAndroid.AndroidModuleProps

react-native-iap / Exports / IapAndroid / AndroidModuleProps

Interface: AndroidModuleProps

IapAndroid.AndroidModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

acknowledgePurchase

acknowledgePurchase: AcknowledgePurchase

Defined in

modules/android.ts:68


buyItemByType

buyItemByType: BuyItemByType

Defined in

modules/android.ts:67


consumeProduct

consumeProduct: ConsumeProduct

Defined in

modules/android.ts:69


flushFailedPurchasesCachedAsPending

flushFailedPurchasesCachedAsPending: FlushFailedPurchasesCachedAsPending

Defined in

modules/android.ts:63


getAvailableItemsByType

getAvailableItemsByType: GetAvailableItemsByType

Defined in

modules/android.ts:65


getItemsByType

getItemsByType: GetItemsByType

Defined in

modules/android.ts:64


getPackageName

getPackageName: GetPackageName

Defined in

modules/android.ts:72


getPurchaseHistoryByType

getPurchaseHistoryByType: GetPurchaseHistoryByType

Defined in

modules/android.ts:66


isFeatureSupported

isFeatureSupported: (feature: FeatureType) => Promise\<boolean>

Type declaration

▸ (feature): Promise\<boolean>

Parameters
NameType
featureFeatureType
Returns

Promise\<boolean>

Defined in

modules/android.ts:73


startListening

startListening: StartListening

Deprecated

to be renamed to sendUnconsumedPurchases if not removed completely

Defined in

modules/android.ts:71

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15

+ \ No newline at end of file diff --git a/docs/api/interfaces/IapIos.IosModuleProps/index.html b/docs/api/interfaces/IapIos.IosModuleProps/index.html index 7070d2d09..62d1ec005 100644 --- a/docs/api/interfaces/IapIos.IosModuleProps/index.html +++ b/docs/api/interfaces/IapIos.IosModuleProps/index.html @@ -4,13 +4,13 @@ IapIos.IosModuleProps | React Native IAP - +
-

IapIos.IosModuleProps

react-native-iap / Exports / IapIos / IosModuleProps

Interface: IosModuleProps

IapIos.IosModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

buyProduct

buyProduct: BuyProduct

Defined in

modules/ios.ts:45


buyPromotedProduct

buyPromotedProduct: buyPromotedProduct

Defined in

modules/ios.ts:49


clearProducts

clearProducts: clearProducts

Defined in

modules/ios.ts:47


clearTransaction

clearTransaction: clearTransaction

Defined in

modules/ios.ts:46


disable

disable: () => Promise\<null>

Type declaration

▸ (): Promise\<null>

Returns

Promise\<null>

Defined in

modules/ios.ts:54


finishTransaction

finishTransaction: finishTransaction

Defined in

modules/ios.ts:51


getAvailableItems

getAvailableItems: getAvailableItems

Defined in

modules/ios.ts:44


getItems

getItems: getItems

Defined in

modules/ios.ts:43


getPendingTransactions

getPendingTransactions: getPendingTransactions

Defined in

modules/ios.ts:52


presentCodeRedemptionSheet

presentCodeRedemptionSheet: presentCodeRedemptionSheet

Defined in

modules/ios.ts:53


promotedProduct

promotedProduct: promotedProduct

Defined in

modules/ios.ts:48


requestReceipt

requestReceipt: requestReceipt

Defined in

modules/ios.ts:50

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15

- +

IapIos.IosModuleProps

react-native-iap / Exports / IapIos / IosModuleProps

Interface: IosModuleProps

IapIos.IosModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

buyProduct

buyProduct: BuyProduct

Defined in

modules/ios.ts:45


buyPromotedProduct

buyPromotedProduct: buyPromotedProduct

Defined in

modules/ios.ts:49


clearProducts

clearProducts: clearProducts

Defined in

modules/ios.ts:47


clearTransaction

clearTransaction: clearTransaction

Defined in

modules/ios.ts:46


disable

disable: () => Promise\<null>

Type declaration

▸ (): Promise\<null>

Returns

Promise\<null>

Defined in

modules/ios.ts:54


finishTransaction

finishTransaction: finishTransaction

Defined in

modules/ios.ts:51


getAvailableItems

getAvailableItems: getAvailableItems

Defined in

modules/ios.ts:44


getItems

getItems: getItems

Defined in

modules/ios.ts:43


getPendingTransactions

getPendingTransactions: getPendingTransactions

Defined in

modules/ios.ts:52


presentCodeRedemptionSheet

presentCodeRedemptionSheet: presentCodeRedemptionSheet

Defined in

modules/ios.ts:53


promotedProduct

promotedProduct: promotedProduct

Defined in

modules/ios.ts:48


requestReceipt

requestReceipt: requestReceipt

Defined in

modules/ios.ts:50

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15

+ \ No newline at end of file diff --git a/docs/api/interfaces/IapIosSk2.IosModulePropsSk2/index.html b/docs/api/interfaces/IapIosSk2.IosModulePropsSk2/index.html index 167c1c397..f1a0eba4c 100644 --- a/docs/api/interfaces/IapIosSk2.IosModulePropsSk2/index.html +++ b/docs/api/interfaces/IapIosSk2.IosModulePropsSk2/index.html @@ -4,13 +4,13 @@ IapIosSk2.IosModulePropsSk2 | React Native IAP - +
-

IapIosSk2.IosModulePropsSk2

react-native-iap / Exports / IapIosSk2 / IosModulePropsSk2

Interface: IosModulePropsSk2

IapIosSk2.IosModulePropsSk2

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

beginRefundRequest

beginRefundRequest: (sku: string) => Promise\<RefundRequestStatus>

Type declaration

▸ (sku): Promise\<RefundRequestStatus>

Parameters
NameType
skustring
Returns

Promise\<RefundRequestStatus>

Defined in

modules/iosSk2.ts:60


buyProduct

buyProduct: BuyProduct

Defined in

modules/iosSk2.ts:50


buyPromotedProduct

buyPromotedProduct: buyPromotedProduct

Defined in

modules/iosSk2.ts:54


clearProducts

clearProducts: clearProducts

Defined in

modules/iosSk2.ts:52


clearTransaction

clearTransaction: clearTransaction

Defined in

modules/iosSk2.ts:51


disable

disable: () => Promise\<null>

Type declaration

▸ (): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:59


finishTransaction

finishTransaction: finishTransaction

Defined in

modules/iosSk2.ts:55


getAvailableItems

getAvailableItems: getAvailableItems

Defined in

modules/iosSk2.ts:49


getItems

getItems: getItems

Defined in

modules/iosSk2.ts:48


getPendingTransactions

getPendingTransactions: getPendingTransactions

Defined in

modules/iosSk2.ts:56


presentCodeRedemptionSheet

presentCodeRedemptionSheet: presentCodeRedemptionSheet

Defined in

modules/iosSk2.ts:57


promotedProduct

promotedProduct: promotedProduct

Defined in

modules/iosSk2.ts:53


showManageSubscriptions

showManageSubscriptions: showManageSubscriptions

Defined in

modules/iosSk2.ts:58

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


currentEntitlement

currentEntitlement(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:44


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


isAvailable

isAvailable(): number

Returns

number

Defined in

modules/iosSk2.ts:42


isEligibleForIntroOffer

isEligibleForIntroOffer(groupID): Promise\<Boolean>

Parameters

NameType
groupIDstring

Returns

Promise\<Boolean>

Defined in

modules/iosSk2.ts:46


latestTransaction

latestTransaction(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:43


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15


subscriptionStatus

subscriptionStatus(sku): Promise\<ProductStatus[]>

Parameters

NameType
skustring

Returns

Promise\<ProductStatus[]>

Defined in

modules/iosSk2.ts:45


sync

sync(): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:47

- +

IapIosSk2.IosModulePropsSk2

react-native-iap / Exports / IapIosSk2 / IosModulePropsSk2

Interface: IosModulePropsSk2

IapIosSk2.IosModulePropsSk2

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

beginRefundRequest

beginRefundRequest: (sku: string) => Promise\<RefundRequestStatus>

Type declaration

▸ (sku): Promise\<RefundRequestStatus>

Parameters
NameType
skustring
Returns

Promise\<RefundRequestStatus>

Defined in

modules/iosSk2.ts:60


buyProduct

buyProduct: BuyProduct

Defined in

modules/iosSk2.ts:50


buyPromotedProduct

buyPromotedProduct: buyPromotedProduct

Defined in

modules/iosSk2.ts:54


clearProducts

clearProducts: clearProducts

Defined in

modules/iosSk2.ts:52


clearTransaction

clearTransaction: clearTransaction

Defined in

modules/iosSk2.ts:51


disable

disable: () => Promise\<null>

Type declaration

▸ (): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:59


finishTransaction

finishTransaction: finishTransaction

Defined in

modules/iosSk2.ts:55


getAvailableItems

getAvailableItems: getAvailableItems

Defined in

modules/iosSk2.ts:49


getItems

getItems: getItems

Defined in

modules/iosSk2.ts:48


getPendingTransactions

getPendingTransactions: getPendingTransactions

Defined in

modules/iosSk2.ts:56


presentCodeRedemptionSheet

presentCodeRedemptionSheet: presentCodeRedemptionSheet

Defined in

modules/iosSk2.ts:57


promotedProduct

promotedProduct: promotedProduct

Defined in

modules/iosSk2.ts:53


showManageSubscriptions

showManageSubscriptions: showManageSubscriptions

Defined in

modules/iosSk2.ts:58

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


currentEntitlement

currentEntitlement(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:44


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


isAvailable

isAvailable(): number

Returns

number

Defined in

modules/iosSk2.ts:42


isEligibleForIntroOffer

isEligibleForIntroOffer(groupID): Promise\<Boolean>

Parameters

NameType
groupIDstring

Returns

Promise\<Boolean>

Defined in

modules/iosSk2.ts:46


latestTransaction

latestTransaction(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:43


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15


subscriptionStatus

subscriptionStatus(sku): Promise\<ProductStatus[]>

Parameters

NameType
skustring

Returns

Promise\<ProductStatus[]>

Defined in

modules/iosSk2.ts:45


sync

sync(): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:47

+ \ No newline at end of file diff --git a/docs/api/interfaces/NativeModuleProps/index.html b/docs/api/interfaces/NativeModuleProps/index.html index 6073a6207..2446799dc 100644 --- a/docs/api/interfaces/NativeModuleProps/index.html +++ b/docs/api/interfaces/NativeModuleProps/index.html @@ -4,13 +4,13 @@ NativeModuleProps | React Native IAP - +
-

NativeModuleProps

react-native-iap / Exports / NativeModuleProps

Interface: NativeModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Methods

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Defined in

modules/common.ts:15

- +

NativeModuleProps

react-native-iap / Exports / NativeModuleProps

Interface: NativeModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Methods

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Defined in

modules/common.ts:15

+ \ No newline at end of file diff --git a/docs/api/interfaces/PricingPhaseAndroid/index.html b/docs/api/interfaces/PricingPhaseAndroid/index.html index d0a679fdf..1d51635f2 100644 --- a/docs/api/interfaces/PricingPhaseAndroid/index.html +++ b/docs/api/interfaces/PricingPhaseAndroid/index.html @@ -4,13 +4,13 @@ PricingPhaseAndroid | React Native IAP - +
-

PricingPhaseAndroid

react-native-iap / Exports / PricingPhaseAndroid

Interface: PricingPhaseAndroid

Table of contents

Properties

Properties

billingCycleCount

billingCycleCount: number

Defined in

types/index.ts:176


billingPeriod

billingPeriod: string

P1W, P1M, P1Y

Defined in

types/index.ts:175


formattedPrice

formattedPrice: string

Defined in

types/index.ts:170


priceAmountMicros

priceAmountMicros: string

Defined in

types/index.ts:177


priceCurrencyCode

priceCurrencyCode: string

Defined in

types/index.ts:171


recurrenceMode

recurrenceMode: number

Defined in

types/index.ts:178

- +

PricingPhaseAndroid

react-native-iap / Exports / PricingPhaseAndroid

Interface: PricingPhaseAndroid

Table of contents

Properties

Properties

billingCycleCount

billingCycleCount: number

Defined in

types/index.ts:176


billingPeriod

billingPeriod: string

P1W, P1M, P1Y

Defined in

types/index.ts:175


formattedPrice

formattedPrice: string

Defined in

types/index.ts:170


priceAmountMicros

priceAmountMicros: string

Defined in

types/index.ts:177


priceCurrencyCode

priceCurrencyCode: string

Defined in

types/index.ts:171


recurrenceMode

recurrenceMode: number

Defined in

types/index.ts:178

+ \ No newline at end of file diff --git a/docs/api/interfaces/ProductAndroid/index.html b/docs/api/interfaces/ProductAndroid/index.html index 3999ff3fa..4711a8c5a 100644 --- a/docs/api/interfaces/ProductAndroid/index.html +++ b/docs/api/interfaces/ProductAndroid/index.html @@ -4,13 +4,13 @@ ProductAndroid | React Native IAP - +
-

ProductAndroid

react-native-iap / Exports / ProductAndroid

Interface: ProductAndroid

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


oneTimePurchaseOfferDetails

Optional oneTimePurchaseOfferDetails: Object

Type declaration

NameType
formattedPricestring
priceAmountMicrosstring
priceCurrencyCodestring

Defined in

types/index.ts:127


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "iap" | "inapp"

Overrides

ProductCommon.type

Defined in

types/index.ts:126

- +

ProductAndroid

react-native-iap / Exports / ProductAndroid

Interface: ProductAndroid

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


oneTimePurchaseOfferDetails

Optional oneTimePurchaseOfferDetails: Object

Type declaration

NameType
formattedPricestring
priceAmountMicrosstring
priceCurrencyCodestring

Defined in

types/index.ts:127


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "iap" | "inapp"

Overrides

ProductCommon.type

Defined in

types/index.ts:126

+ \ No newline at end of file diff --git a/docs/api/interfaces/ProductCommon/index.html b/docs/api/interfaces/ProductCommon/index.html index 5264c1950..9a61cab22 100644 --- a/docs/api/interfaces/ProductCommon/index.html +++ b/docs/api/interfaces/ProductCommon/index.html @@ -4,13 +4,13 @@ ProductCommon | React Native IAP - +
-

ProductCommon

react-native-iap / Exports / ProductCommon

Interface: ProductCommon

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Defined in

types/index.ts:64


currency

currency: string

Defined in

types/index.ts:61


description

description: string

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Defined in

types/index.ts:62


originalPrice

Optional originalPrice: string

Defined in

types/index.ts:63


price

price: string

Defined in

types/index.ts:60


productId

productId: string

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Defined in

types/index.ts:57


title

title: string

Defined in

types/index.ts:58


type

type: "iap" | "inapp" | "subs" | "sub"

Defined in

types/index.ts:55

- +

ProductCommon

react-native-iap / Exports / ProductCommon

Interface: ProductCommon

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Defined in

types/index.ts:64


currency

currency: string

Defined in

types/index.ts:61


description

description: string

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Defined in

types/index.ts:62


originalPrice

Optional originalPrice: string

Defined in

types/index.ts:63


price

price: string

Defined in

types/index.ts:60


productId

productId: string

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Defined in

types/index.ts:57


title

title: string

Defined in

types/index.ts:58


type

type: "iap" | "inapp" | "subs" | "sub"

Defined in

types/index.ts:55

+ \ No newline at end of file diff --git a/docs/api/interfaces/ProductIOS/index.html b/docs/api/interfaces/ProductIOS/index.html index 66d3e4ad9..3edbdf160 100644 --- a/docs/api/interfaces/ProductIOS/index.html +++ b/docs/api/interfaces/ProductIOS/index.html @@ -4,13 +4,13 @@ ProductIOS | React Native IAP - +
-

ProductIOS

react-native-iap / Exports / ProductIOS

Interface: ProductIOS

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "iap" | "inapp"

Overrides

ProductCommon.type

Defined in

types/index.ts:134

- +

ProductIOS

react-native-iap / Exports / ProductIOS

Interface: ProductIOS

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "iap" | "inapp"

Overrides

ProductCommon.type

Defined in

types/index.ts:134

+ \ No newline at end of file diff --git a/docs/api/interfaces/ProductPurchase/index.html b/docs/api/interfaces/ProductPurchase/index.html index 5f5d276df..ea4a38d97 100644 --- a/docs/api/interfaces/ProductPurchase/index.html +++ b/docs/api/interfaces/ProductPurchase/index.html @@ -4,13 +4,13 @@ ProductPurchase | React Native IAP - +
-

ProductPurchase

react-native-iap / Exports / ProductPurchase

Interface: ProductPurchase

Hierarchy

Table of contents

Properties

Properties

appAccountToken

Optional appAccountToken: string

Defined in

types/index.ts:78


autoRenewingAndroid

Optional autoRenewingAndroid: boolean

Defined in

types/index.ts:83


dataAndroid

Optional dataAndroid: string

Defined in

types/index.ts:81


developerPayloadAndroid

Optional developerPayloadAndroid: string

Defined in

types/index.ts:87


isAcknowledgedAndroid

Optional isAcknowledgedAndroid: boolean

Defined in

types/index.ts:85


isCanceledAmazon

Optional isCanceledAmazon: boolean

Defined in

types/index.ts:94


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Defined in

types/index.ts:88


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Defined in

types/index.ts:89


originalTransactionDateIOS

Optional originalTransactionDateIOS: number

Defined in

types/index.ts:75


originalTransactionIdentifierIOS

Optional originalTransactionIdentifierIOS: string

Defined in

types/index.ts:76


packageNameAndroid

Optional packageNameAndroid: string

Defined in

types/index.ts:86


productId

productId: string

Defined in

types/index.ts:68


productIds

Optional productIds: string[]

Defined in

types/index.ts:80


purchaseStateAndroid

Optional purchaseStateAndroid: PurchaseStateAndroid

Defined in

types/index.ts:84


purchaseToken

Optional purchaseToken: string

Defined in

types/index.ts:72


quantityIOS

Optional quantityIOS: number

Defined in

types/index.ts:74


signatureAndroid

Optional signatureAndroid: string

Defined in

types/index.ts:82


transactionDate

transactionDate: number

Defined in

types/index.ts:70


transactionId

Optional transactionId: string

Defined in

types/index.ts:69


transactionReceipt

transactionReceipt: string

Defined in

types/index.ts:71


userIdAmazon

Optional userIdAmazon: string

Defined in

types/index.ts:91


userJsonAmazon

Optional userJsonAmazon: string

Defined in

types/index.ts:93


userMarketplaceAmazon

Optional userMarketplaceAmazon: string

Defined in

types/index.ts:92


verificationResultIOS

Optional verificationResultIOS: string

Defined in

types/index.ts:77

- +

ProductPurchase

react-native-iap / Exports / ProductPurchase

Interface: ProductPurchase

Hierarchy

Table of contents

Properties

Properties

appAccountToken

Optional appAccountToken: string

Defined in

types/index.ts:78


autoRenewingAndroid

Optional autoRenewingAndroid: boolean

Defined in

types/index.ts:83


dataAndroid

Optional dataAndroid: string

Defined in

types/index.ts:81


developerPayloadAndroid

Optional developerPayloadAndroid: string

Defined in

types/index.ts:87


isAcknowledgedAndroid

Optional isAcknowledgedAndroid: boolean

Defined in

types/index.ts:85


isCanceledAmazon

Optional isCanceledAmazon: boolean

Defined in

types/index.ts:94


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Defined in

types/index.ts:88


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Defined in

types/index.ts:89


originalTransactionDateIOS

Optional originalTransactionDateIOS: number

Defined in

types/index.ts:75


originalTransactionIdentifierIOS

Optional originalTransactionIdentifierIOS: string

Defined in

types/index.ts:76


packageNameAndroid

Optional packageNameAndroid: string

Defined in

types/index.ts:86


productId

productId: string

Defined in

types/index.ts:68


productIds

Optional productIds: string[]

Defined in

types/index.ts:80


purchaseStateAndroid

Optional purchaseStateAndroid: PurchaseStateAndroid

Defined in

types/index.ts:84


purchaseToken

Optional purchaseToken: string

Defined in

types/index.ts:72


quantityIOS

Optional quantityIOS: number

Defined in

types/index.ts:74


signatureAndroid

Optional signatureAndroid: string

Defined in

types/index.ts:82


transactionDate

transactionDate: number

Defined in

types/index.ts:70


transactionId

Optional transactionId: string

Defined in

types/index.ts:69


transactionReceipt

transactionReceipt: string

Defined in

types/index.ts:71


userIdAmazon

Optional userIdAmazon: string

Defined in

types/index.ts:91


userJsonAmazon

Optional userJsonAmazon: string

Defined in

types/index.ts:93


userMarketplaceAmazon

Optional userMarketplaceAmazon: string

Defined in

types/index.ts:92


verificationResultIOS

Optional verificationResultIOS: string

Defined in

types/index.ts:77

+ \ No newline at end of file diff --git a/docs/api/interfaces/PurchaseResult/index.html b/docs/api/interfaces/PurchaseResult/index.html index bb764c2d2..4b3f1b542 100644 --- a/docs/api/interfaces/PurchaseResult/index.html +++ b/docs/api/interfaces/PurchaseResult/index.html @@ -4,13 +4,13 @@ PurchaseResult | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/interfaces/RequestPurchaseAndroid/index.html b/docs/api/interfaces/RequestPurchaseAndroid/index.html index 30a8bc42a..3e8173c48 100644 --- a/docs/api/interfaces/RequestPurchaseAndroid/index.html +++ b/docs/api/interfaces/RequestPurchaseAndroid/index.html @@ -4,13 +4,13 @@ RequestPurchaseAndroid | React Native IAP - +
-

RequestPurchaseAndroid

react-native-iap / Exports / RequestPurchaseAndroid

Interface: RequestPurchaseAndroid

Hierarchy

Table of contents

Properties

Properties

isOfferPersonalized

Optional isOfferPersonalized: boolean

Inherited from

RequestPurchaseBaseAndroid.isOfferPersonalized

Defined in

types/index.ts:220


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedAccountIdAndroid

Defined in

types/index.ts:218


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedProfileIdAndroid

Defined in

types/index.ts:219


skus

skus: string[]

Defined in

types/index.ts:224

- +

RequestPurchaseAndroid

react-native-iap / Exports / RequestPurchaseAndroid

Interface: RequestPurchaseAndroid

Hierarchy

Table of contents

Properties

Properties

isOfferPersonalized

Optional isOfferPersonalized: boolean

Inherited from

RequestPurchaseBaseAndroid.isOfferPersonalized

Defined in

types/index.ts:220


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedAccountIdAndroid

Defined in

types/index.ts:218


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedProfileIdAndroid

Defined in

types/index.ts:219


skus

skus: string[]

Defined in

types/index.ts:224

+ \ No newline at end of file diff --git a/docs/api/interfaces/RequestPurchaseBaseAndroid/index.html b/docs/api/interfaces/RequestPurchaseBaseAndroid/index.html index c17a8480b..b440f1cce 100644 --- a/docs/api/interfaces/RequestPurchaseBaseAndroid/index.html +++ b/docs/api/interfaces/RequestPurchaseBaseAndroid/index.html @@ -4,13 +4,13 @@ RequestPurchaseBaseAndroid | React Native IAP - +
-
- + + \ No newline at end of file diff --git a/docs/api/interfaces/RequestPurchaseIOS/index.html b/docs/api/interfaces/RequestPurchaseIOS/index.html index 94d041d60..30d265705 100644 --- a/docs/api/interfaces/RequestPurchaseIOS/index.html +++ b/docs/api/interfaces/RequestPurchaseIOS/index.html @@ -4,13 +4,13 @@ RequestPurchaseIOS | React Native IAP - +
-

RequestPurchaseIOS

react-native-iap / Exports / RequestPurchaseIOS

Interface: RequestPurchaseIOS

Table of contents

Properties

Properties

andDangerouslyFinishTransactionAutomaticallyIOS

Optional andDangerouslyFinishTransactionAutomaticallyIOS: boolean

Defined in

types/index.ts:229


appAccountToken

Optional appAccountToken: string

UUID representing user account

Defined in

types/index.ts:233


quantity

Optional quantity: number

Defined in

types/index.ts:234


sku

sku: string

Defined in

types/index.ts:228


withOffer

Optional withOffer: PaymentDiscount

Defined in

types/index.ts:235

- +

RequestPurchaseIOS

react-native-iap / Exports / RequestPurchaseIOS

Interface: RequestPurchaseIOS

Table of contents

Properties

Properties

andDangerouslyFinishTransactionAutomaticallyIOS

Optional andDangerouslyFinishTransactionAutomaticallyIOS: boolean

Defined in

types/index.ts:229


appAccountToken

Optional appAccountToken: string

UUID representing user account

Defined in

types/index.ts:233


quantity

Optional quantity: number

Defined in

types/index.ts:234


sku

sku: string

Defined in

types/index.ts:228


withOffer

Optional withOffer: PaymentDiscount

Defined in

types/index.ts:235

+ \ No newline at end of file diff --git a/docs/api/interfaces/RequestSubscriptionAndroid/index.html b/docs/api/interfaces/RequestSubscriptionAndroid/index.html index 90ea34a67..8794af6c4 100644 --- a/docs/api/interfaces/RequestSubscriptionAndroid/index.html +++ b/docs/api/interfaces/RequestSubscriptionAndroid/index.html @@ -4,13 +4,13 @@ RequestSubscriptionAndroid | React Native IAP - +
-

RequestSubscriptionAndroid

react-native-iap / Exports / RequestSubscriptionAndroid

Interface: RequestSubscriptionAndroid

Hierarchy

Table of contents

Properties

Properties

isOfferPersonalized

Optional isOfferPersonalized: boolean

Inherited from

RequestPurchaseBaseAndroid.isOfferPersonalized

Defined in

types/index.ts:220


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedAccountIdAndroid

Defined in

types/index.ts:218


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedProfileIdAndroid

Defined in

types/index.ts:219


purchaseTokenAndroid

Optional purchaseTokenAndroid: string

Defined in

types/index.ts:256


replacementModeAndroid

Optional replacementModeAndroid: ReplacementModesAndroid

Defined in

types/index.ts:257


subscriptionOffers

subscriptionOffers: SubscriptionOffer[]

Defined in

types/index.ts:258

- +

RequestSubscriptionAndroid

react-native-iap / Exports / RequestSubscriptionAndroid

Interface: RequestSubscriptionAndroid

Hierarchy

Table of contents

Properties

Properties

isOfferPersonalized

Optional isOfferPersonalized: boolean

Inherited from

RequestPurchaseBaseAndroid.isOfferPersonalized

Defined in

types/index.ts:220


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedAccountIdAndroid

Defined in

types/index.ts:218


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Inherited from

RequestPurchaseBaseAndroid.obfuscatedProfileIdAndroid

Defined in

types/index.ts:219


purchaseTokenAndroid

Optional purchaseTokenAndroid: string

Defined in

types/index.ts:256


replacementModeAndroid

Optional replacementModeAndroid: ReplacementModesAndroid

Defined in

types/index.ts:257


subscriptionOffers

subscriptionOffers: SubscriptionOffer[]

Defined in

types/index.ts:258

+ \ No newline at end of file diff --git a/docs/api/interfaces/SubscriptionAmazon/index.html b/docs/api/interfaces/SubscriptionAmazon/index.html index 4d66c5129..8bf580f71 100644 --- a/docs/api/interfaces/SubscriptionAmazon/index.html +++ b/docs/api/interfaces/SubscriptionAmazon/index.html @@ -4,14 +4,14 @@ SubscriptionAmazon | React Native IAP - +

SubscriptionAmazon

react-native-iap / Exports / SubscriptionAmazon

Interface: SubscriptionAmazon

TODO: As of 2022-10-10, this typing is not verified against the real -Amazon API. Please update this if you have a more accurate type.

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


name

Optional name: string

Defined in

types/index.ts:190


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


platform

platform: amazon

Defined in

types/index.ts:186


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


productType

Optional productType: string

Defined in

types/index.ts:189


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "subs"

Overrides

ProductCommon.type

Defined in

types/index.ts:187

- +Amazon API. Please update this if you have a more accurate type.

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


name

Optional name: string

Defined in

types/index.ts:190


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


platform

platform: amazon

Defined in

types/index.ts:186


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


productType

Optional productType: string

Defined in

types/index.ts:189


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "subs"

Overrides

ProductCommon.type

Defined in

types/index.ts:187

+ \ No newline at end of file diff --git a/docs/api/interfaces/SubscriptionAndroid/index.html b/docs/api/interfaces/SubscriptionAndroid/index.html index e9c759f80..8b628cb60 100644 --- a/docs/api/interfaces/SubscriptionAndroid/index.html +++ b/docs/api/interfaces/SubscriptionAndroid/index.html @@ -4,13 +4,13 @@ SubscriptionAndroid | React Native IAP - +
-

SubscriptionAndroid

react-native-iap / Exports / SubscriptionAndroid

Interface: SubscriptionAndroid

Android Billing v5 type

Table of contents

Properties

Properties

description

description: string

Defined in

types/index.ts:154


name

name: string

Defined in

types/index.ts:152


platform

platform: android

Defined in

types/index.ts:150


productId

productId: string

Defined in

types/index.ts:155


productType

productType: "subs"

Defined in

types/index.ts:151


subscriptionOfferDetails

subscriptionOfferDetails: SubscriptionOfferAndroid[]

Defined in

types/index.ts:156


title

title: string

Defined in

types/index.ts:153

- +

SubscriptionAndroid

react-native-iap / Exports / SubscriptionAndroid

Interface: SubscriptionAndroid

Android Billing v5 type

Table of contents

Properties

Properties

description

description: string

Defined in

types/index.ts:154


name

name: string

Defined in

types/index.ts:152


platform

platform: android

Defined in

types/index.ts:150


productId

productId: string

Defined in

types/index.ts:155


productType

productType: "subs"

Defined in

types/index.ts:151


subscriptionOfferDetails

subscriptionOfferDetails: SubscriptionOfferAndroid[]

Defined in

types/index.ts:156


title

title: string

Defined in

types/index.ts:153

+ \ No newline at end of file diff --git a/docs/api/interfaces/SubscriptionIOS/index.html b/docs/api/interfaces/SubscriptionIOS/index.html index 695f7afdc..ef7d03f9d 100644 --- a/docs/api/interfaces/SubscriptionIOS/index.html +++ b/docs/api/interfaces/SubscriptionIOS/index.html @@ -4,13 +4,13 @@ SubscriptionIOS | React Native IAP - +
-

SubscriptionIOS

react-native-iap / Exports / SubscriptionIOS

Interface: SubscriptionIOS

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


discounts

Optional discounts: Discount[]

Defined in

types/index.ts:197


introductoryPrice

Optional introductoryPrice: string

Defined in

types/index.ts:198


introductoryPriceAsAmountIOS

Optional introductoryPriceAsAmountIOS: string

Defined in

types/index.ts:199


introductoryPriceNumberOfPeriodsIOS

Optional introductoryPriceNumberOfPeriodsIOS: string

Defined in

types/index.ts:205


introductoryPricePaymentModeIOS

Optional introductoryPricePaymentModeIOS: "" | "FREETRIAL" | "PAYASYOUGO" | "PAYUPFRONT"

Defined in

types/index.ts:200


introductoryPriceSubscriptionPeriodIOS

Optional introductoryPriceSubscriptionPeriodIOS: SubscriptionIosPeriod

Defined in

types/index.ts:206


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


platform

platform: ios

Defined in

types/index.ts:195


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


subscriptionPeriodNumberIOS

Optional subscriptionPeriodNumberIOS: string

Defined in

types/index.ts:208


subscriptionPeriodUnitIOS

Optional subscriptionPeriodUnitIOS: SubscriptionIosPeriod

Defined in

types/index.ts:209


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "subs"

Overrides

ProductCommon.type

Defined in

types/index.ts:196

- +

SubscriptionIOS

react-native-iap / Exports / SubscriptionIOS

Interface: SubscriptionIOS

Hierarchy

Table of contents

Properties

Properties

countryCode

Optional countryCode: string

Inherited from

ProductCommon.countryCode

Defined in

types/index.ts:64


currency

currency: string

Inherited from

ProductCommon.currency

Defined in

types/index.ts:61


description

description: string

Inherited from

ProductCommon.description

Defined in

types/index.ts:59


discounts

Optional discounts: Discount[]

Defined in

types/index.ts:197


introductoryPrice

Optional introductoryPrice: string

Defined in

types/index.ts:198


introductoryPriceAsAmountIOS

Optional introductoryPriceAsAmountIOS: string

Defined in

types/index.ts:199


introductoryPriceNumberOfPeriodsIOS

Optional introductoryPriceNumberOfPeriodsIOS: string

Defined in

types/index.ts:205


introductoryPricePaymentModeIOS

Optional introductoryPricePaymentModeIOS: "" | "FREETRIAL" | "PAYASYOUGO" | "PAYUPFRONT"

Defined in

types/index.ts:200


introductoryPriceSubscriptionPeriodIOS

Optional introductoryPriceSubscriptionPeriodIOS: SubscriptionIosPeriod

Defined in

types/index.ts:206


localizedPrice

localizedPrice: string

Inherited from

ProductCommon.localizedPrice

Defined in

types/index.ts:62


originalPrice

Optional originalPrice: string

Inherited from

ProductCommon.originalPrice

Defined in

types/index.ts:63


platform

platform: ios

Defined in

types/index.ts:195


price

price: string

Inherited from

ProductCommon.price

Defined in

types/index.ts:60


productId

productId: string

Inherited from

ProductCommon.productId

Defined in

types/index.ts:56


productIds

Optional productIds: string[]

Inherited from

ProductCommon.productIds

Defined in

types/index.ts:57


subscriptionPeriodNumberIOS

Optional subscriptionPeriodNumberIOS: string

Defined in

types/index.ts:208


subscriptionPeriodUnitIOS

Optional subscriptionPeriodUnitIOS: SubscriptionIosPeriod

Defined in

types/index.ts:209


title

title: string

Inherited from

ProductCommon.title

Defined in

types/index.ts:58


type

type: "subs"

Overrides

ProductCommon.type

Defined in

types/index.ts:196

+ \ No newline at end of file diff --git a/docs/api/interfaces/SubscriptionOffer/index.html b/docs/api/interfaces/SubscriptionOffer/index.html index ee44f939c..53c20ac29 100644 --- a/docs/api/interfaces/SubscriptionOffer/index.html +++ b/docs/api/interfaces/SubscriptionOffer/index.html @@ -4,13 +4,13 @@ SubscriptionOffer | React Native IAP - + - + + \ No newline at end of file diff --git a/docs/api/interfaces/SubscriptionOfferAndroid/index.html b/docs/api/interfaces/SubscriptionOfferAndroid/index.html index df967c88f..8b9a74141 100644 --- a/docs/api/interfaces/SubscriptionOfferAndroid/index.html +++ b/docs/api/interfaces/SubscriptionOfferAndroid/index.html @@ -4,13 +4,13 @@ SubscriptionOfferAndroid | React Native IAP - +
-
- + + \ No newline at end of file diff --git a/docs/api/interfaces/SubscriptionPurchase/index.html b/docs/api/interfaces/SubscriptionPurchase/index.html index 98f5fd1f8..8d0b7d87e 100644 --- a/docs/api/interfaces/SubscriptionPurchase/index.html +++ b/docs/api/interfaces/SubscriptionPurchase/index.html @@ -4,13 +4,13 @@ SubscriptionPurchase | React Native IAP - +
-

SubscriptionPurchase

react-native-iap / Exports / SubscriptionPurchase

Interface: SubscriptionPurchase

Hierarchy

Table of contents

Properties

Properties

appAccountToken

Optional appAccountToken: string

Inherited from

ProductPurchase.appAccountToken

Defined in

types/index.ts:78


autoRenewingAndroid

Optional autoRenewingAndroid: boolean

Overrides

ProductPurchase.autoRenewingAndroid

Defined in

types/index.ts:106


dataAndroid

Optional dataAndroid: string

Inherited from

ProductPurchase.dataAndroid

Defined in

types/index.ts:81


developerPayloadAndroid

Optional developerPayloadAndroid: string

Inherited from

ProductPurchase.developerPayloadAndroid

Defined in

types/index.ts:87


isAcknowledgedAndroid

Optional isAcknowledgedAndroid: boolean

Inherited from

ProductPurchase.isAcknowledgedAndroid

Defined in

types/index.ts:85


isCanceledAmazon

Optional isCanceledAmazon: boolean

Inherited from

ProductPurchase.isCanceledAmazon

Defined in

types/index.ts:94


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Inherited from

ProductPurchase.obfuscatedAccountIdAndroid

Defined in

types/index.ts:88


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Inherited from

ProductPurchase.obfuscatedProfileIdAndroid

Defined in

types/index.ts:89


originalTransactionDateIOS

Optional originalTransactionDateIOS: number

Overrides

ProductPurchase.originalTransactionDateIOS

Defined in

types/index.ts:107


originalTransactionIdentifierIOS

Optional originalTransactionIdentifierIOS: string

Overrides

ProductPurchase.originalTransactionIdentifierIOS

Defined in

types/index.ts:108


packageNameAndroid

Optional packageNameAndroid: string

Inherited from

ProductPurchase.packageNameAndroid

Defined in

types/index.ts:86


productId

productId: string

Inherited from

ProductPurchase.productId

Defined in

types/index.ts:68


productIds

Optional productIds: string[]

Inherited from

ProductPurchase.productIds

Defined in

types/index.ts:80


purchaseStateAndroid

Optional purchaseStateAndroid: PurchaseStateAndroid

Inherited from

ProductPurchase.purchaseStateAndroid

Defined in

types/index.ts:84


purchaseToken

Optional purchaseToken: string

Inherited from

ProductPurchase.purchaseToken

Defined in

types/index.ts:72


quantityIOS

Optional quantityIOS: number

Inherited from

ProductPurchase.quantityIOS

Defined in

types/index.ts:74


signatureAndroid

Optional signatureAndroid: string

Inherited from

ProductPurchase.signatureAndroid

Defined in

types/index.ts:82


transactionDate

transactionDate: number

Inherited from

ProductPurchase.transactionDate

Defined in

types/index.ts:70


transactionId

Optional transactionId: string

Inherited from

ProductPurchase.transactionId

Defined in

types/index.ts:69


transactionReasonIOS

Optional transactionReasonIOS: string

Defined in

types/index.ts:110


transactionReceipt

transactionReceipt: string

Inherited from

ProductPurchase.transactionReceipt

Defined in

types/index.ts:71


userIdAmazon

Optional userIdAmazon: string

Inherited from

ProductPurchase.userIdAmazon

Defined in

types/index.ts:91


userJsonAmazon

Optional userJsonAmazon: string

Inherited from

ProductPurchase.userJsonAmazon

Defined in

types/index.ts:93


userMarketplaceAmazon

Optional userMarketplaceAmazon: string

Inherited from

ProductPurchase.userMarketplaceAmazon

Defined in

types/index.ts:92


verificationResultIOS

Optional verificationResultIOS: string

Overrides

ProductPurchase.verificationResultIOS

Defined in

types/index.ts:109

- +

SubscriptionPurchase

react-native-iap / Exports / SubscriptionPurchase

Interface: SubscriptionPurchase

Hierarchy

Table of contents

Properties

Properties

appAccountToken

Optional appAccountToken: string

Inherited from

ProductPurchase.appAccountToken

Defined in

types/index.ts:78


autoRenewingAndroid

Optional autoRenewingAndroid: boolean

Overrides

ProductPurchase.autoRenewingAndroid

Defined in

types/index.ts:106


dataAndroid

Optional dataAndroid: string

Inherited from

ProductPurchase.dataAndroid

Defined in

types/index.ts:81


developerPayloadAndroid

Optional developerPayloadAndroid: string

Inherited from

ProductPurchase.developerPayloadAndroid

Defined in

types/index.ts:87


isAcknowledgedAndroid

Optional isAcknowledgedAndroid: boolean

Inherited from

ProductPurchase.isAcknowledgedAndroid

Defined in

types/index.ts:85


isCanceledAmazon

Optional isCanceledAmazon: boolean

Inherited from

ProductPurchase.isCanceledAmazon

Defined in

types/index.ts:94


obfuscatedAccountIdAndroid

Optional obfuscatedAccountIdAndroid: string

Inherited from

ProductPurchase.obfuscatedAccountIdAndroid

Defined in

types/index.ts:88


obfuscatedProfileIdAndroid

Optional obfuscatedProfileIdAndroid: string

Inherited from

ProductPurchase.obfuscatedProfileIdAndroid

Defined in

types/index.ts:89


originalTransactionDateIOS

Optional originalTransactionDateIOS: number

Overrides

ProductPurchase.originalTransactionDateIOS

Defined in

types/index.ts:107


originalTransactionIdentifierIOS

Optional originalTransactionIdentifierIOS: string

Overrides

ProductPurchase.originalTransactionIdentifierIOS

Defined in

types/index.ts:108


packageNameAndroid

Optional packageNameAndroid: string

Inherited from

ProductPurchase.packageNameAndroid

Defined in

types/index.ts:86


productId

productId: string

Inherited from

ProductPurchase.productId

Defined in

types/index.ts:68


productIds

Optional productIds: string[]

Inherited from

ProductPurchase.productIds

Defined in

types/index.ts:80


purchaseStateAndroid

Optional purchaseStateAndroid: PurchaseStateAndroid

Inherited from

ProductPurchase.purchaseStateAndroid

Defined in

types/index.ts:84


purchaseToken

Optional purchaseToken: string

Inherited from

ProductPurchase.purchaseToken

Defined in

types/index.ts:72


quantityIOS

Optional quantityIOS: number

Inherited from

ProductPurchase.quantityIOS

Defined in

types/index.ts:74


signatureAndroid

Optional signatureAndroid: string

Inherited from

ProductPurchase.signatureAndroid

Defined in

types/index.ts:82


transactionDate

transactionDate: number

Inherited from

ProductPurchase.transactionDate

Defined in

types/index.ts:70


transactionId

Optional transactionId: string

Inherited from

ProductPurchase.transactionId

Defined in

types/index.ts:69


transactionReasonIOS

Optional transactionReasonIOS: string

Defined in

types/index.ts:110


transactionReceipt

transactionReceipt: string

Inherited from

ProductPurchase.transactionReceipt

Defined in

types/index.ts:71


userIdAmazon

Optional userIdAmazon: string

Inherited from

ProductPurchase.userIdAmazon

Defined in

types/index.ts:91


userJsonAmazon

Optional userJsonAmazon: string

Inherited from

ProductPurchase.userJsonAmazon

Defined in

types/index.ts:93


userMarketplaceAmazon

Optional userMarketplaceAmazon: string

Inherited from

ProductPurchase.userMarketplaceAmazon

Defined in

types/index.ts:92


verificationResultIOS

Optional verificationResultIOS: string

Overrides

ProductPurchase.verificationResultIOS

Defined in

types/index.ts:109

+ \ No newline at end of file diff --git a/docs/api/modules/IapAmazon/index.html b/docs/api/modules/IapAmazon/index.html index 5e2cc6378..e268e2e6e 100644 --- a/docs/api/modules/IapAmazon/index.html +++ b/docs/api/modules/IapAmazon/index.html @@ -4,15 +4,15 @@ IapAmazon | React Native IAP - +
-

IapAmazon

react-native-iap / Exports / IapAmazon

Namespace: IapAmazon

Table of contents

Interfaces

Variables

Functions

Variables

AmazonModule

Const AmazonModule: AmazonModuleProps

Defined in

modules/amazon.ts:46

Functions

deepLinkToSubscriptionsAmazon

deepLinkToSubscriptionsAmazon(sku): Promise\<void>

Deep link to subscriptions screen on Android.

Parameters

NameTypeDescription
skuObjectThe product's SKU (on Android)
sku.isAmazonDeviceboolean-

Returns

Promise\<void>

Defined in

modules/amazon.ts:87


validateReceiptAmazon

validateReceiptAmazon(«destructured»): Promise\<ReceiptType>

Validate receipt for Amazon. NOTE: This method is here for debugging purposes only. Including +

IapAmazon

react-native-iap / Exports / IapAmazon

Namespace: IapAmazon

Table of contents

Interfaces

Variables

Functions

Variables

AmazonModule

Const AmazonModule: AmazonModuleProps

Defined in

modules/amazon.ts:46

Functions

deepLinkToSubscriptionsAmazon

deepLinkToSubscriptionsAmazon(sku): Promise\<void>

Deep link to subscriptions screen on Android.

Parameters

NameTypeDescription
skuObjectThe product's SKU (on Android)
sku.isAmazonDeviceboolean-

Returns

Promise\<void>

Defined in

modules/amazon.ts:87


validateReceiptAmazon

validateReceiptAmazon(«destructured»): Promise\<ReceiptType>

Validate receipt for Amazon. NOTE: This method is here for debugging purposes only. Including your developer secret in the binary you ship to users is potentially dangerous. -Use server side validation instead for your production builds

Parameters

NameType
«destructured»Object
› developerSecretstring
› receiptIdstring
› useSandboxboolean
› userIdstring

Returns

Promise\<ReceiptType>

Defined in

modules/amazon.ts:59


verifyLicense

verifyLicense(): Promise\<AmazonLicensingStatus>

Returns the status of verifying app's license

Returns

Promise\<AmazonLicensingStatus>

See

AmazonLicensingStatus

Defined in

modules/amazon.ts:79

- +Use server side validation instead for your production builds

Parameters

NameType
«destructured»Object
› developerSecretstring
› receiptIdstring
› useSandboxboolean
› userIdstring

Returns

Promise\<ReceiptType>

Defined in

modules/amazon.ts:59


verifyLicense

verifyLicense(): Promise\<AmazonLicensingStatus>

Returns the status of verifying app's license

Returns

Promise\<AmazonLicensingStatus>

See

AmazonLicensingStatus

Defined in

modules/amazon.ts:79

+ \ No newline at end of file diff --git a/docs/api/modules/IapAndroid/index.html b/docs/api/modules/IapAndroid/index.html index 3901828d5..3fb49be96 100644 --- a/docs/api/modules/IapAndroid/index.html +++ b/docs/api/modules/IapAndroid/index.html @@ -4,15 +4,15 @@ IapAndroid | React Native IAP - +
-

IapAndroid

react-native-iap / Exports / IapAndroid

Namespace: IapAndroid

Table of contents

Interfaces

Type Aliases

Variables

Functions

Type Aliases

BuyItemByType

Ƭ BuyItemByType: (type: string, skus: Sku[], purchaseToken: string | undefined, replacementModeAndroid: ReplacementModesAndroid | -1, obfuscatedAccountId: string | undefined, obfuscatedProfileId: string | undefined, subscriptionOffers: string[], isOfferPersonalized: boolean) => Promise\<Purchase>

Type declaration

▸ (type, skus, purchaseToken, replacementModeAndroid, obfuscatedAccountId, obfuscatedProfileId, subscriptionOffers, isOfferPersonalized): Promise\<Purchase>

Parameters
NameType
typestring
skusSku[]
purchaseTokenstring | undefined
replacementModeAndroidReplacementModesAndroid | -1
obfuscatedAccountIdstring | undefined
obfuscatedProfileIdstring | undefined
subscriptionOffersstring[]
isOfferPersonalizedboolean
Returns

Promise\<Purchase>

Defined in

modules/android.ts:38

Variables

AndroidModule

Const AndroidModule: AndroidModuleProps

Defined in

modules/android.ts:76

Functions

acknowledgePurchaseAndroid

acknowledgePurchaseAndroid(token): Promise\<boolean | void | PurchaseResult>

Acknowledge a product (on Android.) No-op on iOS.

Parameters

NameTypeDescription
tokenObjectThe product's token (on Android)
token.developerPayload?string-
token.tokenstring-

Returns

Promise\<boolean | void | PurchaseResult>

Defined in

modules/android.ts:153


deepLinkToSubscriptionsAndroid

deepLinkToSubscriptionsAndroid(sku): Promise\<void>

Deep link to subscriptions screen on Android.

Parameters

NameTypeDescription
skuObjectThe product's SKU (on Android)
sku.skustring-

Returns

Promise\<void>

Defined in

modules/android.ts:89


getInstallSourceAndroid

getInstallSourceAndroid(): InstallSourceAndroid

Returns

InstallSourceAndroid

Defined in

modules/android.ts:78


isFeatureSupported

isFeatureSupported(feature): Promise\<boolean>

Acknowledge a product (on Android.) No-op on iOS.

Parameters

NameTypeDescription
featureFeatureTypeto be checked

Returns

Promise\<boolean>

Defined in

modules/android.ts:168


validateReceiptAndroid

validateReceiptAndroid(«destructured»): Promise\<ReceiptType>

Validate receipt for Android. NOTE: This method is here for debugging purposes only. Including +

IapAndroid

react-native-iap / Exports / IapAndroid

Namespace: IapAndroid

Table of contents

Interfaces

Type Aliases

Variables

Functions

Type Aliases

BuyItemByType

Ƭ BuyItemByType: (type: string, skus: Sku[], purchaseToken: string | undefined, replacementModeAndroid: ReplacementModesAndroid | -1, obfuscatedAccountId: string | undefined, obfuscatedProfileId: string | undefined, subscriptionOffers: string[], isOfferPersonalized: boolean) => Promise\<Purchase>

Type declaration

▸ (type, skus, purchaseToken, replacementModeAndroid, obfuscatedAccountId, obfuscatedProfileId, subscriptionOffers, isOfferPersonalized): Promise\<Purchase>

Parameters
NameType
typestring
skusSku[]
purchaseTokenstring | undefined
replacementModeAndroidReplacementModesAndroid | -1
obfuscatedAccountIdstring | undefined
obfuscatedProfileIdstring | undefined
subscriptionOffersstring[]
isOfferPersonalizedboolean
Returns

Promise\<Purchase>

Defined in

modules/android.ts:38

Variables

AndroidModule

Const AndroidModule: AndroidModuleProps

Defined in

modules/android.ts:76

Functions

acknowledgePurchaseAndroid

acknowledgePurchaseAndroid(token): Promise\<boolean | void | PurchaseResult>

Acknowledge a product (on Android.) No-op on iOS.

Parameters

NameTypeDescription
tokenObjectThe product's token (on Android)
token.developerPayload?string-
token.tokenstring-

Returns

Promise\<boolean | void | PurchaseResult>

Defined in

modules/android.ts:153


deepLinkToSubscriptionsAndroid

deepLinkToSubscriptionsAndroid(sku): Promise\<void>

Deep link to subscriptions screen on Android.

Parameters

NameTypeDescription
skuObjectThe product's SKU (on Android)
sku.skustring-

Returns

Promise\<void>

Defined in

modules/android.ts:89


getInstallSourceAndroid

getInstallSourceAndroid(): InstallSourceAndroid

Returns

InstallSourceAndroid

Defined in

modules/android.ts:78


isFeatureSupported

isFeatureSupported(feature): Promise\<boolean>

Acknowledge a product (on Android.) No-op on iOS.

Parameters

NameTypeDescription
featureFeatureTypeto be checked

Returns

Promise\<boolean>

Defined in

modules/android.ts:168


validateReceiptAndroid

validateReceiptAndroid(«destructured»): Promise\<ReceiptType>

Validate receipt for Android. NOTE: This method is here for debugging purposes only. Including your access token in the binary you ship to users is potentially dangerous. -Use server side validation instead for your production builds

Parameters

NameType
«destructured»Object
› accessTokenstring
› isSub?boolean
› packageNamestring
› productIdstring
› productTokenstring

Returns

Promise\<ReceiptType>

Defined in

modules/android.ts:112

- +Use server side validation instead for your production builds

Parameters

NameType
«destructured»Object
› accessTokenstring
› isSub?boolean
› packageNamestring
› productIdstring
› productTokenstring

Returns

Promise\<ReceiptType>

Defined in

modules/android.ts:112

+ \ No newline at end of file diff --git a/docs/api/modules/IapIos/index.html b/docs/api/modules/IapIos/index.html index 78a1ba394..55dc983b4 100644 --- a/docs/api/modules/IapIos/index.html +++ b/docs/api/modules/IapIos/index.html @@ -4,25 +4,25 @@ IapIos | React Native IAP - +
-

IapIos

react-native-iap / Exports / IapIos

Namespace: IapIos

Table of contents

Interfaces

Type Aliases

Functions

Type Aliases

BuyProduct

Ƭ BuyProduct: (sku: Sku, andDangerouslyFinishTransactionAutomaticallyIOS: boolean, applicationUsername: string | undefined, quantity: number, withOffer: Record\<keyof PaymentDiscount, string> | undefined) => Promise\<Purchase>

Type declaration

▸ (sku, andDangerouslyFinishTransactionAutomaticallyIOS, applicationUsername, quantity, withOffer): Promise\<Purchase>

Parameters
NameType
skuSku
andDangerouslyFinishTransactionAutomaticallyIOSboolean
applicationUsernamestring | undefined
quantitynumber
withOfferRecord\<keyof PaymentDiscount, string> | undefined
Returns

Promise\<Purchase>

Defined in

modules/ios.ts:23

Functions

buyPromotedProductIOS

buyPromotedProductIOS(): Promise\<void>

Buy the currently selected promoted product (iOS only) -Initiates the payment process for a promoted product. Should only be called in response to the iap-promoted-product event.

Returns

Promise\<void>

Defined in

modules/ios.ts:136


clearProductsIOS

clearProductsIOS(): Promise\<void>

Clear valid Products (iOS only) -Remove all products which are validated by Apple server.

Returns

Promise\<void>

Defined in

modules/ios.ts:225


clearTransactionIOS

clearTransactionIOS(): Promise\<void>

Clear Transaction (iOS only) +

IapIos

react-native-iap / Exports / IapIos

Namespace: IapIos

Table of contents

Interfaces

Type Aliases

Functions

Type Aliases

BuyProduct

Ƭ BuyProduct: (sku: Sku, andDangerouslyFinishTransactionAutomaticallyIOS: boolean, applicationUsername: string | undefined, quantity: number, withOffer: Record\<keyof PaymentDiscount, string> | undefined) => Promise\<Purchase>

Type declaration

▸ (sku, andDangerouslyFinishTransactionAutomaticallyIOS, applicationUsername, quantity, withOffer): Promise\<Purchase>

Parameters
NameType
skuSku
andDangerouslyFinishTransactionAutomaticallyIOSboolean
applicationUsernamestring | undefined
quantitynumber
withOfferRecord\<keyof PaymentDiscount, string> | undefined
Returns

Promise\<Purchase>

Defined in

modules/ios.ts:23

Functions

buyPromotedProductIOS

buyPromotedProductIOS(): Promise\<void>

Buy the currently selected promoted product (iOS only) +Initiates the payment process for a promoted product. Should only be called in response to the iap-promoted-product event.

Returns

Promise\<void>

Defined in

modules/ios.ts:136


clearProductsIOS

clearProductsIOS(): Promise\<void>

Clear valid Products (iOS only) +Remove all products which are validated by Apple server.

Returns

Promise\<void>

Defined in

modules/ios.ts:225


clearTransactionIOS

clearTransactionIOS(): Promise\<void>

Clear Transaction (iOS only) Finish remaining transactions. Related to issue #257 and #801 link : https://github.com/hyochan/react-native-iap/issues/257 -https://github.com/hyochan/react-native-iap/issues/801

Returns

Promise\<void>

Defined in

modules/ios.ts:217


deepLinkToSubscriptionsIos

deepLinkToSubscriptionsIos(): Promise\<void>

Returns

Promise\<void>

Defined in

modules/ios.ts:228


getPendingPurchasesIOS

getPendingPurchasesIOS(): Promise\<ProductPurchase[]>

Get the current receipt base64 encoded in IOS.

Returns

Promise\<ProductPurchase[]>

Defined in

modules/ios.ts:61


getPromotedProductIOS

getPromotedProductIOS(): Promise\<null | ProductIOS>

Should Add Store Payment (iOS only) -Indicates the the App Store purchase should continue from the app instead of the App Store.

Returns

Promise\<null | ProductIOS>

promoted product

Defined in

modules/ios.ts:123


getReceiptIOS

getReceiptIOS(Requests): Promise\<undefined | null | string>

Get the current receipt base64 encoded in IOS.

The sequence should be as follows: +https://github.com/hyochan/react-native-iap/issues/801

Returns

Promise\<void>

Defined in

modules/ios.ts:217


deepLinkToSubscriptionsIos

deepLinkToSubscriptionsIos(): Promise\<void>

Returns

Promise\<void>

Defined in

modules/ios.ts:228


getPendingPurchasesIOS

getPendingPurchasesIOS(): Promise\<ProductPurchase[]>

Get the current receipt base64 encoded in IOS.

Returns

Promise\<ProductPurchase[]>

Defined in

modules/ios.ts:61


getPromotedProductIOS

getPromotedProductIOS(): Promise\<null | ProductIOS>

Should Add Store Payment (iOS only) +Indicates the the App Store purchase should continue from the app instead of the App Store.

Returns

Promise\<null | ProductIOS>

promoted product

Defined in

modules/ios.ts:123


getReceiptIOS

getReceiptIOS(Requests): Promise\<undefined | null | string>

Get the current receipt base64 encoded in IOS.

The sequence should be as follows: Call getReceiptIOS({forceRefresh: false}). That will return the cached receipt that is available on TestFlight and Production. In the case of Sandbox the receipt might not be cached, causing it to return nil. In that case you might want to let the user that they will to be prompted for credentials. If they accept, call it again with `getReceiptIOS({forceRefresh:true}) If it fails or the user declines, assume they haven't purchased any items. Reference: https://developer.apple.com/forums/thread/662350

From: https://apphud.com/blog/app-store-receipt-validation#what-is-app-store-receipt

Q: Does a receipt always exist in the app? -A: If a user downloaded the app from the App Store – yes. However, in sandbox if your app was installed via Xcode or Testflight, then there won't be a receipt until you make a purchase or restore.

Usage

import {getReceiptIOS} from 'react-native-iap';
try{
let receipt = await getReceiptIOS({forceRefresh: false});
if(!receipt){
// Let user know that they might get prompted for credentials
const shouldShowPrompt = // Display UI with details, Did user agree?. this only for Sandbox testing
if(shouldShowPrompt){
receipt = await getReceiptIOS({forceRefresh: true});
}
}
}catch(error:Error){
// error while getting the receipt, it might indicate an invalid receipt of a connection error while trying to get it
}
// If !receipt assume user doesn't own the items

Parameters

NameTypeDescription
RequestsObjectthe receipt from Bundle.main.appStoreReceiptURL. Based on the note above, looks like forceRefresh only makes sense when testing an app not downloaded from the Appstore. And only afer a direct user action.
Requests.forceRefresh?boolean-

Returns

Promise\<undefined | null | string>

The receipt data

Defined in

modules/ios.ts:100


presentCodeRedemptionSheetIOS

presentCodeRedemptionSheetIOS(): Promise\<null>

Launches a modal to register the redeem offer code in IOS.

Returns

Promise\<null>

Defined in

modules/ios.ts:115


validateReceiptIos

validateReceiptIos(«destructured»): Promise\<false | ResponseBody>

Validate receipt for iOS.

Parameters

NameType
«destructured»Object
› isTest?boolean
› receiptBodyRecord\<string, unknown>

Returns

Promise\<false | ResponseBody>

Defined in

modules/ios.ts:190

- +A: If a user downloaded the app from the App Store – yes. However, in sandbox if your app was installed via Xcode or Testflight, then there won't be a receipt until you make a purchase or restore.

Usage

import {getReceiptIOS} from 'react-native-iap';
try{
let receipt = await getReceiptIOS({forceRefresh: false});
if(!receipt){
// Let user know that they might get prompted for credentials
const shouldShowPrompt = // Display UI with details, Did user agree?. this only for Sandbox testing
if(shouldShowPrompt){
receipt = await getReceiptIOS({forceRefresh: true});
}
}
}catch(error:Error){
// error while getting the receipt, it might indicate an invalid receipt of a connection error while trying to get it
}
// If !receipt assume user doesn't own the items

Parameters

NameTypeDescription
RequestsObjectthe receipt from Bundle.main.appStoreReceiptURL. Based on the note above, looks like forceRefresh only makes sense when testing an app not downloaded from the Appstore. And only afer a direct user action.
Requests.forceRefresh?boolean-

Returns

Promise\<undefined | null | string>

The receipt data

Defined in

modules/ios.ts:100


presentCodeRedemptionSheetIOS

presentCodeRedemptionSheetIOS(): Promise\<null>

Launches a modal to register the redeem offer code in IOS.

Returns

Promise\<null>

Defined in

modules/ios.ts:115


validateReceiptIos

validateReceiptIos(«destructured»): Promise\<false | ResponseBody>

Validate receipt for iOS.

Parameters

NameType
«destructured»Object
› isTest?boolean
› receiptBodyRecord\<string, unknown>

Returns

Promise\<false | ResponseBody>

Defined in

modules/ios.ts:190

+ \ No newline at end of file diff --git a/docs/api/modules/IapIosSk2/index.html b/docs/api/modules/IapIosSk2/index.html index 37d9d7123..10e6f9d45 100644 --- a/docs/api/modules/IapIosSk2/index.html +++ b/docs/api/modules/IapIosSk2/index.html @@ -4,14 +4,14 @@ IapIosSk2 | React Native IAP - +
-

IapIosSk2

react-native-iap / Exports / IapIosSk2

Namespace: IapIosSk2

Table of contents

Interfaces

Type Aliases

Functions

Type Aliases

BuyProduct

Ƭ BuyProduct: (sku: Sku, andDangerouslyFinishTransactionAutomaticallyIOS: boolean, applicationUsername: string | undefined, quantity: number, withOffer: Record\<keyof PaymentDiscountSk2, string> | undefined) => Promise\<TransactionSk2>

Type declaration

▸ (sku, andDangerouslyFinishTransactionAutomaticallyIOS, applicationUsername, quantity, withOffer): Promise\<TransactionSk2>

Parameters
NameType
skuSku
andDangerouslyFinishTransactionAutomaticallyIOSboolean
applicationUsernamestring | undefined
quantitynumber
withOfferRecord\<keyof PaymentDiscountSk2, string> | undefined
Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:22

Functions

beginRefundRequest

beginRefundRequest(sku): Promise\<RefundRequestStatus>

Parameters

NameType
skustring

Returns

Promise\<RefundRequestStatus>

Defined in

modules/iosSk2.ts:97


currentEntitlement

currentEntitlement(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:85


finishTransaction

finishTransaction(transactionIdentifier): Promise\<Boolean>

Parameters

NameType
transactionIdentifierstring

Returns

Promise\<Boolean>

Defined in

modules/iosSk2.ts:109


isEligibleForIntroOffer

isEligibleForIntroOffer(groupID): Promise\<Boolean>

Parameters

NameType
groupIDstring

Returns

Promise\<Boolean>

Defined in

modules/iosSk2.ts:72


latestTransaction

latestTransaction(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:91


showManageSubscriptions

showManageSubscriptions(): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:103


subscriptionStatus

subscriptionStatus(sku): Promise\<ProductStatus[]>

Parameters

NameType
skustring

Returns

Promise\<ProductStatus[]>

Defined in

modules/iosSk2.ts:79


sync

sync(): Promise\<null>

Sync state with Appstore (iOS only) -https://developer.apple.com/documentation/storekit/appstore/3791906-sync

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:67

- +

IapIosSk2

react-native-iap / Exports / IapIosSk2

Namespace: IapIosSk2

Table of contents

Interfaces

Type Aliases

Functions

Type Aliases

BuyProduct

Ƭ BuyProduct: (sku: Sku, andDangerouslyFinishTransactionAutomaticallyIOS: boolean, applicationUsername: string | undefined, quantity: number, withOffer: Record\<keyof PaymentDiscountSk2, string> | undefined) => Promise\<TransactionSk2>

Type declaration

▸ (sku, andDangerouslyFinishTransactionAutomaticallyIOS, applicationUsername, quantity, withOffer): Promise\<TransactionSk2>

Parameters
NameType
skuSku
andDangerouslyFinishTransactionAutomaticallyIOSboolean
applicationUsernamestring | undefined
quantitynumber
withOfferRecord\<keyof PaymentDiscountSk2, string> | undefined
Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:22

Functions

beginRefundRequest

beginRefundRequest(sku): Promise\<RefundRequestStatus>

Parameters

NameType
skustring

Returns

Promise\<RefundRequestStatus>

Defined in

modules/iosSk2.ts:97


currentEntitlement

currentEntitlement(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:85


finishTransaction

finishTransaction(transactionIdentifier): Promise\<Boolean>

Parameters

NameType
transactionIdentifierstring

Returns

Promise\<Boolean>

Defined in

modules/iosSk2.ts:109


isEligibleForIntroOffer

isEligibleForIntroOffer(groupID): Promise\<Boolean>

Parameters

NameType
groupIDstring

Returns

Promise\<Boolean>

Defined in

modules/iosSk2.ts:72


latestTransaction

latestTransaction(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:91


showManageSubscriptions

showManageSubscriptions(): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:103


subscriptionStatus

subscriptionStatus(sku): Promise\<ProductStatus[]>

Parameters

NameType
skustring

Returns

Promise\<ProductStatus[]>

Defined in

modules/iosSk2.ts:79


sync

sync(): Promise\<null>

Sync state with Appstore (iOS only) +https://developer.apple.com/documentation/storekit/appstore/3791906-sync

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:67

+ \ No newline at end of file diff --git a/docs/api/modules/index.html b/docs/api/modules/index.html index 01e596053..cdd1c9c4f 100644 --- a/docs/api/modules/index.html +++ b/docs/api/modules/index.html @@ -4,35 +4,35 @@ modules | React Native IAP - +
-

modules

react-native-iap / Exports

react-native-iap

Table of contents

References

Namespaces

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

References

AmazonModule

Re-exports AmazonModule


AmazonModuleProps

Re-exports AmazonModuleProps


AndroidModule

Re-exports AndroidModule


AndroidModuleProps

Re-exports AndroidModuleProps


BuyItemByType

Re-exports BuyItemByType


BuyProduct

Re-exports BuyProduct


IosModuleProps

Re-exports IosModuleProps


acknowledgePurchaseAndroid

Re-exports acknowledgePurchaseAndroid


buyPromotedProductIOS

Re-exports buyPromotedProductIOS


clearProductsIOS

Re-exports clearProductsIOS


clearTransactionIOS

Re-exports clearTransactionIOS


deepLinkToSubscriptionsAmazon

Re-exports deepLinkToSubscriptionsAmazon


deepLinkToSubscriptionsAndroid

Re-exports deepLinkToSubscriptionsAndroid


deepLinkToSubscriptionsIos

Re-exports deepLinkToSubscriptionsIos


getInstallSourceAndroid

Re-exports getInstallSourceAndroid


getPendingPurchasesIOS

Re-exports getPendingPurchasesIOS


getPromotedProductIOS

Re-exports getPromotedProductIOS


getReceiptIOS

Re-exports getReceiptIOS


isFeatureSupported

Re-exports isFeatureSupported


presentCodeRedemptionSheetIOS

Re-exports presentCodeRedemptionSheetIOS


validateReceiptAmazon

Re-exports validateReceiptAmazon


validateReceiptAndroid

Re-exports validateReceiptAndroid


validateReceiptIos

Re-exports validateReceiptIos


verifyLicense

Re-exports verifyLicense

Type Aliases

Product

Ƭ Product: ProductAndroid & ProductIOS

Defined in

types/index.ts:137


Purchase

Ƭ Purchase: ProductPurchase | SubscriptionPurchase

Defined in

types/index.ts:113


RequestPurchase

Ƭ RequestPurchase: RequestPurchaseAndroid | RequestPurchaseAmazon | RequestPurchaseIOS

Defined in

types/index.ts:241


RequestPurchaseAmazon

Ƭ RequestPurchaseAmazon: RequestPurchaseIOS

As of 2022-10-12, we only use the sku field for Amazon purchases

Defined in

types/index.ts:239


RequestSubscription

Ƭ RequestSubscription: RequestSubscriptionAndroid | RequestSubscriptionAmazon | RequestSubscriptionIOS

Defined in

types/index.ts:266


RequestSubscriptionAmazon

Ƭ RequestSubscriptionAmazon: RequestSubscriptionIOS

As of 2022-10-12, we only use the sku field for Amazon subscriptions

Defined in

types/index.ts:264


RequestSubscriptionIOS

Ƭ RequestSubscriptionIOS: RequestPurchaseIOS

Defined in

types/index.ts:261


STOREKIT_OPTIONS

Ƭ STOREKIT_OPTIONS: "STOREKIT1_MODE" | "STOREKIT_HYBRID_MODE" | "STOREKIT2_MODE"

STOREKIT1_MODE: Will not enable Storekit 2 even if the device supports it. Thigs will work as before, +

modules

react-native-iap / Exports

react-native-iap

Table of contents

References

Namespaces

Enumerations

Classes

Interfaces

Type Aliases

Variables

Functions

References

AmazonModule

Re-exports AmazonModule


AmazonModuleProps

Re-exports AmazonModuleProps


AndroidModule

Re-exports AndroidModule


AndroidModuleProps

Re-exports AndroidModuleProps


BuyItemByType

Re-exports BuyItemByType


BuyProduct

Re-exports BuyProduct


IosModuleProps

Re-exports IosModuleProps


acknowledgePurchaseAndroid

Re-exports acknowledgePurchaseAndroid


buyPromotedProductIOS

Re-exports buyPromotedProductIOS


clearProductsIOS

Re-exports clearProductsIOS


clearTransactionIOS

Re-exports clearTransactionIOS


deepLinkToSubscriptionsAmazon

Re-exports deepLinkToSubscriptionsAmazon


deepLinkToSubscriptionsAndroid

Re-exports deepLinkToSubscriptionsAndroid


deepLinkToSubscriptionsIos

Re-exports deepLinkToSubscriptionsIos


getInstallSourceAndroid

Re-exports getInstallSourceAndroid


getPendingPurchasesIOS

Re-exports getPendingPurchasesIOS


getPromotedProductIOS

Re-exports getPromotedProductIOS


getReceiptIOS

Re-exports getReceiptIOS


isFeatureSupported

Re-exports isFeatureSupported


presentCodeRedemptionSheetIOS

Re-exports presentCodeRedemptionSheetIOS


validateReceiptAmazon

Re-exports validateReceiptAmazon


validateReceiptAndroid

Re-exports validateReceiptAndroid


validateReceiptIos

Re-exports validateReceiptIos


verifyLicense

Re-exports verifyLicense

Type Aliases

Product

Ƭ Product: ProductAndroid & ProductIOS

Defined in

types/index.ts:137


Purchase

Ƭ Purchase: ProductPurchase | SubscriptionPurchase

Defined in

types/index.ts:113


RequestPurchase

Ƭ RequestPurchase: RequestPurchaseAndroid | RequestPurchaseAmazon | RequestPurchaseIOS

Defined in

types/index.ts:241


RequestPurchaseAmazon

Ƭ RequestPurchaseAmazon: RequestPurchaseIOS

As of 2022-10-12, we only use the sku field for Amazon purchases

Defined in

types/index.ts:239


RequestSubscription

Ƭ RequestSubscription: RequestSubscriptionAndroid | RequestSubscriptionAmazon | RequestSubscriptionIOS

Defined in

types/index.ts:266


RequestSubscriptionAmazon

Ƭ RequestSubscriptionAmazon: RequestSubscriptionIOS

As of 2022-10-12, we only use the sku field for Amazon subscriptions

Defined in

types/index.ts:264


RequestSubscriptionIOS

Ƭ RequestSubscriptionIOS: RequestPurchaseIOS

Defined in

types/index.ts:261


STOREKIT_OPTIONS

Ƭ STOREKIT_OPTIONS: "STOREKIT1_MODE" | "STOREKIT_HYBRID_MODE" | "STOREKIT2_MODE"

STOREKIT1_MODE: Will not enable Storekit 2 even if the device supports it. Thigs will work as before, minimum changes required in the migration guide (default) HYBRID_MODE: Will enable Storekit 2 for iOS devices > 15.0 but will fallback to Sk1 on older devices There are some edge cases that you need to handle in this case (described in migration guide). This mode is for developers that are migrating to Storekit 2 but want to keep supporting older versions. STOREKIT2_MODE: Will only enable Storekit 2. This disables Storekit 1. This is for apps that -have already targeted a min version of 15 for their app.

Defined in

iap.ts:60


Sku

Ƭ Sku: string

Defined in

types/index.ts:10


Subscription

Ƭ Subscription: SubscriptionAndroid | SubscriptionAmazon | SubscriptionIOS

Defined in

types/index.ts:212


SubscriptionIosPeriod

Ƭ SubscriptionIosPeriod: "DAY" | "WEEK" | "MONTH" | "YEAR" | ""

Defined in

types/index.ts:193

Variables

Const PROMOTED_PRODUCT: "iap-promoted-product"

Defined in

types/index.ts:27

Functions

deepLinkToSubscriptions

deepLinkToSubscriptions(«destructured»): Promise\<void>

Deeplinks to native interface that allows users to manage their subscriptions

Parameters

NameType
«destructured»Object
› isAmazonDevice?boolean
› sku?string

Returns

Promise\<void>

Defined in

iap.ts:908


endConnection

endConnection(): Promise\<boolean>

Disconnects from native SDK -Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {endConnection} from 'react-native-iap';

const App = () => {
useEffect(() => {
return () => {
void endConnection();
};
}, []);

return <View />;
};

Returns

Promise\<boolean>

Defined in

iap.ts:126


finishTransaction

finishTransaction(«destructured»): Promise\<boolean | PurchaseResult>

Finish Transaction (both platforms) +have already targeted a min version of 15 for their app.

Defined in

iap.ts:60


Sku

Ƭ Sku: string

Defined in

types/index.ts:10


Subscription

Ƭ Subscription: SubscriptionAndroid | SubscriptionAmazon | SubscriptionIOS

Defined in

types/index.ts:212


SubscriptionIosPeriod

Ƭ SubscriptionIosPeriod: "DAY" | "WEEK" | "MONTH" | "YEAR" | ""

Defined in

types/index.ts:193

Variables

Const PROMOTED_PRODUCT: "iap-promoted-product"

Defined in

types/index.ts:27

Functions

deepLinkToSubscriptions

deepLinkToSubscriptions(«destructured»): Promise\<void>

Deeplinks to native interface that allows users to manage their subscriptions

Parameters

NameType
«destructured»Object
› isAmazonDevice?boolean
› sku?string

Returns

Promise\<void>

Defined in

iap.ts:908


endConnection

endConnection(): Promise\<boolean>

Disconnects from native SDK +Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {endConnection} from 'react-native-iap';

const App = () => {
useEffect(() => {
return () => {
void endConnection();
};
}, []);

return <View />;
};

Returns

Promise\<boolean>

Defined in

iap.ts:126


finishTransaction

finishTransaction(«destructured»): Promise\<boolean | PurchaseResult>

Finish Transaction (both platforms) Abstracts Finish Transaction iOS: Tells StoreKit that you have delivered the purchase to the user and StoreKit can now let go of the transaction. Call this after you have persisted the purchased state to your server or local data in your app. react-native-iap will continue to deliver the purchase updated events with the successful purchase until you finish the transaction. Even after the app has relaunched. -Android: it will consume purchase for consumables and acknowledge purchase for non-consumables.

import React from 'react';
import {Button} from 'react-native';
import {finishTransaction} from 'react-native-iap';

const App = () => {
const handlePurchase = async () => {
// ... handle the purchase request

const result = finishTransaction({purchase});
};

return <Button title="Buy product" onPress={handlePurchase} />;
};

Parameters

NameType
«destructured»Object
› developerPayloadAndroid?string
› isConsumable?boolean
› purchasePurchase

Returns

Promise\<boolean | PurchaseResult>

Android: PurchaseResult, iOS: true

Defined in

iap.ts:852


flushFailedPurchasesCachedAsPendingAndroid

flushFailedPurchasesCachedAsPendingAndroid(): Promise\<boolean>

Consume all 'ghost' purchases (that is, pending payment that already failed but is still marked as pending in Play Store cache). Android only.

Returns

Promise\<boolean>

Defined in

iap.ts:134


getAvailablePurchases

getAvailablePurchases(:boolean?): Promise\<Purchase[]>

Get all purchases made by the user (either non-consumable, or haven't been consumed yet)

Usage

import React, {useCallback} from 'react';
import {View} from 'react-native';
import {getAvailablePurchases} from 'react-native-iap';

const App = () => {
const availablePurchases = useCallback(
async () => await getAvailablePurchases(),
[],
);

return <View />;
};

Restoring purchases

You can use getAvailablePurchases() to do what's commonly understood as "restoring" purchases.

note

For debugging you may want to consume all items, you have then to iterate over the purchases returned by getAvailablePurchases().

danger

Beware that if you consume an item without having recorded the purchase in your database the user may have paid for something without getting it delivered and you will have no way to recover the receipt to validate and restore their purchase.

import React from 'react';
import {Button} from 'react-native';
import {getAvailablePurchases,finishTransaction} from 'react-native-iap';

const App = () => {
handleRestore = async () => {
try {
const purchases = await getAvailablePurchases();
const newState = {premium: false, ads: true};
let titles = [];

await Promise.all(purchases.map(async purchase => {
switch (purchase.productId) {
case 'com.example.premium':
newState.premium = true;
titles.push('Premium Version');
break;

case 'com.example.no_ads':
newState.ads = false;
titles.push('No Ads');
break;

case 'com.example.coins100':
await finishTransaction({purchase});
CoinStore.addCoins(100);
}
}));

Alert.alert(
'Restore Successful',
`You successfully restored the following purchases: ${titles.join(', ')}`,
);
} catch (error) {
console.warn(error);
Alert.alert(error.message);
}
};

return (
<Button title="Restore purchases" onPress={handleRestore} />
)
};

Parameters

NameTypeDescription
:booleanObjectWhen true, every element will also be pushed to the purchaseUpdated listener. Note that this is only for backaward compatiblity. It won't publish to transactionUpdated (Storekit2) Defaults to false
:boolean.alsoPublishToEventListener?boolean-
:boolean.automaticallyFinishRestoredTransactions?boolean-
:boolean.onlyIncludeActiveItems?boolean-

Returns

Promise\<Purchase[]>

See

https://developer.apple.com/documentation/storekit/transaction/3851204-currententitlements for details

Defined in

iap.ts:464


getProducts

getProducts(«destructured»): Promise\<Product[]>

Get a list of products (consumable and non-consumable items, but not subscriptions)

Usage

import React, {useState} from 'react';
import {Platform} from 'react-native';
import {getProducts, Product} from 'react-native-iap';

const skus = Platform.select({
ios: ['com.example.consumableIos'],
android: ['com.example.consumableAndroid'],
});

const App = () => {
const [products, setProducts] = useState<Product[]>([]);

const handleProducts = async () => {
const items = await getProducts({skus});

setProducts(items);
};

useEffect(() => {
void handleProducts();
}, []);

return (
<>
{products.map((product) => (
<Text key={product.productId}>{product.productId}</Text>
))}
</>
);
};

Just a few things to keep in mind:

  • You can get your products in componentDidMount, useEffect or another appropriate area of your app.
  • Since a user may start your app with a bad or no internet connection, preparing/getting the items more than once may be a good idea.
  • If the user has no IAPs available when the app starts first, you may want to check again when the user enters your IAP store.

Parameters

NameType
«destructured»Object
› skusstring[]

Returns

Promise\<Product[]>

Defined in

iap.ts:181


getPurchaseHistory

getPurchaseHistory(«destructured»?): Promise\<Purchase[]>

Gets an inventory of purchases made by the user regardless of consumption status

Usage

import React, {useCallback} from 'react';
import {View} from 'react-native';
import {getPurchaseHistory} from 'react-native-iap';

const App = () => {
const history = useCallback(
async () =>
await getPurchaseHistory([
'com.example.product1',
'com.example.product2',
]),
[],
);

return <View />;
};

Parameters

NameType
«destructured»Object
› alsoPublishToEventListener?boolean
› automaticallyFinishRestoredTransactions?boolean
› onlyIncludeActiveItems?boolean

Returns

Promise\<Purchase[]>

See

https://developer.apple.com/documentation/storekit/transaction/3851204-currententitlements for details

Defined in

iap.ts:337


getSubscriptions

getSubscriptions(«destructured»): Promise\<Subscription[]>

Get a list of subscriptions

Usage

import React, {useCallback} from 'react';
import {View} from 'react-native';
import {getSubscriptions} from 'react-native-iap';

const App = () => {
const subscriptions = useCallback(
async () =>
await getSubscriptions({skus:['com.example.product1', 'com.example.product2']}),
[],
);

return <View />;
};

Parameters

NameType
«destructured»Object
› skusstring[]

Returns

Promise\<Subscription[]>

Defined in

iap.ts:234


initConnection

initConnection(): Promise\<boolean>

Init module for purchase flow. Required on Android. In ios it will check whether user canMakePayment.

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {initConnection} from 'react-native-iap';

const App = () => {
useEffect(() => {
void initConnection();
}, []);

return <View />;
};

Returns

Promise\<boolean>

Defined in

iap.ts:103


isIosStorekit2

isIosStorekit2(): boolean

Returns

boolean

Defined in

internal/platform.ts:75


promotedProductListener

promotedProductListener(listener): null | EmitterSubscription

Add IAP promoted subscription event -Add IAP promoted subscription event.

Signature

promotedProductListener((productId?: string) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {promotedProductListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = promotedProductListener((productId) => {
console.log(productId);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener() => void

Returns

null | EmitterSubscription

Platform

iOS

Defined in

eventEmitter.ts:150


purchaseErrorListener

purchaseErrorListener(listener): EmitterSubscription

Add IAP purchase error event -Register a callback that gets called when there has been an error with a purchase. Returns a React Native EmitterSubscription on which you can call .remove() to stop receiving updates.

Signature

purchaseErrorListener((error: PurchaseError) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseErrorListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseErrorListener((error: PurchaseError) => {
console.log(error);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener(error: PurchaseError) => void

Returns

EmitterSubscription

Defined in

eventEmitter.ts:108


purchaseUpdatedListener

purchaseUpdatedListener(listener, errorCallback?): EmitterSubscription

Add IAP purchase event -Register a callback that gets called when the store has any updates to purchases that have not yet been finished, consumed or acknowledged. Returns a React Native EmitterSubscription on which you can call .remove() to stop receiving updates. Register you listener as soon as possible and react to updates at all times.

Signature

purchaseUpdatedListener((purchase: Purchase) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseUpdatedListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseUpdatedListener((purchase: Purchase) => {
console.log(purchase);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener(event: Purchase) => void
errorCallback?(error: unknown) => void

Returns

EmitterSubscription

Defined in

eventEmitter.ts:47


requestPurchase

requestPurchase(request): Promise\<void | ProductPurchase | ProductPurchase[]>

Request a purchase for product. This will be received in PurchaseUpdatedListener. +Android: it will consume purchase for consumables and acknowledge purchase for non-consumables.

import React from 'react';
import {Button} from 'react-native';
import {finishTransaction} from 'react-native-iap';

const App = () => {
const handlePurchase = async () => {
// ... handle the purchase request

const result = finishTransaction({purchase});
};

return <Button title="Buy product" onPress={handlePurchase} />;
};

Parameters

NameType
«destructured»Object
› developerPayloadAndroid?string
› isConsumable?boolean
› purchasePurchase

Returns

Promise\<boolean | PurchaseResult>

Android: PurchaseResult, iOS: true

Defined in

iap.ts:852


flushFailedPurchasesCachedAsPendingAndroid

flushFailedPurchasesCachedAsPendingAndroid(): Promise\<boolean>

Consume all 'ghost' purchases (that is, pending payment that already failed but is still marked as pending in Play Store cache). Android only.

Returns

Promise\<boolean>

Defined in

iap.ts:134


getAvailablePurchases

getAvailablePurchases(:boolean?): Promise\<Purchase[]>

Get all purchases made by the user (either non-consumable, or haven't been consumed yet)

Usage

import React, {useCallback} from 'react';
import {View} from 'react-native';
import {getAvailablePurchases} from 'react-native-iap';

const App = () => {
const availablePurchases = useCallback(
async () => await getAvailablePurchases(),
[],
);

return <View />;
};

Restoring purchases

You can use getAvailablePurchases() to do what's commonly understood as "restoring" purchases.

note

For debugging you may want to consume all items, you have then to iterate over the purchases returned by getAvailablePurchases().

danger

Beware that if you consume an item without having recorded the purchase in your database the user may have paid for something without getting it delivered and you will have no way to recover the receipt to validate and restore their purchase.

import React from 'react';
import {Button} from 'react-native';
import {getAvailablePurchases,finishTransaction} from 'react-native-iap';

const App = () => {
handleRestore = async () => {
try {
const purchases = await getAvailablePurchases();
const newState = {premium: false, ads: true};
let titles = [];

await Promise.all(purchases.map(async purchase => {
switch (purchase.productId) {
case 'com.example.premium':
newState.premium = true;
titles.push('Premium Version');
break;

case 'com.example.no_ads':
newState.ads = false;
titles.push('No Ads');
break;

case 'com.example.coins100':
await finishTransaction({purchase});
CoinStore.addCoins(100);
}
}));

Alert.alert(
'Restore Successful',
`You successfully restored the following purchases: ${titles.join(', ')}`,
);
} catch (error) {
console.warn(error);
Alert.alert(error.message);
}
};

return (
<Button title="Restore purchases" onPress={handleRestore} />
)
};

Parameters

NameTypeDescription
:booleanObjectWhen true, every element will also be pushed to the purchaseUpdated listener. Note that this is only for backaward compatiblity. It won't publish to transactionUpdated (Storekit2) Defaults to false
:boolean.alsoPublishToEventListener?boolean-
:boolean.automaticallyFinishRestoredTransactions?boolean-
:boolean.onlyIncludeActiveItems?boolean-

Returns

Promise\<Purchase[]>

See

https://developer.apple.com/documentation/storekit/transaction/3851204-currententitlements for details

Defined in

iap.ts:464


getProducts

getProducts(«destructured»): Promise\<Product[]>

Get a list of products (consumable and non-consumable items, but not subscriptions)

Usage

import React, {useState} from 'react';
import {Platform} from 'react-native';
import {getProducts, Product} from 'react-native-iap';

const skus = Platform.select({
ios: ['com.example.consumableIos'],
android: ['com.example.consumableAndroid'],
});

const App = () => {
const [products, setProducts] = useState<Product[]>([]);

const handleProducts = async () => {
const items = await getProducts({skus});

setProducts(items);
};

useEffect(() => {
void handleProducts();
}, []);

return (
<>
{products.map((product) => (
<Text key={product.productId}>{product.productId}</Text>
))}
</>
);
};

Just a few things to keep in mind:

  • You can get your products in componentDidMount, useEffect or another appropriate area of your app.
  • Since a user may start your app with a bad or no internet connection, preparing/getting the items more than once may be a good idea.
  • If the user has no IAPs available when the app starts first, you may want to check again when the user enters your IAP store.

Parameters

NameType
«destructured»Object
› skusstring[]

Returns

Promise\<Product[]>

Defined in

iap.ts:181


getPurchaseHistory

getPurchaseHistory(«destructured»?): Promise\<Purchase[]>

Gets an inventory of purchases made by the user regardless of consumption status

Usage

import React, {useCallback} from 'react';
import {View} from 'react-native';
import {getPurchaseHistory} from 'react-native-iap';

const App = () => {
const history = useCallback(
async () =>
await getPurchaseHistory([
'com.example.product1',
'com.example.product2',
]),
[],
);

return <View />;
};

Parameters

NameType
«destructured»Object
› alsoPublishToEventListener?boolean
› automaticallyFinishRestoredTransactions?boolean
› onlyIncludeActiveItems?boolean

Returns

Promise\<Purchase[]>

See

https://developer.apple.com/documentation/storekit/transaction/3851204-currententitlements for details

Defined in

iap.ts:337


getSubscriptions

getSubscriptions(«destructured»): Promise\<Subscription[]>

Get a list of subscriptions

Usage

import React, {useCallback} from 'react';
import {View} from 'react-native';
import {getSubscriptions} from 'react-native-iap';

const App = () => {
const subscriptions = useCallback(
async () =>
await getSubscriptions({skus:['com.example.product1', 'com.example.product2']}),
[],
);

return <View />;
};

Parameters

NameType
«destructured»Object
› skusstring[]

Returns

Promise\<Subscription[]>

Defined in

iap.ts:234


initConnection

initConnection(): Promise\<boolean>

Init module for purchase flow. Required on Android. In ios it will check whether user canMakePayment.

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {initConnection} from 'react-native-iap';

const App = () => {
useEffect(() => {
void initConnection();
}, []);

return <View />;
};

Returns

Promise\<boolean>

Defined in

iap.ts:103


isIosStorekit2

isIosStorekit2(): boolean

Returns

boolean

Defined in

internal/platform.ts:75


promotedProductListener

promotedProductListener(listener): null | EmitterSubscription

Add IAP promoted subscription event +Add IAP promoted subscription event.

Signature

promotedProductListener((productId?: string) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {promotedProductListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = promotedProductListener((productId) => {
console.log(productId);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener() => void

Returns

null | EmitterSubscription

Platform

iOS

Defined in

eventEmitter.ts:150


purchaseErrorListener

purchaseErrorListener(listener): EmitterSubscription

Add IAP purchase error event +Register a callback that gets called when there has been an error with a purchase. Returns a React Native EmitterSubscription on which you can call .remove() to stop receiving updates.

Signature

purchaseErrorListener((error: PurchaseError) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseErrorListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseErrorListener((error: PurchaseError) => {
console.log(error);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener(error: PurchaseError) => void

Returns

EmitterSubscription

Defined in

eventEmitter.ts:108


purchaseUpdatedListener

purchaseUpdatedListener(listener, errorCallback?): EmitterSubscription

Add IAP purchase event +Register a callback that gets called when the store has any updates to purchases that have not yet been finished, consumed or acknowledged. Returns a React Native EmitterSubscription on which you can call .remove() to stop receiving updates. Register you listener as soon as possible and react to updates at all times.

Signature

purchaseUpdatedListener((purchase: Purchase) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseUpdatedListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseUpdatedListener((purchase: Purchase) => {
console.log(purchase);
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener(event: Purchase) => void
errorCallback?(error: unknown) => void

Returns

EmitterSubscription

Defined in

eventEmitter.ts:47


requestPurchase

requestPurchase(request): Promise\<void | ProductPurchase | ProductPurchase[]>

Request a purchase for product. This will be received in PurchaseUpdatedListener. Request a purchase for a product (consumables or non-consumables).

The response will be received through the PurchaseUpdatedListener.

note

andDangerouslyFinishTransactionAutomatically defaults to false. We recommend -always keeping at false, and verifying the transaction receipts on the server-side.

Signature

requestPurchase(
The product's sku/ID
sku,

* You should set this to false and call finishTransaction manually when you have delivered the purchased goods to the user.
* @default false

andDangerouslyFinishTransactionAutomaticallyIOS = false,

/** Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.
obfuscatedAccountIdAndroid,

Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.
obfuscatedProfileIdAndroid,

The purchaser's user ID
applicationUsername,
): Promise<ProductPurchase>;

Usage

import React, { useState, useEffect } from 'react';
import {Button} from 'react-native';
import {requestPurchase, Product, Sku, getProducts} from 'react-native-iap';

const App = () => {
const [products, setProducts] = useState<Product[]>([]);

useEffect(() => {
const fetchProducts = async () => {
const productList = await getProducts({skus:['com.example.product']});
setProducts(productList);
}

fetchProducts();
}, []);

const handlePurchase = async (sku: Sku) => {
await requestPurchase({sku});
};

return (
<>
{products.map((product) => (
<Button
key={product.productId}
title="Buy product"
onPress={() => handlePurchase(product.productId)}
/>
))}
</>
);
};

Parameters

NameType
requestRequestPurchase

Returns

Promise\<void | ProductPurchase | ProductPurchase[]>

Defined in

iap.ts:583


requestSubscription

requestSubscription(request): Promise\<null | void | SubscriptionPurchase | SubscriptionPurchase[]>

Request a purchase for product. This will be received in PurchaseUpdatedListener. +always keeping at false, and verifying the transaction receipts on the server-side.

Signature

requestPurchase(
The product's sku/ID
sku,

* You should set this to false and call finishTransaction manually when you have delivered the purchased goods to the user.
* @default false

andDangerouslyFinishTransactionAutomaticallyIOS = false,

/** Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.
obfuscatedAccountIdAndroid,

Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.
obfuscatedProfileIdAndroid,

The purchaser's user ID
applicationUsername,
): Promise<ProductPurchase>;

Usage

import React, { useState, useEffect } from 'react';
import {Button} from 'react-native';
import {requestPurchase, Product, Sku, getProducts} from 'react-native-iap';

const App = () => {
const [products, setProducts] = useState<Product[]>([]);

useEffect(() => {
const fetchProducts = async () => {
const productList = await getProducts({skus:['com.example.product']});
setProducts(productList);
}

fetchProducts();
}, []);

const handlePurchase = async (sku: Sku) => {
await requestPurchase({sku});
};

return (
<>
{products.map((product) => (
<Button
key={product.productId}
title="Buy product"
onPress={() => handlePurchase(product.productId)}
/>
))}
</>
);
};

Parameters

NameType
requestRequestPurchase

Returns

Promise\<void | ProductPurchase | ProductPurchase[]>

Defined in

iap.ts:583


requestSubscription

requestSubscription(request): Promise\<null | void | SubscriptionPurchase | SubscriptionPurchase[]>

Request a purchase for product. This will be received in PurchaseUpdatedListener. Request a purchase for a subscription.

The response will be received through the PurchaseUpdatedListener.

note

andDangerouslyFinishTransactionAutomatically defaults to false. We recommend -always keeping at false, and verifying the transaction receipts on the server-side.

Signature

requestSubscription(
The product's sku/ID
sku,

* You should set this to false and call finishTransaction manually when you have delivered the purchased goods to the user.
* @default false

andDangerouslyFinishTransactionAutomaticallyIOS = false,

purchaseToken that the user is upgrading or downgrading from (Android).
purchaseTokenAndroid,

UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY, IMMEDIATE_WITH_TIME_PRORATION, IMMEDIATE_AND_CHARGE_PRORATED_PRICE, IMMEDIATE_WITHOUT_PRORATION, DEFERRED
prorationModeAndroid = -1,

/** Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.
obfuscatedAccountIdAndroid,

Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.
obfuscatedProfileIdAndroid,

The purchaser's user ID
applicationUsername,
): Promise<SubscriptionPurchase>

Usage

import React, {useCallback} from 'react';
import {Button} from 'react-native';
import {
requestSubscription,
Product,
Sku,
getSubscriptions,
} from 'react-native-iap';

const App = () => {
const subscriptions = useCallback(
async () => getSubscriptions(['com.example.subscription']),
[],
);

const handlePurchase = async (sku: Sku) => {
await requestSubscription({sku});
};

return (
<>
{subscriptions.map((subscription) => (
<Button
key={subscription.productId}
title="Buy subscription"
onPress={() => handlePurchase(subscription.productId)}
/>
))}
</>
);
};

Parameters

NameType
requestRequestSubscription

Returns

Promise\<null | void | SubscriptionPurchase | SubscriptionPurchase[]>

Defined in

iap.ts:739


setup

setup(«destructured»?): void

Parameters

NameType
«destructured»Object
› storekitMode?STOREKIT_OPTIONS

Returns

void

Defined in

iap.ts:65


transactionListener

transactionListener(listener): null | EmitterSubscription

Updated transactions for iOS Sk2 +always keeping at false, and verifying the transaction receipts on the server-side.

Signature

requestSubscription(
The product's sku/ID
sku,

* You should set this to false and call finishTransaction manually when you have delivered the purchased goods to the user.
* @default false

andDangerouslyFinishTransactionAutomaticallyIOS = false,

purchaseToken that the user is upgrading or downgrading from (Android).
purchaseTokenAndroid,

UNKNOWN_SUBSCRIPTION_UPGRADE_DOWNGRADE_POLICY, IMMEDIATE_WITH_TIME_PRORATION, IMMEDIATE_AND_CHARGE_PRORATED_PRICE, IMMEDIATE_WITHOUT_PRORATION, DEFERRED
prorationModeAndroid = -1,

/** Specifies an optional obfuscated string that is uniquely associated with the user's account in your app.
obfuscatedAccountIdAndroid,

Specifies an optional obfuscated string that is uniquely associated with the user's profile in your app.
obfuscatedProfileIdAndroid,

The purchaser's user ID
applicationUsername,
): Promise<SubscriptionPurchase>

Usage

import React, {useCallback} from 'react';
import {Button} from 'react-native';
import {
requestSubscription,
Product,
Sku,
getSubscriptions,
} from 'react-native-iap';

const App = () => {
const subscriptions = useCallback(
async () => getSubscriptions(['com.example.subscription']),
[],
);

const handlePurchase = async (sku: Sku) => {
await requestSubscription({sku});
};

return (
<>
{subscriptions.map((subscription) => (
<Button
key={subscription.productId}
title="Buy subscription"
onPress={() => handlePurchase(subscription.productId)}
/>
))}
</>
);
};

Parameters

NameType
requestRequestSubscription

Returns

Promise\<null | void | SubscriptionPurchase | SubscriptionPurchase[]>

Defined in

iap.ts:739


setup

setup(«destructured»?): void

Parameters

NameType
«destructured»Object
› storekitMode?STOREKIT_OPTIONS

Returns

void

Defined in

iap.ts:65


transactionListener

transactionListener(listener): null | EmitterSubscription

Updated transactions for iOS Sk2 Register a callback that gets called when the store has any updates to transactions related to purchases that have not yet been finished, consumed or acknowledged. Returns a React Native EmitterSubscription on which you can call .remove() to stop receiving updates. Register you listener as soon as possible and react to updates at all times.

*Warning** -This is only available for iOS 15 and higher and Storekit 2 is activated

Signature

purchaseUpdatedListener((transactionOrError: TransactionOrError) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseUpdatedListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseUpdatedListener((transactionOrError: TransactionOrError) => {
if(transactionOrError.transaction){
console.log("There's an update to a transaction", transactionOrError.transaction);
}else{
console.log("There's been an error with a received transaction")
}
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener(event: TransactionEvent) => void

Returns

null | EmitterSubscription

Platform

iOS (Sk2)

Defined in

eventEmitter.ts:201


useIAP

useIAP(): IAP_STATUS

Returns

IAP_STATUS

Defined in

hooks/useIAP.ts:44


useIAPContext

useIAPContext(): IAPContextType

Returns

IAPContextType

Defined in

hooks/withIAPContext.tsx:45


withIAPContext

withIAPContext\<T>(Component): (props: T) => Element

Type parameters

Name
T

Parameters

NameType
ComponentComponentType\<T>

Returns

fn

▸ (props): Element

Parameters
NameType
propsT
Returns

Element

Defined in

hooks/withIAPContext.tsx:55

- +This is only available for iOS 15 and higher and Storekit 2 is activated

Signature

purchaseUpdatedListener((transactionOrError: TransactionOrError) => {});

Usage

import React, {useEffect} from 'react';
import {View} from 'react-native';
import {purchaseUpdatedListener} from 'react-native-iap';

const App = () => {
useEffect(() => {
const subscription = purchaseUpdatedListener((transactionOrError: TransactionOrError) => {
if(transactionOrError.transaction){
console.log("There's an update to a transaction", transactionOrError.transaction);
}else{
console.log("There's been an error with a received transaction")
}
});

return () => {
subscription.remove();
};
}, []);

return <View />;
};

Parameters

NameType
listener(event: TransactionEvent) => void

Returns

null | EmitterSubscription

Platform

iOS (Sk2)

Defined in

eventEmitter.ts:201


useIAP

useIAP(): IAP_STATUS

Returns

IAP_STATUS

Defined in

hooks/useIAP.ts:44


useIAPContext

useIAPContext(): IAPContextType

Returns

IAPContextType

Defined in

hooks/withIAPContext.tsx:45


withIAPContext

withIAPContext\<T>(Component): (props: T) => Element

Type parameters

Name
T

Parameters

NameType
ComponentComponentType\<T>

Returns

fn

▸ (props): Element

Parameters
NameType
propsT
Returns

Element

Defined in

hooks/withIAPContext.tsx:55

+ \ No newline at end of file diff --git a/docs/faq/index.html b/docs/faq/index.html index d0fd8219e..bc1b72771 100644 --- a/docs/faq/index.html +++ b/docs/faq/index.html @@ -4,7 +4,7 @@ FAQ | React Native IAP - + @@ -27,7 +27,7 @@ https://github.com/hyochan/react-native-iap/issues/1272#issuecomment-800131501. Also, you may try to add storekit.

  • For Android, hope you to check this one. https://github.com/hyochan/react-native-iap/issues/124#issuecomment-386593185

  • Update listener called many times on iOS (Storekit 1)

    This is not what happens typically in production. This is a design flaw in the native API. Some developers opt to create a new account everytime. Some others filter out the duplicate transactions.

    What you're seeing with multiple process purchase calls is actually normal in the case of auto-renewing subscriptions. When you test in the sandbox those subscriptions renew very quickly (how fast depends on sub period) and you can often see several of those appear in the queue after an app restart. Also, if a purchase hasn't been successfully completed (which is likely given those exceptions) then they can remain in the queue and result in multiple calls to your ProcessPurchase on every app restart until the problem is resolved. Note This is not a problem caused by react-native-iap.

    - + \ No newline at end of file diff --git a/docs/get-started/index.html b/docs/get-started/index.html index 2397baf43..7be5f1c3a 100644 --- a/docs/get-started/index.html +++ b/docs/get-started/index.html @@ -4,14 +4,14 @@ Get Started | React Native IAP - +

    Get Started

    Getting started

    react-native-iap will help you access the In-App purchases capabilities of your device on iOS, and Android (Play Store and Amazon).

    note

    This library will provide the basic features to consume In-App purchases on the client-side, however you'll have to implement the server-side to validate your receipts (which is probably the most time consuming part to do it correctly).

    Requirements

    • react >= 16.13.1
    • react-native >= 0.65.1

    Installation

    Start with installing the package:

    npm install react-native-iap

    Expo

    This package cannot be used in the "Expo Go" app because it requires custom native code.

    After installing this npm package, add the config plugin to the plugins array of your app.json or app.config.js.

    {
    "expo": {
    "plugins": ["react-native-iap"]
    }
    }

    Config plugins options

    Note: every time you change the plugins or options you'll need to rebuild (and prebuild) the native app as described in the "Adding custom native code" guide.

    You can optionally provide the following config plugin options. If no config plugin options are included, the default values from the options will be added.

    Android payment provider

    You can support Play Store, Amazon AppStore or both:

    • paymentProvider (string): payment provider to configure: Play Store (default), Amazon AppStore, both
    {
    "expo": {
    "plugins": [
    [
    "react-native-iap",
    {
    "paymentProvider": "both"
    }
    ]
    ]
    }
    }

    iOS

    cd ios; pod install; cd -

    Note: For iOS 12.x, set project in Xcode as below: Build Phases -> Link Binary With Libraries -> +(Add) -> SwiftUI.framework, Optional

    You can now get started hacking!

    Android

    With Android Support

    Go to android/build.gradle and modify the following lines:

    buildscript {
    ext {
    ...
    + supportLibVersion = "28.0.0"
    }
    }

    With AndroidX

    Go to android/build.gradle and modify the following lines:

    buildscript {
    ext {
    ...
    + androidXAnnotation = "1.1.0"
    + androidXBrowser = "1.0.0"
    + minSdkVersion = 24
    + kotlinVersion = "1.8.0"
    }
    dependencies {
    ...
    + classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
    }
    }

    Configure the payment provider

    You can support either Play Store, Amazon or both.

    • To only support Play Store, go to android/app/build.gradle:
    defaultConfig {
    ...
    + missingDimensionStrategy "store", "play"
    }
    • To support both:
    android {
    ...
    + flavorDimensions "appstore"
    +
    + productFlavors {
    + googlePlay {
    + dimension "appstore"
    + missingDimensionStrategy "store", "play"
    + }
    +
    + amazon {
    + dimension "appstore"
    + missingDimensionStrategy "store", "amazon"
    + }
    + }
    }

    And you are now good to go!

    Manual installation

    iOS

    1. Open up ios/Podfile
    2. Add pod 'RNIap', :path => '../node_modules/react-native-iap'
    3. Run pod install

    Android

    1. Open up android/app/src/main/java/[...]/MainApplication.java

    2. Add import com.dooboolab.rniap.RNIapPackage; at the top of the file.

    3. Add new RNIapPackage() to the list returned by the getPackages() method

    4. Append the following lines to android/settings.gradle:

    + include ':react-native-iap'
    + project(':react-native-iap').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-iap/android')
    1. Insert the following lines inside the dependencies block in android/app/build.gradle:
    + implementation project(':react-native-iap')
    1. Finally configure the payment provider described above.
    - + \ No newline at end of file diff --git a/docs/guides/amazon-iap/index.html b/docs/guides/amazon-iap/index.html index 7e653f6d1..e36269831 100644 --- a/docs/guides/amazon-iap/index.html +++ b/docs/guides/amazon-iap/index.html @@ -4,13 +4,13 @@ Amazon IAP | React Native IAP - +
    -

    Amazon IAP

    Amazon IAP

    The guide assumes that react-native-iap is implemented in your app and works with the Play Store without issues. Here are the additional steps to configure Amazon IAP.

    Add In-App Items for your app

    1. Create "In-App Items" using Amazon Developer portal for your app. Amazon put up detailed instructions at https://developer.amazon.com/docs/in-app-purchasing/iap-create-and-submit-iap-items.html

    2. Add this a call to RNIapActivityListener.registerActivity(this); inside your MainActivity's onCreate method. This is a necessary step only when using Amazon, but adding it will not affect negatively your Google Play Android builds. E.g.:


    import com.dooboolab.rniap.RNIapActivityListener;
    ...
    public class MainActivity extends ReactActivity {
    ...
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //Needed for Amazon IAP
    RNIapActivityListener.registerActivity(this);
    }
    1. Add new SKU strings to your Iap.getProducts or Iap.getSubscriptions calls.

    App configuration

    1. The current version of Amazon IAP SDK does not play well with R8 optimization. (https://developer.amazon.com/docs/in-app-purchasing/iap-obfuscate-the-code.html).

    Add the code below in android/app/proguard-rules.pro:

    + -dontwarn com.amazon.**
    + -keep class com.amazon.** {*;}
    + -keepattributes *Annotation*

    Testing in development

    To run the example app, with the amazon provider, run:

    npm run android:amazon

    Amazon offers the App Tester tool to make In-App purchases testing easier. More information can be found here.

    Server Validation

    Amazon IAP API supports validation of In-App purchases on a remote server side. More information can be found here.

    Subscriptions

    When fetching subscriptions from Amazon, make sure to use children SKUs (so SKUs for specific period ex. monthly or annually), do not use parent subscription SKUs!

    Caveats

    Amazon does not return decimal price & currency. Only localized price as a string (ex. 11.22$), see this page.

    The package will try its best to parse the string into decimal price. If the package cannot parse the price, it will be 0. Currency is detected based on users Amazon marketplace.

    - +

    Amazon IAP

    Amazon IAP

    The guide assumes that react-native-iap is implemented in your app and works with the Play Store without issues. Here are the additional steps to configure Amazon IAP.

    Add In-App Items for your app

    1. Create "In-App Items" using Amazon Developer portal for your app. Amazon put up detailed instructions at https://developer.amazon.com/docs/in-app-purchasing/iap-create-and-submit-iap-items.html

    2. Add this a call to RNIapActivityListener.registerActivity(this); inside your MainActivity's onCreate method. This is a necessary step only when using Amazon, but adding it will not affect negatively your Google Play Android builds. E.g.:


    import com.dooboolab.rniap.RNIapActivityListener;
    ...
    public class MainActivity extends ReactActivity {
    ...
    @Override
    protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    //Needed for Amazon IAP
    RNIapActivityListener.registerActivity(this);
    }
    1. Add new SKU strings to your Iap.getProducts or Iap.getSubscriptions calls.

    App configuration

    1. The current version of Amazon IAP SDK does not play well with R8 optimization. (https://developer.amazon.com/docs/in-app-purchasing/iap-obfuscate-the-code.html).

    Add the code below in android/app/proguard-rules.pro:

    + -dontwarn com.amazon.**
    + -keep class com.amazon.** {*;}
    + -keepattributes *Annotation*

    Amazon's DRM protection

    This package includes Amazon's DRM (Digital Rights Management) protection enabled by default. Amazon's DRM allows license verification for your app, ensuring compliance and protection of your digital content. For more details, refer to the following resources:

    1. DRM Overview
    2. DRM for Android

    Disabling Amazon's DRM

    In certain cases, you may prefer not to use Amazon's DRM solution and instead implement your own custom DRM. To disable Amazon's DRM, simply add the following property to your project's gradle.properties file:

    isAmazonDrmEnabled=false

    This setting overrides the default behavior, disabling Amazon's DRM for your app.

    Testing in development

    To run the example app, with the amazon provider, run:

    npm run android:amazon

    Amazon offers the App Tester tool to make In-App purchases testing easier. More information can be found here.

    Server Validation

    Amazon IAP API supports validation of In-App purchases on a remote server side. More information can be found here.

    Subscriptions

    When fetching subscriptions from Amazon, make sure to use children SKUs (so SKUs for specific period ex. monthly or annually), do not use parent subscription SKUs!

    Caveats

    Amazon does not return decimal price & currency. Only localized price as a string (ex. 11.22$), see this page.

    The package will try its best to parse the string into decimal price. If the package cannot parse the price, it will be 0. Currency is detected based on users Amazon marketplace.

    + \ No newline at end of file diff --git a/docs/guides/lifecycle/index.html b/docs/guides/lifecycle/index.html index 298d29419..7f1663fb0 100644 --- a/docs/guides/lifecycle/index.html +++ b/docs/guides/lifecycle/index.html @@ -4,13 +4,13 @@ Lifecycle | React Native IAP - +

    Lifecycle

    Lifecycle

    Initializing

    In order to initialize the native modules, call initConnection() early in the lifecycle of your application. This should be done at a top-level component as the library caches the native connection. Initializing just before you needed is discouraged as it incurs on a performance hit. Calling this method multiple times without ending the previous connection will result in an error. Not calling this method will cause other method calls to be rejected as connection needs to be established ahead of time.

    import {initConnection} from 'react-native-iap';

    componentDidMount() {
    initConnection();
    // ...
    }

    Ending Connection

    In order to release the resources, call endConnection() when you no longer need any interaction with the library.

    import {endConnection} from 'react-native-iap';

    componentWillUnmount() {
    // ...
    endConnection();
    }

    Dos and Don'ts

    You should not call initConnection and endConnection every time you need to interact with the library. This is considered an anti-pattern as it consumes more time, resources and could lead to undesired side effects such as many callbacks.

    ✅ DO:

    import {initConnection,getProducts,endConnection} from 'react-native-iap';

    componentDidMount() {
    await initConnection();
    await getProducts(productIds)
    // ...
    }

    buyProductButtonClick() {
    // start purchase code...
    }

    subscribeButtonClick() {
    // start purchase code...
    }

    componentWillUnmount() {
    // ...
    endConnection();
    }

    ❌ DON'T :

    import {initConnection,getProducts,endConnection,initConnection,getProducts,endConnection} from 'react-native-iap';

    componentDidMount() {
    // ...
    }

    const buyProductButtonClick = async() => {
    await initConnection();
    await getProducts(productIds)
    // Purchase IAP Code...
    await endConnection();
    }

    const subscribeButtonClick = async() => {
    await initConnection();
    await getProducts(productIds)
    // Purchase Subscription Code...
    await endConnection();
    }

    componentWillUnmount() {
    // ...
    }
    - + \ No newline at end of file diff --git a/docs/guides/purchases/index.html b/docs/guides/purchases/index.html index faac61b5f..3d9a115a3 100644 --- a/docs/guides/purchases/index.html +++ b/docs/guides/purchases/index.html @@ -4,7 +4,7 @@ Purchases | React Native IAP - + @@ -12,7 +12,7 @@

    Purchases

    Purchases

    ⚠️ Purchase Flow Redesign ⚠️

    The purchase flow has been updated as a result of the findings in issue #307. The resulting flow has been redesign to not rely on Promise or Callback.

    Below are some of the specific reasons for the redesign:

    1. There may be more than one response when requesting a payment.
    2. Purchases are inter-session asynchronuous meaning requests that are made may take several hours to complete and continue to exist even after the app has been closed or crashed.
    3. The purchase may be pending and hard to track what has been done (example.
    4. The Billing Flow is an event pattern rather than a callback pattern.

    Once you have called getProducts(), and have a valid response, you can call requestPurchase(). Subscribable products can be purchased just like consumable products and users can cancel subscriptions by using the iOS System Settings.

    Before you request any purchase, you should set purchaseUpdatedListener from react-native-iap. It is recommended that you start listening to updates as soon as your application launches. And don't forget that even at launch you may receive successful purchases that either completed while your app was closed or that failed to be finished, consumed or acknowledged due to network errors or bugs.

    import {
    initConnection,
    purchaseErrorListener,
    purchaseUpdatedListener,
    type ProductPurchase,
    type PurchaseError,
    flushFailedPurchasesCachedAsPendingAndroid,
    } from 'react-native-iap';

    class App extends Component {
    purchaseUpdateSubscription = null;
    purchaseErrorSubscription = null;

    componentDidMount() {
    initConnection().then(() => {
    // we make sure that "ghost" pending payment are removed
    // (ghost = failed pending payment that are still marked as pending in Google's native Vending module cache)
    flushFailedPurchasesCachedAsPendingAndroid()
    .catch(() => {
    // exception can happen here if:
    // - there are pending purchases that are still pending (we can't consume a pending purchase)
    // in any case, you might not want to do anything special with the error
    })
    .then(() => {
    this.purchaseUpdateSubscription = purchaseUpdatedListener(
    (purchase: SubscriptionPurchase | ProductPurchase) => {
    console.log('purchaseUpdatedListener', purchase);
    const receipt = purchase.transactionReceipt;
    if (receipt) {
    yourAPI
    .deliverOrDownloadFancyInAppPurchase(
    purchase.transactionReceipt,
    )
    .then(async (deliveryResult) => {
    if (isSuccess(deliveryResult)) {
    // Tell the store that you have delivered what has been paid for.
    // Failure to do this will result in the purchase being refunded on Android and
    // the purchase event will reappear on every relaunch of the app until you succeed
    // in doing the below. It will also be impossible for the user to purchase consumables
    // again until you do this.

    // If consumable (can be purchased again)
    await finishTransaction({purchase, isConsumable: true});
    // If not consumable
    await finishTransaction({purchase, isConsumable: false});
    } else {
    // Retry / conclude the purchase is fraudulent, etc...
    }
    });
    }
    },
    );

    this.purchaseErrorSubscription = purchaseErrorListener(
    (error: PurchaseError) => {
    console.warn('purchaseErrorListener', error);
    },
    );
    });
    });
    }

    componentWillUnmount() {
    if (this.purchaseUpdateSubscription) {
    this.purchaseUpdateSubscription.remove();
    this.purchaseUpdateSubscription = null;
    }

    if (this.purchaseErrorSubscription) {
    this.purchaseErrorSubscription.remove();
    this.purchaseErrorSubscription = null;
    }
    }
    }

    Then define the method like below and call it when user press the button.

    import { Platform } from 'react-native';
    import { requestPurchase, requestSubscription, RequestPurchase } from 'react-native-iap';
    ...
    class App extends Component {
    purchase = async (sku: string) => {
    try {
    let purchaseParams: RequestPurchase = {
    sku,
    andDangerouslyFinishTransactionAutomaticallyIOS: false,
    };
    if (Platform.OS === 'android') {
    purchaseParams = { skus: [sku] };
    }
    await requestPurchase(purchaseParams);
    } catch (err) {
    console.warn(err.code, err.message);
    }
    };

    subscribe = async (sku: string, offerToken: string?) => {
    try {
    await requestSubscription({
    sku,
    ...(offerToken && {subscriptionOffers: [{sku, offerToken}]}),
    });
    } catch (err) {
    console.warn(err.code, err.message);
    }
    };

    /**
    * For one-time products
    */
    render() {
    return (
    <Pressable onPress={() => this.purchase(product.productId)}>
    {/* ... */}
    </Pressable>
    );
    }

    /**
    * For subscriptions products
    */
    render() {
    if (Platform.OS == 'android') {
    return product.subscriptionOfferDetails.map((offer) => (
    <Pressable
    onPress={() =>
    this.subscribe(product.productId, offer.offerToken)
    }
    >
    {/* ... */}
    </Pressable>
    ));
    } else {
    return (
    <Pressable
    onPress={() => this.subscribe(product.productId, null)}
    >
    {/* ... */}
    </Pressable>
    );
    }
    }
    }

    New Purchase Flow

    purchase-flow-sequence

    Most likely, you'll want to handle the “store kit flow”[[2]][apple-store-kit-flow], which happens when a user successfully pays after solving a problem with his or her account – for example, when the credit card information has expired.

    For above reason, we decided to remove buyProduct and use requestPurchase instead which doesn't rely on promise function. The purchaseUpdatedListener will receive the success purchase and purchaseErrorListener will receive all the failure result that occurred during the purchase attempt.

    Finishing a Purchase

    Purchases will keep being emitted to your purchaseUpdatedListener on every app relaunch until you finish the purchase.

    All purchases should be consumed by calling finishTransaction().

    • For consumables: Once an item is consumed, it will be removed from getAvailablePurchases() so it is up to you to record the purchase into your database before calling finishTransaction().
    • For non-consumable purchases need to be acknowledged on Android, or they will be automatically refunded after a few days. This method acknowledges a purchase when you have delivered it to your user.
    • On iOS non-consumable purchases are finished automatically but this will change in the future so it is recommended that you prepare by simply calling this method on non-consumables as well.
    • It works for both platforms. Equal to finishTransaction for iOS + consumePurchase and acknowledgePurchase for Android.
    • On Android, although you can confirm transactions through the client, Google encourages you to confirm receipts as quickly and securely as possible through the backend.
    - + \ No newline at end of file diff --git a/docs/guides/receipts/index.html b/docs/guides/receipts/index.html index db327876b..ad9b14a67 100644 --- a/docs/guides/receipts/index.html +++ b/docs/guides/receipts/index.html @@ -4,7 +4,7 @@ Receipts | React Native IAP - + @@ -21,7 +21,7 @@ with only [A], this module returns [A, B, C]).

    This is weird, but it works.

  • But, weird result is weird, so we made a new method which remove all valid products.

    If you need to clear all products, subscriptions in that array, just call clearProductsIOS(), and do the fetching job again, and you will receive what you expected.

  • Example backend (Node.js)

    Here you can find an example backend for idempotent validating of receipts on both iOS/Android and storing and serving subscription state to the client.

    - + \ No newline at end of file diff --git a/docs/guides/troubleshooting/index.html b/docs/guides/troubleshooting/index.html index 56641dd5d..b7727ab60 100644 --- a/docs/guides/troubleshooting/index.html +++ b/docs/guides/troubleshooting/index.html @@ -4,13 +4,13 @@ Troubleshooting | React Native IAP - +

    Troubleshooting

    Troubleshooting

    Recommendations

    • Before continuing any coding, ensure that you have successfully completed all forms related to agreements, bank accounts, or tax information (any bureaucratic processes associated with the app store you are using).

    Common issues

    Most of the issues encountered by users are caused by:

    • A device simulator. Use a real device for testing!
    • An incorrect usage of the library. Read the documentation.

    getProducts returns an empty array

    • Please double check if you've called initConnection.
    • Please wait for max. 24 hours to fetch your IAP products if you've just uploaded them. Related to issue.
    • For iOS, from iOS version >=13, we seem to use StoreKit to fix this issue as mentioned in stackoverflow.
    • For android, please double check issue comment here and see if you've missed something.

    getAvailablePurchases() returns an empty array

    • getAvailablePurchases() is used only when you purchase a non-consumable product. This can be restored only.
    • If you want to find out if a user subscribes the product, you should check the receipt which you should store in your own database.
    • Apple suggests you handle this in your own backend to do things like what you are trying to achieve.

    Invalid productId in iOS.

    Please try below and make sure you've done all the steps:

    1. Completed an effective "Agreements, Tax, and Banking."

    2. Setup sandbox testing account in "Users and Roles."

    3. Signed into iOS device with sandbox account in "Settings / iTunes & App Stores".

    4. Set up three In-App Purchases with the following status:

      • Ready to Submit
      • Missing Metadata
      • Waiting for Review
    5. Enable "In-App Purchase" in Xcode "Capabilities" and in Apple Developer -> "App ID" setting.

    6. Clean up builds:

      • Delete the app on device
      • Restart device
      • Quit “store” related processes in Activity Monitor
      • Development Provisioning Profile -> Clean -> Build.
    - + \ No newline at end of file diff --git a/docs/migrate_to_10.0.0/index.html b/docs/migrate_to_10.0.0/index.html index f0afd629e..2cf5db41c 100644 --- a/docs/migrate_to_10.0.0/index.html +++ b/docs/migrate_to_10.0.0/index.html @@ -4,13 +4,13 @@ Migrating to 10.0.0 | React Native IAP - +

    Migrating to 10.0.0

    Migrating to 10.0.0

    Starting with 10.0.0, the parameters to some of the methods are now objects instead of positional parameters.

    Before

    getProducts(['my_sku']);

    After

    getProducts({skus: ['my_sku']});

    Methods are now exported outside of the main module:

    Before

    import IAP from 'react-native-iap'
    ...

    IAP.requestPurchase(...)

    After

    import {requestPurchase} from 'react-native-iap';
    ...
    requestPurchase(...)

    If you want to import keeping the namespace, use:

    import * as IAP from 'react-native-iap'
    ...

    IAP.requestPurchase(...)
    - + \ No newline at end of file diff --git a/docs/migrate_to_11.0.0/index.html b/docs/migrate_to_11.0.0/index.html index 46f253ed8..ed51fbe96 100644 --- a/docs/migrate_to_11.0.0/index.html +++ b/docs/migrate_to_11.0.0/index.html @@ -4,7 +4,7 @@ Migrating to 11.0.0 | React Native IAP - + @@ -15,7 +15,7 @@ applicationUsername -> appAccountToken

    No longer available in Sk2:

    • Purchase promoted product. I haven't found the equivalent of promoted product purchase in the new SDK.

    • transactionReceipt,purchaseToken are not available on Purchases when using Sk

    • currency is no longer available in Product of Subscription objects, use localizedPrice instead

    Event Listeners

    In Sk1 we have Promoted product, purchase updated and purchase error In Sk2 we have Transaction Updated. Purchase updated and purchase error and only for backward compatibility and will be removed on a future iteration.

    Note that the Transaction Updated Listener accepts TransactionEvents that can be either an error or a valid transaction.

    Why change the Event Listeners?

    The new native libraries allow us to move away from sending events and instead returning responses for events that are generated by user interaction. Having both models becomes hard to document so we are phasing it out and keeping only one listener for events outside the normal purchase flow. For example getAvaiableItems was both posting events and returing the list of events. That won't be the case when using Sk2, it will only return the list of Transactions. If you still want to get the events published in Sk1, use the optional parameter {alsoPublishToEventListener:true} in getAvailableItems

    getAvailableItems on Sk2

    Another important distinction is that this method now returns the user's purchased items consistently. Meaning that the state of the transaction won't change when calling it a second time

    - + \ No newline at end of file diff --git a/docs/migrate_to_12.0.0/index.html b/docs/migrate_to_12.0.0/index.html index 93fb43757..9ddac812a 100644 --- a/docs/migrate_to_12.0.0/index.html +++ b/docs/migrate_to_12.0.0/index.html @@ -4,13 +4,13 @@ Migrating to 12.0.0 | React Native IAP - +

    Migrating to 12.0.0

    Migrating to 12.0.0

    This migration will focus on integrating the latest store sdk for Amazon

    AndroidManifest

    add android:exported="true" to ResponseReceiver

    The new Amazon IAP SDK needs you to include your public key.

    Instructions: https://developer.amazon.com/docs/in-app-purchasing/integrate-appstore-sdk.html#configure_key

    Added verifyLicense method

    It will return a status of the app see: AmazonLicensingStatus for values returned

    import IapAmazon from "react-native-iap"
    ...

    const status = await IapAmazon.verifyLicense()

    if(status === 'LICENSED'){
    ...
    }

    - + \ No newline at end of file diff --git a/docs/old-to-remove-available-purchase/index.html b/docs/old-to-remove-available-purchase/index.html index 551d0e67e..eec78b664 100644 --- a/docs/old-to-remove-available-purchase/index.html +++ b/docs/old-to-remove-available-purchase/index.html @@ -4,13 +4,13 @@ Available Purchase | React Native IAP - +

    Available Purchase

    Available Purchase

    PropertyTypeiOSAndComment
    productIdstringThe product ID for the product.
    transactionReceiptstringiOS: The receipt. Android: Stringified JSON of the original purchase object.
    transactionIdstringA unique order identifier for the transaction.
    transactionDatenumberThe time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
    quantityIOSnumberThe number of items purchased.
    originalTransactionDateIOSnumberFor a transaction that restores a previous transaction, the date of the original transaction.
    originalTransactionIdentifierIOSstringFor a transaction that restores a previous transaction, the transaction identifier of the original transaction.
    purchaseTokenstringA token that uniquely identifies a purchase for a given item and user pair.
    autoRenewingAndroidbooleanIndicates whether the subscription renews automatically. If true, the subscription is active, and will automatically renew on the next billing date. Otherwise, indicates that the user has canceled the subscription.
    dataAndroidstringOriginal json for purchase data.
    signatureAndroidstringThe signature of the purchase data that was signed with the private key of the developer. The data signature uses the RSASSA-PKCS1-v1_5 scheme.
    isAcknowledgedAndroidbooleanChecking if purchase has been acknowledged.
    purchaseStateAndroidnumberIndicating purchase state.
    packageNameAndroidstringGet package name.
    developerPayloadAndroidstringhttps://developer.android.com/google/play/billing/developer-payload
    obfuscatedAccountIdAndroidstringhttps://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedaccountidBuilder#setobfuscatedaccountId
    obfuscatedProfileIdAndroidstringhttps://developer.android.com/reference/com/android/billingclient/api/BillingFlowParams.Builder#setobfuscatedprofileid

    You need to test with one sandbox account, because the account holds previous purchase history.

    - + \ No newline at end of file diff --git a/docs/old-to-remove-product/index.html b/docs/old-to-remove-product/index.html index f7878431f..9646d3a7b 100644 --- a/docs/old-to-remove-product/index.html +++ b/docs/old-to-remove-product/index.html @@ -4,13 +4,13 @@ Product | React Native IAP - +

    Product

    Product

    All the following properties are String

    PropertyiOSAndComment
    priceLocalized price string, with only number (eg. 1.99).
    productIdReturns a string needed to purchase the item later.
    currencyReturns the currency code.
    countryCodeReturns the store country code.
    localizedPriceLocalized price string, with number and currency symbol (eg. $1.99).
    titleReturns the title Android and localizedTitle on iOS.
    descriptionReturns the localized description on Android and iOS.
    introductoryPriceFormatted introductory price of a subscription, including its currency sign, such as €3.99. The price doesn't include tax.
    introductoryPriceAsAmountIOSLocalized introductory price string, with only number (eg. 0.99).
    introductoryPricePaymentModeIOSThe payment mode for this product discount.
    introductoryPriceNumberOfPeriodsAn integer that indicates the number of periods the product discount is available.
    introductoryPriceNumberOfPeriodsIOSAn integer that indicates the number of periods the product discount is available.
    introductoryPriceSubscriptionPeriodAn object that defines the period for the product discount.
    introductoryPriceSubscriptionPeriodIOSAn object that defines the period for the product discount.
    subscriptionPeriodNumberIOSThe period number (in string) of subscription period.
    subscriptionPeriodUnitIOSThe period unit in DAY, WEEK, MONTH or YEAR.
    - + \ No newline at end of file diff --git a/docs/support-us/index.html b/docs/support-us/index.html index 7b1fb52f6..cfe3aa4bb 100644 --- a/docs/support-us/index.html +++ b/docs/support-us/index.html @@ -4,7 +4,7 @@ Support | React Native IAP - + @@ -12,7 +12,7 @@

    Support

    Support React Native IAP

    react-native-iap is an open source project with MIT license. We are willing to maintain this repository to support devs to monetize around the world.

    Since IAP itself is not perfect on each platform, we desperately need this project to be maintained. If you'd like to help us, please contact the maintainer: hyochan.dev@gmail.com.

    Our Sponsors

    Gold Tier

    NAMI

    Past Sponsors

    After 6 years of maintenance, we finally have an official sponsor. I am deeply grateful. 🙇🏻‍♂️

    - + \ No newline at end of file diff --git a/index.html b/index.html index 7f9a15654..039612b6b 100644 --- a/index.html +++ b/index.html @@ -4,13 +4,13 @@ React Native IAP - +
    - + \ No newline at end of file