
Research
/Security News
Critical Vulnerability in NestJS Devtools: Localhost RCE via Sandbox Escape
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
payfort-custom-integration
Advanced tools
How does it work in practice?
If you choose the custom merchant page integration route you are responsible to code a form that captures your customer's payment details and that submits these details to our server using defined parameters. You integrate your custom form on your checkout page.
There is no need to change the look and feel of your merchant site. You can customize the iframe to match your site. Simply insert the Amazon Payment Services iframe in the section of your page where you want to accept credit card payments.
In practice, custom merchant page integration works like this:
npm install payfort-custom-integration --save
And here's some code! :+1:
// Initialize the payfort package
const payfort = require("payfort-custom-integration");
// Create client for payment
const client = payfort.createClient("development", {
access_code : "your_access_code",
merchant_identifier : "your_merchant_identifier",
passphrase : "your_passphrase"
purchase_url : "send this only to override default urls"
});
// Purchase data object sample
const purchaseData = {
"amount": data.amount,
"command" : "PURCHASE", // PURCHASE OR AUTHORIZATION
"currency": data.currency,
"customer_email": data.email,
"customer_name": data.name,
"language": "en",
"return_url": "https://your_website.com/callback-page",
"merchant_reference": data.order_id
};
//Send payment request
payfort.sendRequest(client, purchaseData)
Every project needs improvements, Feel free to report any bugs or improvements. Pull requests are always welcome.
I am open for a good job or work contract. You can contact me directly on my email (bera.ujjwal@hotmail.com) or on my skype ujjwalbera
.
Hi! I'm Ujjwal Bera, I'm an open source enthusiast and devote my free time to building projects in this field.
I'm the creator and maintainer of payfort, MNode and SNode.
I'm doing my best to provide you a good experience when using my apps, so if you like what I'm doing and wish to say "thanks!", You can appreciate me or my hard work and time spent to create this helpful structure with buying me a coffee.
FAQs
Unofficial Custom merchant page integration
We found that payfort-custom-integration 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
/Security News
A flawed sandbox in @nestjs/devtools-integration lets attackers run code on your machine via CSRF, leading to full Remote Code Execution (RCE).
Product
Customize license detection with Socket’s new license overlays: gain control, reduce noise, and handle edge cases with precision.
Product
Socket now supports Rust and Cargo, offering package search for all users and experimental SBOM generation for enterprise projects.