This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"mcpServers": { | |
"brave-search": { | |
"command": "npx", | |
"args": [ | |
"-y", | |
"@modelcontextprotocol/server-brave-search@latest" | |
], | |
"env": { | |
"BRAVE_SEARCH_API_KEY": "your-brave-search-api-key" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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"); | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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) {} | |