PayIn
1. Generate Order
export const generateUUID = async (req, res) => {
try {
const payload = req.body;
console.log(payload);
// Call Rocketfuel purchase check API
const result = await client.createOrder(payload);
console.log('Hosted Page Result:', result.uuid);
// Send success response with uuid and it can be used with the frontend sdk
res.json({ success: true, uuid: result.uuid });
} catch (err) {
console.log('Error in generateInvoice:', err);
// Send failure response with error message
res.status(500).json({ success: false, error: err.message || 'Internal Server Error' });
}
};Cart payload example
Root Level Fields
Cart Object (cart[])
Customer Info (customerInfo)
Shipping Address (shippingAddress)
Custom Parameter (customParameter)
Fee Configuration (feeConfiguration)
Site Info (siteInfo)
2. Transaction lookup
3. Webhook Signature Verification
Last updated
Was this helpful?