gazaret / react-native-cloudpayments Goto Github PK
View Code? Open in Web Editor NEWCloudPayments SDK for React Native
CloudPayments SDK for React Native
On android when you run react-native link react-native-cloudpayments
on a clean project you should manually add the following to your MainApplication.java
:
import com.rncloudpayments.RCTCloudPaymentsPackage;
...
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new RCTCloudPaymentsPackage()
);
}
Is there any plans to add 3ds support?
Go to https://www.npmjs.com/package/react-native-cloudpayments
Look at the example. There is a wrong importing package (there is no 's' to the end):
import RNCloudPayment from 'react-native-cloudpayment';
It should be like: import RNCloudPayment from 'react-native-cloudpayments';
There is another issue of example:
RNCloudPayment.getType(demoCard.number, demoCard.extDate, demoCard.cvvCode) .then(cardType => { console.log(getType); // MasterCard });
It will throw an exception because there is no getType
variable. it should be cardType
:
RNCloudPayment.getType(demoCard.number, demoCard.extDate, demoCard.cvvCode) .then(cardType => { console.log(cardType ); // MasterCard });
When published in the play market, it rejects with the following text, the problem is in the old cloudpayments sdk, need to update the sdk to version 1.2.2 at least.
We reviewed your app’s Data safety form in Play Console and found discrepancies between it and how the app collects and shares user data. All apps are required to complete an accurate Data safety form that discloses their data collection and sharing practices - this is required even if your app does not collect any user data.
We detected user data transmitted off device that you have not disclosed in your app’s Data safety form as user data collected.
You must ensure that your app’s Data safety section accurately reflects your app’s data collection, sharing, and handling practices. This includes data collected and handled through any third-party libraries or SDKs used in your app. When available, we’ve included details on SDKs that contain code similar to the code in your APK that may be sending user data off device. You can check if your app uses any of these SDKs, but note that this list of SDKs may not be exhaustive. You must review and account for all data collected and shared by your app.
Issue details
We found an issue in the following area(s):
Version code 100004: Policy Declaration - Data Safety Section: Location Data Type - Precise Location
About the Data safety section in Google Play User Data policy
Your app must be in compliance with this policy. If your app continues to be non-compliant, your app updates will be rejected and your app may face additional enforcement actions in the future.
Please make changes to align your app’s Data safety form with the app’s behavior. This can be done by either:
Updating your form in Play Console to declare collection of Data Types noted below; or
Removing unwanted functionality and attributable code that collects this user data from your app or libraries used in your app, and when applicable to deactivate all non-compliant APKs.
To deactivate non-compliant APKS, you can create a new release and upload a compliant APK to each track containing the non-compliant APKs.
Be sure to increment the APK version code. If using staged rollout, be sure to set the release to 100% rollout.
For helpful resources, you can:
Learn more about how to [provide app privacy and security information for Google Play's Data safety section](https://notifications.google.com/g/p/ANiao5pqzGVql3QwET6jyq85P7H83TtXswxOmVm-XnTfiwHZGF5eHAhjUY-jBiaiB3yCOqc2Y55a7YaD9vwb6vDN5ED5KOclsU47TE79TLd2qpwOslhJN1Smi4UXW72ZRe0wl2D02q3OSX7CAHEQDpIxOKUNdxbsKMLBuVypCShTPVo2bLfWsQY-c0uQOxEOug0TEcNgQhhD1kXiqzefU9L_1qobiupu3bcT2a4Ac3-9dEJvWII_XGfuJgbeCa0v1n_28Q).
Watch the [Google Play PolicyBytes - Data safety form walkthrough](https://notifications.google.com/g/p/ANiao5r-_2Xbiz7foO6iavGF36LChZaAmg4BOkUGJ7hYneZWzxQ--vDGv16p1lnFi8X3eYIyMj21-_-_IZotSLKjrzN_zsaXK9BA5rIZLUBbgJzJ5SPNhttR14StAtvkSRvkj90uqo9ZhCLT85ejRin6LSny0bx_CQGWiBTUV4gC9aA1Ap6IjPNafQcyxk-fgjwtCYMTmhgocBFIQnPuUON7gVbcKMQ5).
Check [Google Play SDK Index](https://notifications.google.com/g/p/ANiao5om_9X5EKVWAS3eJiqGEducJMdcCUWsGLx_u0ULFRFl9vEeJAhhDzRnxYLUh_quto5v7VBuRTOMWUmSPeusOO19X5OqzLSfUEhr7nbnW8KryazlLOktOUt0VqWwqDLvRmwKUbED6u7m5zde04-1NP93CkFiQkxmKn1WkWnJ1ga19ZWK5Tdri5x17bTQYk3JLxpM6abwMyAKDdgrl2S16m4KoLz1_1Jj91UCRg) to see if your SDK provider has shared a link to their data safety guidance. [Review](https://notifications.google.com/g/p/ANiao5r7ZBbegedTtOqym2UVuX86c7Y9kYHrID1n_Wrx-sUDW5oUeSEbixLzvblxAgUL3ggg4A_TSy1jCkOZnw-TjvCg7DAfufdlSzDHdrAj-o2SERmHXYG22BL6QvCHIGAeyNyfEUYNC12OalsL_YZa9VoXfcKWECs3JF7H1qC_wNf6QfVY3bMhVokh4CBXPiw2EFnx52VbeqFlReGEkdLJjjeWeIwrtIOXqaY8v7i2VCxpJCZWsK8r) how any third-party code (such as third-party libraries or SDKs) in your app collects and shares user data.```
Hi! I got this when trying
const cryptoKey = await RNCloudPayment.createCryptogram(number, date, cvv, pids);
console.log('cryptoKey', cryptoKey);
the result:
Is this module ready to use? I tried to check if such module exists withing NativeModules
:
// node_modules/react-native-cloudpayments/index.js
import { NativeModules } from 'react-native';
const RNCloudPaymentsModule = NativeModules.RNCloudPayments;
console.log('RNCloudPaymentsModule', RNCloudPaymentsModule);
console.log('NativeModules.RCTCloudPaymentsPackage', NativeModules.RCTCloudPaymentsPackage);
and it outputs undefined
Привет, при создание криптограммы я получаю следущие ошибки ({"name": "RNCloudPaymentsError", "message": "unknown key type passed to RSA"} или {"name":"RNCloudPaymentsError","message":"null is not an object (evaluating 'p.createCryptogram')"} ). Может будут идеи с чем это связано
In the examples extDate = '01/18'
, but should be '0118'
for android.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.