Comments (9)
Hey @sirflo,
Definitely a good idea. As I'm defining a new unified API that'll support both iOS and Android, I'll make sure unlocalized price and currency find their way into it!
Best!
from cordova-plugin-purchase.
+1
from cordova-plugin-purchase.
Thanks, that's great news!
I'm looking forward to the new unified API.
from cordova-plugin-purchase.
What is the status on this? As for the time being, iOS sends currency:null and adds localized price only...
from cordova-plugin-purchase.
The pull request/suggestion was for the previous non-unified version of the plugin. I haven't checked if the commit can be applied to the current version (though the changes are minimal).
Have you tried if currency
is returning something useful when using the plugin from our old fork? https://github.com/platogo/PhoneGap-InAppPurchase-iOS/tree/currency-code
from cordova-plugin-purchase.
Unfortunately, after applying your changes the currency field still returns null. But the price field is now numerical (not localizedPrice).
from cordova-plugin-purchase.
I have found out why it didn't work. The problem was that the JavaScript implementation did not pass on the new variables from the iOS / Android native module. After adding those, everything works as expected!
from cordova-plugin-purchase.
I could really do with an unlocalized price for the same reason as the OP.
@j3k0 is there any progress on this? I'd be happy to make an attempt at adding this if you could point me in the right direction.
from cordova-plugin-purchase.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from cordova-plugin-purchase.
Related Issues (20)
- Detecting invalid products does not work in v13 HOT 5
- iOS Unable to complete a consumable product purchase HOT 3
- Not found error for PAID_SUBSCRIPTION, CONSUMABLE works fine (Google Play) HOT 4
- Micro Example uses CdvPurchase.CONSUMABLE instead of CdvPurchase.ProductType.CONSUMABLE
- How to detect active subscription when visiting subscription page HOT 3
- iOS error 6777001, Setup failed, during store initialization HOT 1
- Incomplete Content-Security-Policy example
- Repurchase an expired subscription IOS HOT 1
- getOffer returns nothing on iOS HOT 3
- Android register product is failed, store.product gives blank array[], But Work fine in Ios HOT 4
- Initialize function never resolves on Android in case of errors HOT 2
- Create CdvPurchase... printing twice HOT 2
- Validate receipt on app startup on V13 HOT 4
- Documentation issue/question HOT 2
- [Android] Issue BILLING_UNAVAILABLE code 6777003 when try to make purchase HOT 1
- Check if user has an active subscription HOT 5
- iOS purchase popup trigger multiple times and unable to get transaction details HOT 18
- iOS won't let me subscribe again, but works on Android HOT 8
- store.restorePurchases() not work on V13 [restoreFailed: 6777010] HOT 6
- In-app purchase not working after publishing iOS app to App Store HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cordova-plugin-purchase.