
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-payment-gateway
Advanced tools
this module for payment gateway, first gateway is midtrans payment gateway, i hope all payment gateway so you can contribute to this module
merchant backend NODE JS
$ npm install react-native-payment-gateway --save
$ react-native link react-native-payment-gateway
change Podfile into this or lastest version
Libraries ➜ Add Files to [your project's name]node_modules ➜ react-native-payment-gateway and add ReactNativeMidtrans.xcodeprojlibReactNativeMidtrans.a to your project's Build Phases ➜ Link Binary With LibrariesCmd+R)<android/app/src/main/java/[...]/MainApplication.javaimport com.paymentgateway.ReactNativeMidtransPackage; to the imports at the top of the filenew MidtransPackage() to the list returned by the getPackages() methodandroid/settings.gradle:
include ':react-native-payment-gateway'
project(':react-native-payment-gateway').projectDir = new File(rootProject.projectDir, '../node_modules/react-native-payment-gateway/android')
android/app/build.gradle:
compile project(':react-native-payment-gateway')
import PaymentGateway from 'react-native-payment-gateway';
async pay(){
const optionConect = {
clientKey: "your client key",
urlMerchant: "https://domain.net/" <<-- will hit https://domain.net/charge
}
const transRequest = {
transactionId: "0001",
totalAmount: 4000
}
const itemDetails = [
{id: "001", price: 1000, qty: 4, name: "peanuts"}
];
const creditCardOptions = {
saveCard: false,
saveToken: false,
paymentMode: "Normal",
secure: false
};
const userDetail = {
fullName: "jhon",
email: "jhon@payment.com",
phoneNumber: "0850000000",
userId: "U01",
address: "street coffee",
city: "yogyakarta",
country: "IDN", <-- must be standard country code
zipCode: "59382"
};
const optionColorTheme = {
primary: '#c51f1f',
primaryDark: '#1a4794',
secondary: '#1fce38'
}
const optionFont = {
defaultText: "open_sans_regular.ttf",
semiBoldText: "open_sans_semibold.ttf",
boldText: "open_sans_bold.ttf"
}
const callback = (res) => {
console.log(res)
};
PaymentGateway.checkOut(
optionConect,
transRequest,
itemDetails,
creditCardOptions,
userDetail,
optionColorTheme,
optionFont,
callback
);
}
FAQs
this module for payment gateway, first gateway is midtrans payment gateway, i hope all payment gateway so you can contribute to this module
The npm package react-native-payment-gateway receives a total of 18 weekly downloads. As such, react-native-payment-gateway popularity was classified as not popular.
We found that react-native-payment-gateway 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.