sorokin0andrey / react-native-apay Goto Github PK
View Code? Open in Web Editor NEWReact Native bridge for Apple Pay
React Native bridge for Apple Pay
In this native sample, the items of summary contains a type, .final or .pending, but in this library, we have only label and amount. The last item of this array is the pending total amount in this lib?
Hi I am integrating Payfort payment gateway but for some reason, the following data from the example do not come to me, they do not exist at all. Also, Checking on a real device. No errors occur
What is missing in the response from apple pay is paymentMethod
// paymentMethod example
{
"paymentMethod": { "network": "MasterCard", "type": "credit", "displayName": "MasterCard 4248"
}
What comes to me:
'{
"paymentData": {
"version": "EC_v1",
"data": "string",
"signature": "string",
"header": {
"ephemeralPublicKey": "string",
"publicKeyHash": "string",
"transactionId": "string"
}
},
"transactionIdentifier": "string"
}
Do you know what should I do to get paymentMethod ?
Thanks for the fixes
Hello thanks for awsome libaray, I am trying to create a payment Request it works in my siumlator but not in real device after building it
const requestData = {
merchantIdentifier: 'my MID',
supportedNetworks: ['mastercard', 'visa'],
countryCode: 'SR',
currencyCode: 'SAR',
paymentSummaryItems: [
{
label: 'PAY TO',
amount: '100' ,
},
],
}
const pay = async () => {
// Check if ApplePay is available
if (ApplePay.canMakePayments) {
try {
const paymentRequest = await ApplePay.requestPayment(requestData);
ApplePay.complete(ApplePay.SUCCESS);
} catch (error) {
console.log(error);
ApplePay.complete(ApplePay.FAILURE);
}
} else {
alert("Cant make a payment")
}
};
Any tips please thanks in advnace
Mada network is required for payments in middle east
We have integrated this library and trying to test on TestFlight, but it is not using the existing card data but asking to add a new card. How can I make it so it uses the existing cards connected to Apple ID?
RN Version: 0.59.10
Real Device: iphone 6S plus / iphone XR
Simulator: iphone Xs
iOS Version: iOS 12.0
The module can get all the transaction detail after clicking to pay. However, the card have not finished the transaction yet. No money is paid and none of the transaction SMS is received.
All transaction details are got but in fact there is not any transaction.
When calling the ApplePay.canMakePayments, error: null is not an object. is occurred.
How can I fix the issue?
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.