Skip to content

Instantly share code, notes, and snippets.

View SubashPaudyalTR's full-sized avatar
💭
Learning ML.net

SubashPaudyalTR

💭
Learning ML.net
View GitHub Profile
@SubashPaudyalTR
SubashPaudyalTR / mcp.json
Created September 30, 2025 09:41
MCP Server Settings for Cursor
{
"mcpServers": {
"brave-search": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-brave-search@latest"
],
"env": {
"BRAVE_SEARCH_API_KEY": "your-brave-search-api-key"
@SubashPaudyalTR
SubashPaudyalTR / paymentcredentials.cs
Created August 28, 2025 16:28
Backend payment credentials endpoint
// Example endpoint implementation
[Authorize]
[HttpGet("payment-credentials")]
public ActionResult<PaymentCredentialsResponse> GetPaymentCredentials()
{
try {
// Retrieve IDs from secrets
string bluesnapId = _secretsManager.GetSecret("BluesnapID");
string googleMerchantId = _secretsManager.GetSecret("GoogleMerchantID");
@SubashPaudyalTR
SubashPaudyalTR / googlepaymentcomponent.ts
Created August 28, 2025 16:26
Frontend implementation of using encryptedBluesnapId and merchantId
// Example frontend implementation
import * as CryptoJS from 'crypto-js';
export class GooglePaymentComponent {
private encryptedBluesnapId: string;
private encryptedGoogleMerchantId: string;
private decryptionKey: string; // This would need to be securely obtained
constructor(private http: HttpClient) {}