
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
react-native-apay
Advanced tools
Accept Payments with Apple Pay for React Native apps.
$ yarn add react-native-apay
Autolinking will just do the job.
$ react-native link react-native-apay
Link using Cocoapods by adding this to your Podfile
:
pod 'RNApplePay', :path => '../node_modules/react-native-apay'
Libraries
➜ Add Files to [your project's name]
node_modules
➜ react-native-apay
and add RNApplePay.xcodeproj
libRNApplePay.a
to your project's Build Phases
➜ Link Binary With Libraries
Cmd+R
)<import { ApplePay } from 'react-native-apay';
const requestData = {
merchantIdentifier: 'merchant.com.example',
supportedNetworks: ['mastercard', 'visa'],
countryCode: 'US',
currencyCode: 'USD',
paymentSummaryItems: [
{
label: 'Item label',
amount: '100.00',
},
],
}
// Check if ApplePay is available
if (ApplePay.canMakePayments) {
ApplePay.requestPayment(requestData)
.then((paymentData) => {
console.log(paymentData);
// Simulate a request to the gateway
setTimeout(() => {
// Show status to user ApplePay.SUCCESS || ApplePay.FAILURE
ApplePay.complete(ApplePay.SUCCESS)
.then(() => {
console.log('completed');
// do something
});
}, 1000);
});
};
You can run the demo by cloning the project and running:
$ yarn demo
FAQs
React Native bridge for Apple Pay
The npm package react-native-apay receives a total of 351 weekly downloads. As such, react-native-apay popularity was classified as not popular.
We found that react-native-apay demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.