| Session Key | Customer | GCash Ref | Amount | Service | Status | Created | Used At | Actions |
|---|---|---|---|---|---|---|---|---|
| Loading... | ||||||||
๐ Manually Generate Session Key
๐ Auto-Webhook for your Express Shop
1
Install Supabase SDK in your shop
Run this in your Express app folder:
npm install @supabase/supabase-js
2
Add this helper to your shop utils/cyphra.js
This generates and saves the session key to Supabase automatically after a paid order:
Loading...
3
Call it from your order confirmation handler
After GCash payment is verified in your Express app:
// In your Express order handler:
const { generateCyphraKey } = require('./utils/cyphra');
app.post('/payment/confirm', async (req, res) => {
const { gcash_ref, amount, customer_name, customer_email, service } = req.body;
// ... your existing payment verification ...
// Auto-generate and send session key
const result = await generateCyphraKey({
customer_name,
customer_email,
gcash_ref,
amount,
service // 'FDL' | 'MI_FRP' | 'UBL' | 'ALL'
});
if (result.success) {
// Send result.session_key to customer via email/SMS
console.log('Key generated:', result.session_key);
}
res.json(result);
});
4
Key will instantly appear in Order History
Once a customer pays and your handler runs, the key shows up in the Order History tab above โ no Supabase dashboard needed.