Comments (4)
I am facing the same error i- e
[Error: AbortError]
Did anyone find any solution?
from react-native-payments.
Hi! Our team is also getting a similar issue where the app crashes when using apple pay. Does anyone have any idea of why this might be happening? Did something change lately with this package that might be causing problems interacting with ApplePay?
from react-native-payments.
I wish I could get this far. Even using your code I am stuck at null is not an object (evaluating 'ReactNativePayments.createPaymentRequest')
. I know this is a week later, but if you see this do you have anything that you remember that would have caused this issue.
from react-native-payments.
[Error: AbortError]
on simulator iphone 14 for merchantIdentifier: 'merchant.apple.test',
ApplepayAPi() {
const METHOD_DATA = [
{
supportedMethods: ['apple-pay'],
data: {
merchantIdentifier: 'merchant.apple.test',
supportedNetworks: ['visa'],
countryCode: 'US',
currencyCode: 'USD',
},
},
];
const DETAILS = {
id: 'example',
displayItems: [
{
label: 'Movie Ticket',
amount: {currency: 'USD', value: '15.00'},
},
],
total: {
label: 'Merchant Name',
amount: {currency: 'USD', value: '15.00'},
},
};
const OPTIONS = {
requestPayerName: false,
requestPayerPhone: false,
requestPayerEmail: false,
requestShipping: false,
};
let paymentRequest = new PaymentRequest(METHOD_DATA, DETAILS, OPTIONS);
paymentRequest.addEventListener('shippingaddresschange', e => {
const updatedDetails = getUpdatedDetailsForShippingAddress(
paymentRequest.shippingAddress,
);
e.updateWith(updatedDetails);
});
paymentRequest.addEventListener('shippingoptionchange', e => {
const updatedDetails = getUpdatedDetailsForShippingOption(
paymentRequest.shippingOption,
);
e.updateWith(updatedDetails);
});
paymentRequest
.canMakePayments()
.then(canMakePayment => {
if (canMakePayment) {
console.log('Can Make Payment');
paymentRequest
.show()
.then(paymentResponse => {
// Your payment processing code goes here
paymentResponse.complete('success');
Alert.alert('Payment Complete');
})
.catch(error => {
console.log('Show Error', error);
});
} else {
console.log('Cant Make Payment');
}
})
.catch(error => {
console.log('Can Make Payments Error', error);
});
}
from react-native-payments.
Related Issues (20)
- Expo EAS plugin
- Apple Pay paymentRequest.show() doesn't resolve HOT 3
- Build error in react-native 0.70 HOT 3
- Support Google Play's billing? How to write code if it supports me
- App crashes on apple pay modal close HOT 2
- Couldn't update total price
- update ReactNativePaymentsModule.java for android
- iOS: undefined paymentToken on real device.
- react native payments on procide to pay details.shippingOptions
- Apple Pay says Payment not Processed when using Node 18 HOT 1
- Apple pay is not available in "app HOT 1
- Apple pay is not available in "app" HOT 2
- RN iOS application crashes when using ApplePay to place an order HOT 1
- I have fully rewritten this library, using same concepts, can we add an reference to the readme for other users? HOT 6
- unarchiveObjectWithData:' is deprecated: first deprecated in iOS 12.0 - Use +unarchivedObjectOfClass:fromData:error: instead
- From where you import getUpdatedDetailsForShippingOption or getUpdatedDetailsForShippingAddress this function
- π Braintree React Native SDK π
- π΄Active forks & alternatives π΄
- Android Build Error
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 react-native-payments.