![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
payrex-node
Advanced tools
PayRex Node library provides Node applications an easy access to the PayRex API. Explore various classes that represents PayRex API resources on object instantiation.
Node 12 or higher.
If you want to use the package, run the following command:
npm install payrex-node
# or
yarn add payrex-node
Simple usage looks like:
const payrex = require('payrex-node')('sk_test_...');
payrex.paymentIntents.retrieve('pi_...')
.then(paymentIntent => console.log(paymentIntent.id))
payrex.paymentIntents.create({
amount: 10000,
currency: 'PHP',
description: 'Dino Treat',
payment_methods: ['gcash', 'card']
})
.then(paymentIntent => console.log(paymentIntent.id))
Or using async/await:
const payrex = require('payrex-node')('sk_test_...');
const paymentIntent = await payrex.paymentIntents.retrieve('pi_...');
console.log(paymentIntent.id);
const payrex = require('payrex-node')('sk_test_...');
payrex.paymentIntents.create({
amount: 10000
})
.then(paymentIntent => console.log(paymentIntent.id))
.catch(error => {
// Handle errors
console.error(error.name);
console.error(error.errors);
});
try {
payload = '{"id":"evt_...","resource":"event","type":"payment_intent.succeeded","data":{...';
signatureHeader = 't=1715236958,te=,li=...';
webhookSecretKey = 'whsk_...';
payrex.webhooks.parseEvent(payload, signatureHeader, webhookSecretKey);
} catch (error) {
// Handle invalid signature
}
FAQs
PayRex Node JS Library
The npm package payrex-node receives a total of 81 weekly downloads. As such, payrex-node popularity was classified as not popular.
We found that payrex-node demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.